What happens before the return?

That error essentially means that you're trying to update the same document 
twice.

Best,
Rob

Rob Szkutak
Senior Consultant
MarkLogic Corporation
[email protected]
www.marklogic.com<http://www.marklogic.com>

________________________________
From: [email protected] 
[[email protected]] on behalf of Shiv Shankar 
[[email protected]]
Sent: Wednesday, September 21, 2016 9:54 AM
To: [email protected]
Subject: [MarkLogic Dev General] Error XDMP-CONFLICTINGUPDATES: 
xdmp:document-insert("/test/test001.json"

Hi,
I'm keep getting this below error. Any thoughts.

[1.0-ml] XDMP-CONFLICTINGUPDATES: xdmp:document-insert("/mmis/test001.json"
my code is :
return  xdmp:invoke-function(
      function() {dls:document-insert-and-manage("/mmis/test001.json", 
fn:true(),$contents,(),(),"TEST-COLLECTION"), xdmp:commit() },<options 
xmlns="xdmp:eval">
        <transaction-mode>update</transaction-mode>
      </options>);
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to