Tuesday, November 12, 2013

Dynamics AX 2012 R2 software upgrade checklist can't expand on windows server 2012

After we upgrade the AX 2012 R2 into a new CU we need to do the sofware checklist update inside AX as a routine after installing the hotfix or CU. If we open the client and run the software checklist update on Windows Server 2012, the check list item can't expand when we click the expand (+) and if the check list item can't expand then we can't go through the check list process.

I'm not sure what is the missing part here but looks like Windows server 2012 not certified yet for Dynamics AX 2012 R2 client.
To solve this issue we need to run the software update checklist in AX client under supported client OS (I have tested in Windows server 2008 R2 and Windows 7).

Friday, November 8, 2013

Testing out new tools AxBuild.exe from CU7 for parallel compiler

A new tool came out in Dynamics AX 2012 R2 CU7 which is AxBuild. This tool really help us to make the compiler run faster. Here is the screenshot of the parallel compilation using AxBuild.exe.

I have tested my self this tools run in virtual machine and it takes 1 hour 5 mins to do the full compilation.

For more information you can go to this link.

Thursday, November 7, 2013

Unable to find a unique Dimension code combination record corresponding to the entered values. error in dimension AX 2012

Recently I found an error when I build a SegmentedEntry in another customize form just like LedgerJournalTransDaily form.

"Unable to find a unique Dimension code combination record corresponding to the entered values." (can't find this error in label too)
When I try to debug the error I can't find any clue because this error send the notification after the modified event of the control. (I might miss some of the call stack that lead to this modified event). I tried to look again the standard function and found that I miss something in the "LedgerDimension" datasource field method, the method name is "resolveReference".
Here is the sample method code:
public Common resolveReference(FormReferenceControl _formReferenceControl)
    Common common = offsetLedgerDimensionController.resolveReference();

    return common;

Sunday, November 3, 2013

Dynamics AX 2012 R2 client crash when doing full compilation on windows server 2012

I don't know what cause this client crash when we do the full compilation of Dynamics AX 2012 R2 on windows server 2012. I just found only few times I didn't get the AX client crash but 90% it will crash.
Some forum in Microsoft said that Windows Server 2012 only certified for the AOS but not for the client.
I have tried do the full compilation for the Dynamics AX 2012 R2 CU1 and CU6; both have the same client crash.

One of the solution that I found is to run the full compilation using Dynamics AX client running on Windows server 2008 (with or without R2) or Windows 7.

Saturday, November 2, 2013

Missing labels after upgrading to AX2012 R2 CU6 or CU7

After you upgrade Dynamics AX 2012 R2 you will find there is a missing label in the software upgrade action in the beginning when you start the AX client.
Here is a link to fix that.

  • Stop AOS
  • Delete *.ald file in the Microsoft Dynamics AX\60\Server\<instance>\bin\Application\Appl\Standard
  • Start AOS

Saturday, September 7, 2013

Dynamics AX 2012 RTM upgrade form freeze

Hi, there is one time I need to do single patch for Microsoft Dynamics AX 2012 (not R2). Once I applied the patch then restart the AOS, open up the AX application then the upgrade form is show up but you can not choose anything, just like a freeze form. I wonder this is bugs from Microsoft or something else.

After I tried many times until I found that you can choose the options from the development environment use parameter -development
Here is the official link from microsoft how to open Development environment.

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