-
Dynamics ax a key with the name %1 already exists
Today I had to fix a bug in some custom code in Dynamics Ax 2009, we had an error from the JournalTransList class that stated “A key with the name %1 already exists.” Cause: A custom field on the WMSJournalTrans table that was extending from LineNum Reason: The JournalTransList has methods to check if the primary…
-
Dynamics Ax workdays to days
Ever had to calculate the number of days starting from a number of workdays and even deal with holidays.A pretty straightforward example using the DateTimeUtil class and DayOfWk method.