HomeGuidesAPI ReferenceChangelogDeveloper Q&A
HomeGuidesAPI ReferenceAnnouncementsLog In
Developer Q&A

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:

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

</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:ImposeConcurrencyIdfalse</int:ImposeConcurrencyId>
int:UpdateLastModifiedfalse</int:UpdateLastModified>
int:CanDeleteMissingEntityfalse</int:CanDeleteMissingEntity>
int:LockOnDataRetrievalDefault</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:Id152637</int:Id>
int:ConcurrencyId1</int:ConcurrencyId>
int:CustomFields
int:CustomField2

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

int:stringCustomFields.Descriptor.Id</int:string>
int:stringCustomFields.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

</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