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
