Error in upgrade readiness check when upgrading to AX 2012

Recently we ran into an issue where the “Check Upgrade Readiness” step in upgrading from Dynamics AX 2009 to Dynamics AX 2012 failed with the error/stack below Error executing code: ReleaseUpdateTransformDB50_UnitOfMeasure (object) has no valid runnable code in method ‘initTransformationJobs’. (S)\Classes\ReleaseUpdateTransformDB50_UnitOfMeasure\initTransformationJobs(C)\Classes\SysCheckListItem_CreateShadowTables\populateScripts – line 20(C)\Classes\SysCheckListItem_CreateShadowTables\main – line 38(C)\Classes\MenuFunction\run(C)\Classes\SysHelp\processMenuFunction – line 85(C)\Classes\SysHelp\processStandardLink – line 26(C)\Classes\SysHelp\processOnEventNavigate – line 40(C)\Classes\SysHelp\onEvent_BeforeNavigate2 –…

0

Using skipDeleteActions with doDelete still calls the delete actions

Recently we came across an issue where running code like this:     Unit unit;    ;    select firstonly forupdate unit where unit.UnitId == ‘cl’;    unit.skipDeleteActions(true);    unit.doDelete(); This results in the delete still being called on Tables\UnitConvert (via the cascaded delete action on Tables\Unit). This is because SkipDeleteActions() only works when using a set based operation (like…

1

BarcodeCode128 and Tilde Character

Recently we came across an issue with BarcodeCode128 barcodes – when using a tilde character (~) within a BarcodeCode128 barcode in AX the resulting barcode can be unreadable by scanners. The reason for this is that Code128 has three different code sets associated with it – using an escape character in the barcode string to…

0

Using AXC file for AX client.

If you are editing an AX 4.0/2009 configuration file (.axc) and adding new configuration values at the end of the file, please ensure to enter a new line (CR+LF), so that the last line entered can be read when it is being used. Text on the last line ending without a carriage return is ignored.  …

2

Multiline Fields in AX Document Management

It’s relatively easy to create a nice looking Word document out of a Sales Order in Dynamics AX by using the built in Document Management feature. The problem starts when trying to create a document with multiple order lines where some of the items have a multi line description. In this case the formatting of…

0

AX 4.0 SecurityProfiler Tool

Attached to this post is a sample xpo file, the SecurityProfiler tool, that is compatible with Microsoft Dynamics AX 4.0 and provides similar functionality as the AX 2009 version as detailed here: http://blogs.msdn.com/b/emeadaxsupport/archive/2010/05/25/ax-2009-securityprofiler-tool.aspx The attached tool tracks what security keys are being used when a user navigates thru the application.  The existing AX class we…

0

Printer name is invalid error when printing a report

We came across an issue where we got the following error when trying to open or print a report: OpenPrinter_1: rc:0 lastError:1801(0x709) The printer name is invalid. The printer was installed on the domain server and when checking the printer name we could verify that the printer name doesn’t include illegal characters as “\” or “,”. Finally…

0

The AIF Document History form takes too long to open and/or hangs the AX client

We came across and issue where we were using Microsoft Dynamics AX 4.0 SP2 ( and also applies to AX 2009) where opening the AIF Document history form ((Basic -> Periodic -> AIF -> Document history) takes a long time and often it will appear as though the AX client has hung. This is generally experienced if…

0

Thickness of lines in PDF file is much too wide compared to the printout

You may have noticed that when printing a report to PDF which is having a layout that is using shapes or lines, then there are some differences between the PDF an the printout. The thickness of the lines in the PDF file is much too wide compared to the printout. When having a look to the code the…

3

Biztalk adapter connections timeout after 1 minute when syncTimeout is zero

Recently we came across some unusual behaviour of the Biztalk adapter in AX2009 and AX4 – this is that when the syncTimeout value for the adapter is set to zero (which means unlimited), the connectionPoolTimeout will default to 1 minute (the lowest possible value) this of course means that the connections can timeout after 1 minute. So…

0