Posting Invoice in Sales Order In AX 2012-R2 Facing Error "Update for voucher xxxxx has been canceled to avoid oversettlement. The settled customer or vendor balance for the transaction must not exceed the transaction amount."

While Posting Invoice in Sales Order in AX -2012 R2 we face the following error “Update for voucher xxxxxx has been canceled to avoid oversettlement. The settled customer or vendor balance for the transaction must not exceed the transaction amount.”

From error, it appears the transaction and settlement amount does not reconcile. Have a look at settlement parameters here - https://technet.microsoft.com/en-us/library/hh545528.aspx