Microsoft Dynamics AX Support

This blog contains posts by the Microsoft Dynamics AX Support teams Worldwide

Browse by Tags

Tagged Content List
  • Blog Post: Dynamics AX 2012 Services: Applying a XSL transform to a AIF XML document (Outbound Port) selects each value in the whole document instead of the elements specified

    For example, the following XML document is created for a customer sales invoice. <? xml version = " 1.0 " encoding = " UTF-8 " ?> < Envelope xmlns = " http://schemas.microsoft.com/dynamics/2011/01/documents/Message " > < Header > < MessageId > {7F99293C-0469-4D50-8489...
  • Blog Post: Surrogate foreign keys in AIF

    Although the use of "natural keys" in place of surrogate foreign keys in AIF is a documented design change in AX 2012, it seems there are still some questions around this functionality. Per the documentation ( http://msdn.microsoft.com/en-us/library/gg879708.aspx)... The document services framework...
  • Blog Post: How to import default site and warehouse locations for a product using services (AIF)

    I have recently had questions around how to import default site and warehouse locations for products when using AIF, so I thought an explanation and an example here might be helpful. Three tables need to have the correct Dimension ID relationships setup in order for the item to default the correct...
  • Blog Post: Dynamics AX 2012 Services: How to process big messages using File adapter

    Sometimes when you try to process big XML messages using File adapter you can get error: The request failed with the following error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/dynamics...
  • Blog Post: AX2012 AIF services error - The maximum number of joins allowed (99) is exceeded in the statement.

    I recently came across an error which was causing a custom AIF service to fail in AX2012. When trying to execute a read on the service it was failing with an exception in the AIF exceptions form which contained the following text: Stack trace: The maximum number of joins allowed (99) is exceeded in...
  • Blog Post: Debugging Services in AX 2012

    Regardless of the adapter type you choose, services in AX 2012 run as IL code - even if you are using the file adapter. To debug IL code you must use Visual Studio. The steps for debugging a service are: On the AOS, install the AX Application Explorer from the Microsoft Dynamics AX CD by choosing...
  • Blog Post: Override AllowEditOnCreate when creating records through a service

    I had a case recently in which they were creating records using the DocuRefService. The problem was that an error occurred stating "Field <x> must be filled in", even though the field mentioned had been specified in the code. The error occurred on these fields... RefCompanyId RefRecId...
  • Blog Post: Calling the LedgerPurchaseInvoice Service in AX 2012

    I had a blog comment requesting that I demonstrate how to call the LedgerPurchaseInvoice service so here you go: //A purchase invoice created by this service = AP > Journals > Invoices > Invoice register //Think it depends on which journal name you set up under AP > Setup > AP...
  • Blog Post: How to Call the Read Operation on an AIF Web Service

    If you know the primary key of an entity you can call the read operation on a web service. The response document contains all of the fields for that entity. The code below is an example of how to call the read operation. I am using a custom service but the code would be very similar for whatever service...
  • Blog Post: Calling the find method on an AIF web service

    The find method on an AIF service is used to retrieve a single record using one or more fields to base your query on. It is slightly different from the Read action because the Read action returns a record but it requires the primary key be used in the query criteria for the record. Here is a method that...
  • Blog Post: Debugging AIF Web Services

    To debug AIF web services called from .NET code use the following steps: 1. On the AOS turn debugging on in the server configuration utility by marking the checkbox "Enable breakpoints to debug X++ code running on this server". 2. On the client machine turn debugging on in the client configuration...
  • Blog Post: AIF general journal services require the journal type to be Daily and the account type to be Ledger

    In Class\LedgerJournalTransType, method validateAccountType, there is a new validation for AX2009 that checks an incoming AIF Journal Type . If the LedgerJournalTable.JournalType is ' Daily ', then the validation requires the incoming LedgerJournalTrans.AccountType to be 'Ledger'. The development team...
  • Blog Post: Importing zip codes into AX via AIF

    If you are importing addresses into AX you will discover that the zip codes in your addresses need to exist in AX before you can successfully import the addresses. This is true regardless of the tool you are using to perform the imports. If you are using AIF there isn’t an out-of-the-box service...
  • Blog Post: Switching companies/endpoints when calling AIF services

    To change the endpoint or company you are manipulating data in from an AIF web service you need to create the message header and call the service operation inside of an OperationContextScope. There is a full example of how to do this on msdn - http://msdn.microsoft.com/en-us/library/cc652581.aspx . Below...
  • Blog Post: Updating customers via the Customer AIF service

    We have received many questions in AX 2009 around how to update customers using the customer service in AIF. People report errors like the following while trying to do updates: "The record in Address with record id <12345789> cannot be updated because the record has changed since last read....
Page 1 of 1 (15 items)