i try post the RAF with End mark picking list, accepted error then try to end the Production order
i am getting the same error info log.
one more thing, i went to item transaction and filter with production order, two lines are showing one line with order qty (15 qty) another line with received qty (15 qty)
Initially the production order is for 50 quantity. Then, pickin list might have been posted which consumed raw material to produce 50 quantity of BOM.
Later the production order quantity is changed by user to “40”. Now, if you try to end the production order system can’t cancel the “raw material” which is already consumed".
please check what is your production order quantity and see whether the raw material is also consumed for what you are producing.