Re: [MarkLogic Dev General] General Digest, Vol 147, Issue 53

2016-10-03 Thread Shiv Shankar
Hi Justin I'm simply copying some of the values from first-collection into second colleciton on finding the values in 2nd collection based on search criteria. Here is my entire code for one record. If there are multiple records in first-collection, then this conflict is occuring. Code

Re: [MarkLogic Dev General] General Digest, Vol 147, Issue 53

2016-10-03 Thread Justin Makeig
I still don't understand what your code is trying to do. Can you please describe in words what you're trying to accomplish? Where does `matViewUri` come from? How does it relate to `{personId: id}`? Justin > On Oct 3, 2016, at 7:08 AM, Shiv Shankar wrote: > > Hi

Re: [MarkLogic Dev General] General Digest, Vol 147, Issue 53

2016-10-03 Thread Shiv Shankar
Hi Justin, Here is the actual code that returns XDMP-CONFLICTINGUPDATES Error:. --- declareUpdate(); var mainDataResponse = rawColls.documents() .where(rawColls.byExample({personId: id})) .result('iterator'); for (var result of mainDataResponse.results) { var normalizedViewObj =