Happy Business Starts Here

Valued Scholar

Error 58560050

I posted two orders for same account to create two subscription and it threw following error:

 Response Body: {
"success" : false,
"processId" : "7469F90B2138D8B5",
"reasons" : [ {
"code" : 58560050,
"message" : "Object of class [com.zuora.zbilling.account.model.BillingAccount] with identifier [2c92c0fa6c22797e016c24cef4b64253]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): 
} ]


Is this bug?

Zuora Support

Re: Error 58560050

Hi Ridhima,

The cause for this error response in the API call is due to executing multiple actions on the same object/field at the same time. The suggestion is to use a retry logic for handling this specific type of response.


Hopefully, the above information could help to address the inquiry.