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’ »

Řádky pro více hlaviček

Cílem dnešního cvičení je vytvoření formuláře s dvěma gridy (obsahující hlavičky a odpovídající řádky). Trik je v tom, že pokud vyberete více hlaviček, formulář zobrazí řádky pro všechny. Následující formulář využívá prodejní objednávky. Všimněte si, že vybrané objednávky mají čísla 1, 3 a 4 a zobrazené řádky také patří k objednávkám 1, 3 a 4: …

Continue reading ‘Řádky pro více hlaviček’ »

ReceivedFault is not marked as serializable

Minulý týden jsem potřeboval použít v AX2009 jednu webovou službu poskytovanou třetí stranou. Vytvořil jsem referenci v AOT, takže AX vygenerovala potřebný kód a konfiguraci a já jsem byl okamžitě schopný získat data z webové služby. Skvělé. Ale nepsal bych o tom, pokud by to bylo všechno. Ta daná webová služba se bude používat interaktivně …

Continue reading ‘ReceivedFault is not marked as serializable’ »