Developer Q&A

Ask a Question
Back to All

issue with ConcurrencyId ---> <Description>Data was already modified by another user.</Description>

Hello,

if I issue a GET on a work order:

false false false Default



WorkOrder
152637





</Body>

this is the response I get back:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>


152637
false
1

Unknown
Unknown
Unknown


0

Unknown
0



0
false
0
Unknown
0001-01-01T00:00:00
0001-01-01T00:00:00




0001-01-01T00:00:00
0001-01-01T00:00:00
















</soap:Body>
</soap:Envelope>

If I issue a request to update a custom field and provide the given ConcurrencyId:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:int="http://corrigo.com/integration/">
<soap:Header>
<int:CorrigoNetOptions>
<int:ImposeConcurrencyId>false</int:ImposeConcurrencyId>
<int:UpdateLastModified>false</int:UpdateLastModified>
<int:CanDeleteMissingEntity>false</int:CanDeleteMissingEntity>
<int:LockOnDataRetrieval>Default</int:LockOnDataRetrieval>
</int:CorrigoNetOptions>
</soap:Header>
<soap:Body>
<int:Execute>
<int:commandRequest xsi:type="int:UpdateCommand" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<int:Entity xsi:type="int:WorkOrder">
<int:Id>152637</int:Id>
<int:ConcurrencyId>1</int:ConcurrencyId>
<int:CustomFields>
<int:CustomField2>

<int:Descriptor>
<int:Id>9</int:Id>
</int:Descriptor>
<int:Value>Waiting for Approval from Client</int:Value>
</int:CustomField2>
</int:CustomFields>
</int:Entity>
<int:PropertySet xsi:type="int:PropertySet">
<int:Properties>
<int:string>Id</int:string>

<int:string>CustomFields.Descriptor.Id</int:string>
<int:string>CustomFields.Value</int:string>
</int:Properties>
</int:PropertySet>
</int:commandRequest>
</int:Execute>
</soap:Body>
</soap:Envelope>

I get the response that the data was modified by another user:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>



6
Data was already modified by another user.
Corrigo.Core.WrongVersionException


WorkOrder
152637
1



</soap:Body>
</soap:Envelope>

I've tried different concurrency ID's, blank, 0, 1, 2, 3...etc. Can you please help me understand what I'm missing?

thanks!
Raul