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.