Microsoft Dynamics AX Support

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

How to link the Purchase order line with a Vendor invoice line in the AIF VendVendInvoiceService service.

I have seen this issue come up several times so I thought a little blog article would be helpful to the Dynamics AX developers working with this AIF service. When creating a Vendor Invoice using the VendVendInvoiceService service, you may have a business requirement to associate the Vendor invoice line with a Purchase order line. The… Read more

Calling the BudgetTransactionService on AX 2012

We recently had a request for an example of how to call the BudgetTransactionService AIF create operation which allows you to created budget register entries. Setup: Create an inbound AIF port using the first 10 steps (Setup with AX) from the Budget entries import in AX2012 (http://blogs.msdn.com/b/axsupport/archive/2012/11/16/budget-entries-import-in-ax2012.aspx) to create a NetTcp AIF inbound port. Create… Read more

Requesting large packages across AX AIF can result in timeout errors after 30 seconds regardless of your timeout values

A common time out exception you may experience with NetTcp AIF calls in AX is: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was ’01:09:59.9770000′. This error can be deceptive… Read more

How to Setup Send XML Document for AP Payment Journals

The goal of this post will be to walk through the necessary AIF setup required to utilize the Send button in the Account Payable Journal Voucher form.  Clicking on the Send button without setup will result in an error message without much description on how to configure the necessary end point.  Message: “No endPoints are… Read more

Map the Full Product name from Dynamics AX for the CRM Connector

This blog post comes from a question in the Microsoft Dynamics AX community board at https://community.dynamics.com/ax/f/33/t/120425.aspx. The question was how to map the full Product Name and not the NameAlias field that is in the InventTable table. The NameAlias field is a shorter field so it does not give you as good as description. I had originally suggested to… Read more

Troubleshooting that elusive “slowdown” in AX using Performance Analyzer 1.20 for Microsoft Dynamics

It’s 9.30am on Monday morning and you’ve just received reports of a “general slowdown” on Microsoft Dynamics AX. After probing further you find it was all over by 9:15am lasting around 15 minutes, but also happened once before and the users want action taken to prevent it happening again. There are never any guarantees when… Read more

Collect a series of traces automatically with Dynamics AX 2012

Introduction The following steps are one way to collect a series of AX traces on a schedule with all versions of AX 2012 on the AOS server, using standard Windows tools: Perfmon combined with Task Scheduler. This example collects a 1 minute trace at 5 minute intervals. This can be useful for example if you… Read more

Adding Exchange Rates using the AIF LedgerExchangeRateService Service

The following is a quick example that may help if you need to add an Exchange Rate to an existing Currency Pair in Microsoft Dynamics AX 2012 R3 using the AIF LedgerExchangeRateService service. I ran into a couple snags along the way and finally was able to insert data correctly in AX using the below. When you create the AIF Inbound Port… Read more

Error when browsing a custom service hosted as IIS web service: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Title: Error when browsing a custom service hosted as IIS web service – An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Scenario: You are using Microsoft Dynamics AX 2012 You have created several Custom Services that you can deploy using NetTcp successfully and consume the WSDL in… Read more

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. <?xmlversion=“1.0“encoding=“UTF-8“?> <Envelopexmlns=“http://schemas.microsoft.com/dynamics/2011/01/documents/Message“>    <Header>      <MessageId>{7F99293C-0469-4D50-8489-0C5E5CF2741C}</MessageId>      <Action>http://schemas.microsoft.com/dynamics/2008/01/services/SalesSalesInvoiceService/read</Action>    </Header>    <Body>      <MessagePartsxmlns=http://schemas.microsoft.com/dynamics/2011/01/documents/Message>        <SalesInvoicexmlns=http://schemas.microsoft.com/dynamics/2008/01/documents/SalesInvoice>          <CustInvoiceJourclass=“entity“>            <CurrencyCode>USD</CurrencyCode>            <CustGroup>10</CustGroup>            <InvoiceAccount>1104</InvoiceAccount>            <InvoiceDate>2008-06-27</InvoiceDate>            <LanguageId>en-us</LanguageId>            <OrderAccount>1104</OrderAccount>            <CustInvoiceTransclass=“entity“>              <InvoiceDate>2008-06-27</InvoiceDate>              <InvoiceId>101076</InvoiceId>            </CustInvoiceTrans>            <FormLetterRemarksclass=“entity“>              <FormLetter>SalesInvoice</FormLetter>… Read more