Cannot edit a record in sales order when posting invoice for service items

when i am posting invoice for service items i am getting error-"Cnnot edit a record in sales order(sales table)"The record has never been selected.
-Removal of suspension of rec id allocation for table salesparmline has failed.PS:I am posting invoice after FOE.
Please advice how it can be solved.

You ask in the developer forum, therefore I assume you’re a developer. Use debugger to find out where exactly it fails - I guess you’ll find an attempt to update an empty buffer. When we know where it is, we can analyze the root cause.

By the way, please always attach a tag with your version of AX. Now we don’t know whether it’s about Axapta 3.0, AX 7 or what.

its AXAPTA 2012