Debugging TF Build template for AX

I’m preparing a build of a Dynamics AX 2009 environment using Team Foundation Server 2013 and libraries from Dynamics AX Admin Utilities. Unfortunately the build failed with the following error: Exception Message: Object reference not set to an instance of an object. (type NullReferenceException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, …

Continue reading ‘Debugging TF Build template for AX’ »

Target date not found in work calendar

“Target date not found in work calendar” was an error that was reported to me by a customer using workflow in AX2009. It was easy to find that it was thrown by WorkflowWorkCalendarDueDateProvider.isWorkingDay() but it was far from obvious why. I tried to update the calendar in approval time limit, although it didn’t seem to …

Continue reading ‘Target date not found in work calendar’ »

Lines for multiple headers

The goal of today’s excercise is to create a form with two grids (containing headers and corresponding lines). The trick is that if you select multiple headers, the form will display lines for all of them. The following form uses sales orders. Notice that selected orders are 1, 3 and 4 and displayed lines also …

Continue reading ‘Lines for multiple headers’ »

ReceivedFault is not marked as serializable

Last week I needed to use a third-party web service in AX2009. I created a service reference in AOT, so AX generated necessary code and configuration and I was immediately able to get data from the service. Quickly done, almost without any work. Great. But I wouldn’t write about it if that was all. The …

Continue reading ‘ReceivedFault is not marked as serializable’ »