As a Dynamics AX Upgrade Factory and ISV Development Center, we find rare and unusual issues when working on the numerous upgrade and development projects we undertake each year. In this series, Dynamics AX Obscurities, we share our experiences, insights and workarounds for these unkowns in hopes to save you time, headaches and costs in your future Dynamics AX upgrade and development project.


After standard data upgrade from AX 2009 to AX2012, a partially invoiced Purchase Order has approval status Approved. Some lines of this purchase order are Invoiced and some have status Open order.

The situation complicates when there is a need to confirm such a Purchase Order. The error appears:
Function “SourceDocumentLineStateModel.getValidTargetSourceDocLineAccStatus” has been incorrectly called.
The problem is that the standard AX code requires sourceDocumentLine table to hold a record with status “Finalized“, but there is a status “Completed“.

Image 1: Source Document Line Accounting Status:Finalized


Change the code in the SourceDocumentLineStateModel.parmTargetSourceDocumentLinesStates() method:

Image 2: SourceDocumentLineStateModel.parm

and then confirm the Purchase Order.

If you run into a Dynamics AX Obscurity you’d like us to investigate, email our team at: services@英雄联盟竞猜抽注入口v8.8 安卓版.com .

日博电竞入口数据 im中国电竞官方外围 蜂鸟电竞登录比赛网 电竞体育(武汉)观看全球网址 esg电竞现场查询 宝博电竞联赛v8.10 IOS版