Hi..!

Try catch doesn't seem to work with conflicting updates problem. I am
trying to update the same document property in the same transaction so I
used try catch so that the second update can be ignored but doesn't seem to
work. Marklogic is still throwing an hard error even when I am using a try
catch in the below case.
Is there anything wrong in the below block of code.

My actual situation isn't as straight forward so I cannot use alternate
approaches.

try {
(
xdmp:document-set-property("/root/abc.xml",<priority>5</priority>),
xdmp:document-set-property("/root/abc.xml",<priority>6</priority>)
)
}
catch($err)
{
  "error"
}

Thanks
Pradeep Maddireddy
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to