PO confirmation error


We are getting the following error on one of the Purchase orders on PO confirmation event. This is reproducing for a specific PO only and not for all the Purchase orders.

Function SourceDocumentLineStateModel.getValidTargetSourceDocLineAccStatus has been incorrectly called.

This specific purchase order was created in previous AX version [AX 40] and has been brought forward during ERP upgrade to AX 2012. Please let me know if you have any clue or hints on what can be the possible reason for this.


Vishal Kohli

It means that getValidTargetSourceDocLineAccStatus() can’t find any valid source document accounting status for your data. Let a developer to statically analyze or dynamics debug the method if you want to know exactly what happens there in your particular case.