Openmrs to Odoo sync error of Specific patient

Error on openmrs orders sync Quotaion(prescribed medicine and lab order) to odoo of specific patient only and rest of working. The error occur after the prescribed medicine stop. Error log from odoo failed_events table @angshuonline @buvaneswariarun

Blockquote

http://localhost:8050/openmrs/ws/atomfeed/encounter/recent | 2021-08-03 08:29:31.903+00 | Failed processing even t in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/3129] +| tag:atomfeed.ict4h.org:24602f02-af72-4e20-88d0-28efd1214315 | /openmrs/ws/rest/v1/bahmnicore/bahm niencounter/77a8ada6-58c3-4257-a405-505e5136d246?includeAll=true | 606328043 | Encounter | 2 | Encounter | | | java.lang.RuntimeExcep tion: warning – Previous order id does not exist in DB. This can be because of previous failed events

Blockquote