guidewire

Cloud API: ConcurrentDataChangeException is thrown when using the Composite API


We are trying to adopt the Cloud API and trying to move away from the custom Rest API. we are using the Composite API concept to construct the multiple request to create a Service Request on Claim but we are seeing the ConcurrentDataChangeException for some of the request. is there retry option available with in OOB configuration?

We use to see same exception for Custom Rest API and able to catch the exception and implemented the auto retries before throwing the exception back to caller. with this re-try we were able to process all the request without any issues.

i am not seeing any documentation how to retry these exception with in ClaimCenter for Cloud APIs instead of returning the exception back to caller and if the caller retry again ClaimCenter might behaves same way and could throw the exception. is anyone experiencing same issue or any work around?


Solution

  • There is no OOTB way to retry a composite request. Certainly the caller can catch and retry the request.

    While you are analyzing the CDCE, please note that all of the requests in the composite are executed atomically. It might be possible that the composite request creates the CDCE. If retrying the request allows it to complete then this comment can be ignored.