CONCURRENT_MODIFICATION

1,226 views
Skip to first unread message

andishe...@indexexchange.com

unread,
Jun 15, 2016, 5:03:26 PM6/15/16
to Google's DoubleClick for Publishers API Forum
I have a javascript code that create line items using DFP API with an input consisting 10 lineItems each with 3 creatives, and to do that it uses OrderService, lineItemService, CreativeService, CustomTargetingService, and LineItemCreativeAssociationService. If I run one command to create 10 lineItems at a time, it works perfectly, however if I run only two of them in parallel it gives me this error
"error":"Error occurred creating line items","reason":"soap:Server: [CommonError.CONCURRENT_MODIFICATION @ ]
I need the code to be able to create line items in parallel. I would appreciate any suggestions.

Vincent Racaza (DFP API Team)

unread,
Jun 15, 2016, 9:32:53 PM6/15/16
to Google's DoubleClick for Publishers API Forum
Hi,

CONCURRENT_MODIFICATION error occurs when there are two entities attempting to update or create the same data on the same time in your network. In your case, two simultaneous requests that creates the line items. These cases are typically rare, and can be safely retried with exponential back off time. If you're multithreading with the API, we recommend to still batch your requests if you want to create or update multiple objects at once in your network.

Please take note that the concurrent modification could be across multiple applications and platforms.

We also recommend to implement a retry logic in your code to solve this kind of issue:

Thanks,
Vincent Racaza, DFP API Team
Reply all
Reply to author
Forward
0 new messages