Becky Newell articles

Becky Newell
Published 
2 min read

How to add a blank node in dimension set hierarchy in AX 2009 

When you attempt to enter a journal involving a ledger account without the selection of a cost center dimension in Dynamics AX 2009, you receive the following error message: “Dimension set value XX – ? on set YY is not authorized on hierarchy ZZ for account DDDD.
Published 
1 min read

Request failed with HTTP status 405: Method Not Allowed 

If you get a Http 405 error while trying to validate the workflow url in AX you are probably running into a static file handler issue.  You can verify this by going into IIS to the workflow web site, find the axworkitems.asmx within that website, right-click on it and choose Browse.
Published 
1 min read

Wrong argument type for function 

When double-clicking on a record in a list page to see the details of that record in a task page/form and getting this error:Error executing code: Wrong argument type for function. With a stack trace of: (C)\Classes\QueryRun\setRecord (C)\Classes\FormDataSource\executeQuery Change the query used on your task page.
Published 
1 min read

Changing the language at runtime in X++ 

We recently had a case where the customer wanted to change the language being used for a given AX user at runtime.  The customer had sorted out how to change the language displayed in forms and reports but the buttons on the navigation pane were not getting updated.
Published 
1 min read

Research method on X++ forms 

In AX2009 if you call the research() method on a form passing true, the cursor position within a grid should be retained.  However, this is true only if the query created by the form uses inner joins.  Any outer joins, aggregations, temp tables, etc.
Published 
<1 min read

How to Identify the Tier X++ Code is Running On 

It can be unclear as to which tier, either the client or the server, X++ code is executed on.  This ambiguity can lead to problems. For instance if you run a server-bound batch, all of the code has to run on the server.
Published 
<1 min read

How to Send the Callstack to the Infolog 

When troubleshooting a problem it is helpful to have the X++ callstack especially in scenarios where you cannot use the debugger in the environment or the issue happens sporadically. The following X++ code will retrieve the X++ callstack and send it to the infolog.