Dear Experts,
We are not able to post invoice to one of the sales order for some customers only but not for all customers or not for any specific customer group. We are getting below error in AX 2012 R3 CU9.

So, we tried table synchronise, complile. AOS also restarted. But no use.
I think there is no issue with RecId. But I checked NextValue in SystemSequences. It is greater than the max value in table. Can anybody suggest me further.
Thanks