Browse by Tags

Tagged Content List
  • Blog Post: Template Wizard does create SheetNames with more than 30 characters

    The Template Wizard (Administration/Periodic/Data export/import/Excel spreadsheets/Template Wizard) creates unfortunately SheetNames that might exceed 30 characters, which is not allowed by Excel and results in annoying message boxes that are requesting a new SheetName with less than 31 characters. The...
  • Blog Post: Large Xml-documents with an AIF-WebService.

    If you are faced to 'large' Xml-documents with AIF-WebServices, you might be faced to difficulties for Inbound and OutBound services. The following two points should be applied for the client app.config, if the client uses the WCF for communicating with the AIF-WebService (Inbound-Services - you are...
  • Blog Post: ‘0’-values don’t appear in Xml files generated by the AIF

    Numeric values that are 0 (not null) are not serialized and don't appear in the Xml file. The reason for this is, that the numeric types in Dynamics Ax are not nullable (must have a value) and do interpret the value 0 as a "null value" (0 as a ‘ magic number ’) during the serialization. The...
  • Blog Post: AIF-service call with COM and .Net Business Connector

    When executing an AIF-service with the COM and .Net Business Connector the client will not be notified about exceptions during the execution. The reason for this is, that AIF-services are always executed within a transaction ( ttslevel = 1) even when no ttsBegin has been executed. And as described on...
  • Blog Post: Request for the permission of type 'SecurityPermission' failed

    When you get the following exception while executing a report on the SSRS or within Ax: System.Security.SecurityException was unhandled Message=" Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089...
  • Blog Post: base64Encode() of the kernel class ‘Image’ does return an empty string

    A partner asked me why the base64Encode method of the Image class does always return an empty string. In the following example: 1: Image image; 2: str sBase64Encode; 3: ; 4: image = new Image(); 5: image.loadImage(@ 'C:\sample.bmp' ); 6:   7: sBase64Encode = image.base64Encode...
  • Blog Post: Gender information in Employees-form and the Global Address Book (GAB)

    You can open the information about employees with the Global Address Book (Basic/Global Address Book) and with the Employees form (Basic/Employees). Normally it is no problem to modify data in both forms, but unfortunately this is not true for the ‘gender’ property . This information is stored in...
  • Blog Post: IDynamicsAXExpressionBuilder returned error code 0x80131509

    In forms that are using the ActiveX-control ExpressionBuilder (like TrvPolicyForm) you might be faced to the following error message: Method 'initialize' in COM object of class 'IDynamicsAXExpressionBuilder' returned error code 0x80131509 (<unknown>) which means: End enum not found. This...
  • Blog Post: Deploying service references with Dynamics Ax 2009

    Service references are are great feature in Dynamics Ax 2009 and using WCF with Ax is now really easy. But unfortunately it is not easy to deploy this service reference. If you now need to deploy a service reference from the development environment to the evaluation environment, or from the evaluation...
  • Blog Post: RPC error 1702 when calling a WinAPI method from a batch job

    You probably already noticed that error messages are sometimes not really helpful when you are trying to understand a problem. The following code creates such misleading error message: 1: public void run() 2: { 3: ; 4: if (WinApi::folderExists( @"c:\temp\")) 5: info("Folder exists...
  • Blog Post: AxUpdatePortal Utility

    I just want to remind the existence of this nice little tool , which is be very useful for any deployment or redeployment of your WebParts and EP-sites. Basically it is a simple .Net command-line executable which calls the same method as the AxSetup does during the installation of Ax 2009: EPReturnCodes...
  • Blog Post: Enums and localization… in X++

    On Msdn enumerators (Enums) are described as: X++ does not support constants but has an enumerable type (Enum), which is a list of literals. You need to create an Enum in the Application Object Tree (AOT) before you can use it. Enum values are represented internally as integers. The first literal...
  • Blog Post: How to develop with multiple developers on an Enterprise Portal (Ax2009) application

    Many partners asked if it would be possible to have just one Enterprise Portal Server (WSS3.0 or MOSS + EP components) for their EP-development as described in the following scheme:   The answer is no. Theoretically it would be possible to have one EP-server where each developer would have it’s...
  • Blog Post: Why some Web services can’t be consumed ‘as is’ by referenced services in Ax 2009

    Referenced services in Ax2009 are based on the .Net technology WCF and so it was for me pretty much clear, that it would be easy to integrate Microsoft's MapPoint services, since they are ‘simple’ standard web services. Unfortunately I was wrong. Referenced Services in Ax2009 two limitations (until now...
  • Blog Post: Workaround for problems with the SQL Browser in a clustered SQL Server 2000 or SQL Server 2005 (Ax4 and Ax2009)

    If you have a clustered SQL Server 2000 or SQL Server 2005 you might have the following error message: The SQLBrowser service was unable to process a client request. The cause of this problem and why this hasn’t been fixed is described on this blog. Normally, it is recommended in this case...
  • Blog Post: using the BC.Net with Ax2009 et Ax4 on the same machine might result in a AccessViolationException

    I was working on a case where a partner was having problems with the Business Connecter for Ax2009. Calling a method on the AOS resulted under certain circumstances in a AccessViolationException: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication...
  • Blog Post: Changed application elements Ax2009 vs. Ax4 SP2

    This Excel spreadsheet list all application elements changed in Ax2009 since Ax4 SP2.
  • Blog Post: Passing CLR-object between an Ax-client and the AOS

    As explained on msdn you can’t pass an CLR-object between a Ax-client and the AOS. So the following example will work for the client-to-client but will fail for the client-to-server scenario: The code for the CLR-class: 1: using System; 2: 3: namespace Samples 4: { 5: public class Customer 6: ...
  • Blog Post: Handling .Net exceptions with X++

    In my last blog I was talking about casting CLR-objects in X++. In the code example you might have noticed the following code: 1: catch (Exception::CLRError) 2: { 3: //we'll discuss this later... 4: } Well, handling CLR-objects isn’t that easy. But fortunately you can find...
  • Blog Post: Casting CLR-objects with X++

    Casting CLR-objects with X++ isn’t that obvious as it is in .Net languages as C# or even VB.Net. The following code will not compile because of the incompatibility of the two types System.Net.WebRequest and System.Net.HttpWebRequest even if you are allowed to upcast in any .Net language the WebRequest...
  • Blog Post: ReportViewer

    If you need a great reporting tool, or you want to use the RDLs from the Reporting Services 2005 without a SQL Server 2005 license, then this link will be very interesting for you (or maybe you already know the ReportViewer? ): http://www.gotreportviewer.com/ Here's an excerpt from the product...
  • Blog Post: .Net 3.5 SP1 with Ax2009

    Unfortunately Ax2009 does create in conjunction with the .Net 3.5 SP1 the following exception: A ProgressTemplate must be specified on UpdateProgress control with ID ‘id’. This will be fixed very soon. Until then, please just don’t install the SP1 on your Ax2009 server or if you already did...
  • Blog Post: How to implement FileSystemWatcher with X++

    The CLR offers with System.IO.FileSystemWatcher a very simple to use class which can be used with X++ in order to identify new created, renamed, deleted and changed (The change of a file or folder. The types of changes include: changes to size, attributes, security settings, last write, and last access...
  • Blog Post: Adding dynamically UserControls to a report with X++

    This is a pretty simple example how to add an UserControl to an existing Report. But since the documentation isn’t talking a lot about here’s the code: public boolean fetch() { ReportSection reportSection; ReportTextControl textControl; ; reportSection = element. design() .autoDesignSpecs(...
  • Blog Post: Troubles with WinAPI in X++

    Maybe the title is some kind of misguiding, since it's neither the WinAPI nor X++ that are causing troubles, but the wrong use of the WinAPI with X++. Anyway, you might know what I mean ... Following blindly sample code from the web or the online documentation isn't always a good idea, especially...
Page 1 of 1 (25 items)