Total Pageviews

Search This Blog

Sunday, August 15, 2010

The other day, I was looking for Spell Checker API in AX and stumbled onto these two very useful links on www. It shows the usage of SysSpellChecker Class in AX which uses the COM Word Application Library

Processing larger files in AX, Please backup the registry before you do any modifications to it

SYMPTOMS

You read an XML file that has a large text field in Microsoft Dynamics AX 4.0. For example, the document size is 5432150 characters, and the large text field is 5429024 characters. In this scenario, the XmlElement.text function fails. Additionally, you receive the following error message:

Error in getting through from code: Shorthanded memory to getting through from script.

Stacktrace

(C)\Classes\XmlElement\text

(C)\Classes\PrismeXML_Base\traverse - line 58

(C)\Classes\PrismeXML_Base\run - line 12

(C)\Classes\PrismeXML_Base\interpret - line 67

(C)\Jobs\CallOIOInterpreter - line 15

CAUSE

This problem occurs because there is no more memory space available. By default, the size for the memory allocation in the Application Object Server (AOS) is set to 10 MB at installation. If your implementation requires manipulation of data elements over 10 MB, memory allocation fails. You may or may not see an error message if memory allocation fails when this limit is exceeded.

RESOLUTION

To resolve this problem, modify the maxbuffersize registry key on the client computer or the computer that is running the AOS server. Or, break the XML file into smaller sizes possibly 500 -1000 line items.

Note The following steps will bring your AOS server offline temporarily because of a service reset.

To modify the maxbuffersize registry subkey on the client computer, follow these steps:

Wednesday, August 4, 2010

Last week, over the lunch time, I was chatting with some of my colleagues regarding Dynamics AX and Map Integration, Till then, I was not aware of the fact that in Dynamics AX 2009 Address form we already have a "Map" button which invokes the Bing maps as shown here

But, Bing was not able to provide us the proper location for some addresses which Google Maps could provide - Food for thought for the Bing devs/SDE's.

I was curious to see the Code Behind the "Map" button, which led me to the SmmUtility Class > mapIt method.