Posts

Showing posts from January, 2015

How to change Date fromat (dd/MM/yyyy) in Regional Settings for all users on a computer

Hi, Please read the below link to change the date format (dd/MM/yyyy) for all users connected to the machine/computer. http://blogs.technet.com/b/askperf/archive/2012/08/16/how-to-change-regional-settings-for-all-users-on-a-computer.aspx Note: We have to setup the group policy.

Import Purchase Trade agreements in Ax 2012 using CSV file

Hi, The below job is used to import the purchase trade agreement journal lines. //To create the purchase trade agreement lines. //Forthis, just create the Journal header first and import the lines by using this job   static void CreatePurchTradeAgreementLines(Args _args) { CommaIO     csvFile; container    readCon; counter     icount,inserted; Dialog      dialog; DialogField dfFileName; FileName    fileName; itemId      itemId; AmountCur   amount; str          strFromdate,strTodate,type; TransDate   fromDate, toDate;     PurchUnit   purchUnitId; PriceDiscJournalNum journalNum; TableGroupAll TableGroupAll;     AxPriceDiscAdmTrans axPriceDiscAdmTrans; PriceDiscAdmTrans   priceDiscAdmTrans; InventDim           inventDim;

CIL generation: Index was out of range. Must be non-negative and less than the size of the collection

Problem : Recently, I installed one of the model files from an ISV and everything went fine in DEV environment. I replicated the same process in UAT environment for installation and installed the model files. After which I ran the full application compile, database synchronization and then full CIL. The full CIL failed because of following error: CIL generation: Index was out of range. Must be non-negative and less than the size of the collection Solution : I could fix this problem by following steps: Since there were no compilation errors in full application compile, I was sure that there are no errors in the application. The system was not able to pick some assemblies so I compiled the Tables manually and then classes. After which, I put the application on full CIL again and it worked fine.     when you open the CIL log file the below error message shown, Note: CIL log file path is " C:\Program Files\Microsoft Dynamics AX\60\Server\YOUR_INSTANCE\bin\XppIL\Dynamic