Error occurring during Post API VISIT entry OpenMRS

I am getting error while hitting rest api Visit create.

Error: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

Response:https://pastebin.com/PPGGiq7H

Can you share details of the POST that you are making, and to which url?