Total Pageviews

Search This Blog

Sunday, August 15, 2010

Error message when you read an .XML file that has a large text field in Microsoft Dynamics AX 4.0

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:



1. Click Start, click Run, type Regedit, and then click OK.

2.Locate and then click the following registry subkey:

HKEY_CURRENT_USER\Software\Microsoft\Dynamics\4.0\Configuration\your current config name.

3.Set the value for the maxbuffersize registry key to the maximum message size in MB. Or, set the value to zero (0) to have no restriction on the size of documents.

4.Restart the client computer.

To modify the maxbuffersize registry key on the computer that is running the AOS server, follow these steps:

1.Click Start, click Run, type Regedit, and then click OK.

2.On the AOS server, open the server configuration settings:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dynamics Server\4.0\instance name\config name

3.Set the value for the maxbuffersize registry key to the maximum message size in MB.

4.Restart the AOS service.

Wednesday, August 4, 2010

Integrating/Invoking Google Maps on Dynamics AX Customer Address Form

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.

Then, next step was to find out how to invoke Google Maps by passing query string in the url, My best friend Google never lets me down :-) and I hit upon this wonderful site which shows how to pass different query string parameters in the url http://www.querystring.org/google-maps/google-maps-query-string-parameters

From there on it was pretty straightforward, following code snippet helped me to show up the google maps








Thatz it! Pretty easy, rite? :-).

Saturday, July 31, 2010

Register for Microsoft Dynamics AX 2011 Technical Conference

This is a 3-day event about the upcoming release of Dynamics AX 2011 held @ Redmond, USA.  Some of the highlights of this event are:

 
  • · Developers building and implementing solutions on Microsoft Dynamics AX. Understand how you can be more productive and provide innovative vertical solutions. Understand the philosophy behind the model-driven design and the service-based architecture built on the foundation provided by the Microsoft .NET Framework.

  • · Technical Implementation Consultants can learn about the simplification of the deployment architecture, and integration with the Microsoft platform components like Microsoft SharePoint 2010, Microsoft SQL Server 2008 R2, Microsoft Visual Studio 2010, and Microsoft Office 2010.

  • · Get hands-on experience with the upcoming release of Microsoft Dynamics AX.

  • · Talk directly to the team building the product.

  • · Network and learn from other partners and customers to plan your upgrade.

  • · Get a pre-release version to continue your learning and development when you get back to the office.


More info, can be found on this link
http://www.microsoft.com/dynamics/DynamicsAXtechnicalconference2011/default.html


 

Happy DAX'ing 

 

 

 

 

 

Dynamics AX 2009 Enterprise Portal Web Form Converter to Web User Controls

Thought I would share with you this useful link which I accidentally bumped into while doing some search on EP. This is useful if you have want to convert Dynamics AX 4.0 Web Forms to the latest Dynamics AX 2009 Web User Controls.

http://msdn.microsoft.com/en-us/library/cc615339.aspx

Intro
The SysEPWebFomConverter class contains several methods that are used when you convert a Web form from an earlier version of Enterprise Portal to the components used with the ASP.NET-based framework. To use this class, save the text of the export file as an .xpo file. Import the .xpo file into the AOT. For details about how to use the methods in the class to convert Web Forms

How do Convert
Read here, more about the conversion http://msdn.microsoft.com/en-us/library/cc620983.aspx

Verify
And at the end you can verify if the conversion succeeded by http://msdn.microsoft.com/en-us/library/cc619852.aspx

Troubleshooting AX 2009 Enterprise Portal Error The type or namespace name "Portal" does not exist in namespace 'Microsoft.Dynamics'

These days, I'm working on developing some new Enterprise Portal pages for creating Inventory Journals and Posting it through EP.

From last couple of weeks, my enterprise portal site on my local virtual image was working fine but suddenly last week it stopped working, I don't know for what reason but it started giving me weird errors like "The type or namespace name 'Portal' does not exist in the namespace 'Microsoft.Dynamics' (are you missing an assembly reference?) " on some of my custom developed pages.

Resolution: This thread on the communities forum helped me as I had to Generate the proxies again and build the pages again.

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.axapta.programming&tid=713a2ca4-60cb-4fc5-9e7f-bb5b8a6f8440&cat=en_US_43057844-26db-48ec-8f54-3dff8e8cfd2f&lang=en&cr=US&sloc=&p=1