While calling RoutingApi.deleteUserRoutingskill from the Javascript SDK, I get this error randomly:
{"message":"The version you supplied [116] does not match the current version [117] for entity 2ab2afe2-2de8-4072-95ac-7ebc3875add2 oid=63dcce49defcc71bf236d338 (person)","code":"bad.request","status":400,"contextId":"5717a113-37b4-48f3-bd90-ef34dc4a9c1b","details":[],"errors":[]}
I do the call to this endpoint for each skill I want to delete from user, and each time at least 1 of the attempts to delete a skill returns the above error, and each time is a different skill that fails, out of the same bundle of skills.
I saw this topic was similar but no answer is given:
Thank you. The people at Customer Care tell me repeatedly that because is a 400 error code returned, that it should be a client side error. Could this be the case? However it makes no sense because the call is being made from the Javascript SDK and fails randomly. Just wanted to confirm with you that this could be a server side error even with 400 code? As in the server is forcing a 400 return code.
It looks like Care is continuing to work the case with you, please continue to work with them on this issue. We cannot investigate this via the dev forum. Ask the Care engineer to please open a SERVOPS ticket to investigate the issue. While a 400 response often indicates a client issue, in this case it's definitely not. DELETE /api/v2/users/{userId}/routingskills/{skillId} doesn't accept any data except the two path params; their version that's mismatched is not data you're providing. The cause is some internal system (likely directory) is having a data consistency issue and is failing the version check. Care will need to work with SERVOPS to engage the dev team responsible for that endpoint to investigate the error that's being thrown internally.
BTW, I can't find the correlation ID from the request in your original post. Be sure Care has a recent example of this failure and knows the rough timestamp it occurred and what region it's from.