Friday, June 6, 2014

Error: The value _________ is not found in the map. Dynamics AX 2012 AIF setup

Dynamics AX 2012 - Setting up the AIF

On the Inbound Ports form, under Document Data Policies, when clicking View Schema I received the following error:

The value "/SalesOrder/SalesTable/Dimension" is not found in the map.

This same error might be generated for other fields on other tables, so this issue might apply to any AIF Schema that throws an error of the format:

The value _________ is not found in the map.

This may be related to AIF entries that were upgraded from AX version 2009. It could also be caused by services that were implemented in one environment and then the database was transferred to another environment.

The fix was to do ALL of the following:

  1. In the developer environment (Ctrl-D) go to Tools ==> AIF ==> Update Document Services. Choose your document service and regenerate Data Object Classes and update AxBC Classes.
  2. Open the Projects window (Ctrl-Shift-P), find the Axd project for your document. Compile it (F7) and generate incremental CIL (Ctrl-Shift-F7)
  3. In the AOT, open the Service Groups tab. Open the service group that applies
    to your document. (In my case, the SalesSalesOrderService goes in the AccountsReceivableServices group.) Make sure your service is listed in an appropriate group. If it's not there, drag it there from the Services tab.
  4. On the Service Group, compile it (F7), generate incremental CIL (Ctrl-Shift-F7), and deploy it (right-click, Deploy)
 Hope this helps!