AX 2012 – RecordInsertList (basic sample)

Sample code…. Bad Practice: RandomTable randomTableBuffer; // Imagine this loop returns 10000 records. while select randomTableBuffer where randomTableBuffer.RandomField1 == “1” { randomTableBuffer.RandomField2 == “2”; randomTableBuffer.insert(); } This would insert a record in the database 10000 times. Of course this would work just perfectly fine but would give you horrible performance. To avoid performance issues you […]

Read More →

Dynamics AX 2012 R3 – Keeping track of errors

While debugging or any other development process you come across errors. Sometimes you click away the errors to fast or your client can crash. For these scenarios I created a error log. I only use this in my dev environment. Add the following piece of code in the “Info” class, “Add” function. Below is a […]

Read More →

Dynamics AX 2012 – Update data progress bar

This job example will explain the use of SysOperationProgress class; static void DEV_progress_example(Args _args) { int i; #AviFiles SysOperationProgress progress = new SysOperationProgress(); progress.setCaption(‘Processing something please wait’); /* Caption of the progress bar */ progress.setAnimation(#AviUpdate); /* You can set different animations */ progress.setTotal(100); /* Set total to keep progress of the progress bar (this case total […]

Read More →

Dynamics AX 2012 – Active Directory Users

Today i found a project i created in my early stages of programming in DAX. Here you can download the code, modify it to your needs. Managing user accounts in Dynamics AX 2012 can be a hard task to handle. Type of licensing, user counts etcetera. To make life easier for the IT operation guys/girls […]

Read More →

Dynamics AX 2012 – axbuild.exe xppcompileall exception

Having several errors while developing in the development AX environment i decided it was time to do a recompile. While executing the axbuild xppcompileall command for my AOS it returned the following error in the command prompt. “Unhandled Exception: System.Runtime.InteropService.SEHException: External Component has thrown an exception. at wmainCRTStartup()” The application log gave the following information. […]

Read More →

Dynamics AX – Common Solutions

Most common solutions you can use in Dynamics AX Reset your usage data (File > Tools > Options ) Delete the AUC files from your local cache in your user profile Compile if your code is giving errors you might not expect. Do not forget the forward compile if you extend classes Synchronise the data dictionary […]

Read More →

Dynamics AX 2012 – AUC files

While developing and testing i faced caching issues. As a user with -SYSADMIN- rights the code was executing correctly but as a normal user the code was not executing and was throwing weird errors. One of the errors created was “Function SysOperationDataContractInfo::newParameterInfo has been incorrectly called“. The custom code extended the SysOperationServiceController and had complex […]

Read More →

Dynamics AX – Compile IL log file in use

Today i received the following error message after a full CIL. The process cannot access the file ‘C:\Program Files\Microsoft Dynamics AX\60\Server\AX2012R3DEV01\Bin\XppIL\Dynamics.Ax.Application.dll.log’ because it is being used by another process. Check if the file is not in use by any applications, restart the AOS service.

Read More →