Wednesday, July 24, 2013

Inventory master data migration AX 2012

Sometimes using DMF is quite hard if you don't know how to configure and use it, below is the sample code how to do the inventory master from code (not product master).
Actually we can always use standard AX 2012 code to release the product master but we need to configure it again once it's become the inventory master; so below code can help to release the inventory master with pre-configured data that you can define from a CSV file.
We will use help from AIF class InventItemService.

Tuesday, July 23, 2013

Customer account number sequence AIF error

Recently I'm facing an error regarding inserting a record from AIF (AX 2012), below are the message:

  • Line=1, Pos=1256, Xpath=/Customer/CustTable[1]/DirParty[1]
  • The number sequence Acco_368 does not allow the Customer account to be defined.

To resolve this issue is to change the customer account number sequence as a manual.

Monday, July 15, 2013

AX 2012 R2 Deployment manage code

Deployment of managed code in AX sometimes will cause an error because it was not installed or signed in the GAC or other reason.

below is the sample for the warning:

The description for Event ID 110 from source Microsoft Dynamics AX cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

Microsoft Dynamics AX Business Connector Session 3.

Failed loading assembly ElectronicFiscalDocument_BR.dll.config 

Do full compilation of AOT and generate full CIL.

If still got the error then you need to open the respective Visual studio project for that assembly, rebuild it and deploy to the server/client/EP