Hi everyone,
I'm toying with library services, and I'm running into trouble. I am
attempting to insert and manage a test document in one transaction, and then in
a different transaction use dls:document-checkout-update-checkin() to update
the document's content. This works once, but if I run
dls:document-checkout-update-checkin() again (in a different transaction), it
fails with a conflicting update error. This seems like a straightforward
operation, so I must be missing something obvious.
I am running all queries in the Query Console in 5.0-2.
Specifically, I first do this:
dls:document-insert-and-manage(
"/test/test.xml",
fn:true(),
<TITLE>Test Title</TITLE>,
"Manage test.xml",
(xdmp:permission("role-books-user", "read"),
xdmp:permission("role-books-user", "update")));
And then do this:
dls:document-checkout-update-checkin(
"/test/test.xml",
<TITLE>Updated Title<TITLE>,
"Title update",
fn:true())
That works. But if I try the dls:document-checkout-update-checkin() again, I
get this error:
[1.0-ml] XDMP-CONFLICTINGUPDATES: xdmp:eval("xquery version
"1.0-ml"; declare namespace html = ...", (), <options
xmlns="xdmp:eval"><database>526206942185974339</database><root>books</root><isolat...</options>)
-- Conflicting updates
xdmp:document-set-property("/test/test_xml_versions/1-test.xml", /dls:version)
and xdmp:document-set-property("/test/test_xml_versions/1-test.xml",
/dls:version)
Any pointers?
Thanks,
James
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general