Cannot Submit Sales order
I was trying to submit a Sales order and I am getting the below error.
JBO-26048: Constraint "DOO_HEADERS_ALL_UK2" is violated during post operation "Update" using SQL statement "UPDATE DOO_HEADERS_ALL HeaderEO SET LAST_UPDATE_DATE=:1,LAST_UPDATED_BY=:2,LAST_UPDATE_LOGIN=:3,STATUS_CODE=:4,IS_EDITABLE=:5,SUBMITTED_FLAG=:6,SUBMITTED_BY=:7,SUBMITTED_DATE=:8 WHERE HEADER_ID=:9"
The order is not getting submitted a draft version of the order is created. I checked the submit flag for the order and it is false.
Any suggestion on how to resolve this error.