I have tried to change the sales order from codeunit.In that time i am getting the below error.
Microsoft Dynamics NAV
An attempt was made to change an old version of a Sales Header record. The record should first be reread from the database. This is a programming error. Identification fields and values: Document Type='Order',No.='1221'
Can you please suggest me some steps to resolve this error.
Thanks in advance,