David, if you want to send me your XQSync logs I can take a look. I don't recall exactly how the offline conversation went with David Sewell, but in that error message the variable $DOC-0 is being set to a sequence of at least four document nodes. Since it is strongly typed as a single document-node, that isn't allowed. Judging by the document uris, it looks like a case of duplicate uris - which would affect all environments, not just XQSync.
-- Mike On 17 Mar 2011, at 06:45 , Steiner, David J. (LNG-DAY) wrote: > Was there ever any discover about what caused the "Invalid coercion "? > > I'm getting a similar error using XQSync with a function that I can use > in CQ without any problem... > David > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Mark > Helmstetter > Sent: Friday, May 21, 2010 1:51 PM > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic Dev General] XQSync error not seen before > > I've never seen that error before. It would be very helpful if you > could provide the complete log output, including the stack trace. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of David > Sewell > Sent: Friday, May 21, 2010 12:18 PM > To: General XQZone Discussion > Subject: [MarkLogic Dev General] XQSync error not seen before > > I'm trying to use XQSync to copy a database to a ZIP file. My XQSync > installation is working, and I've succeeded in copying one database with > around 12000 files without a problem. But the database I really want to > copy is producing errors like this: > > May 21, 2010 11:32:02 AM com.marklogic.ps.SimpleLogger logException > SEVERE: non-fatal > java.util.concurrent.ExecutionException: > com.marklogic.ps.xqsync.SyncException: /Other/nobody/2009/10.xml [...] > Caused by: com.marklogic.xcc.exceptions.XQueryException: > XDMP-AS: (err:XPTY0004) $DOC-0/element() -- Invalid coercion: > (fn:doc("/Other/nobody/2009/10.xml"), > fn:doc("/Other/nobody/2009/10.xml"), > fn:doc("/Other/nobody/2009/10.xml"), ...) as document() > > I've got the latest XQSYNC and associated libraries so far as I can > tell. > > So for some reason, when this database is being processed, a sequence of > identical URIs is passed to fn:doc() when the program is expecting a > single one. This throws an error. > > Has anyone seen an error like this? ideas about the cause? > > -- > David Sewell, Editorial and Technical Manager ROTUNDA, The University of > Virginia Press PO Box 801079, Charlottesville, VA 22904-4318 USA > Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903 > Email: [email protected] Tel: +1 434 924 9973 > Web: http://rotunda.upress.virginia.edu/ > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
