It’s seems like it’s time for a new post in the series about importing vendor catalogs in Dynamics AX 2012. The previous couple of blog posts covered setup
and importing a sample catalog
. It’s all well and nice but what if something went wrong somewhere along the way of setting up the feature. Below you will find a list of problems that can arise during vendor catalog import setup. And of course the solutions to the problems will be described in detail.
Questions and Answers
I try to import a Vendor catalog with Dynamics AX. I generate the XSD File but it is really not clear how to populate it.
The XSD file that you can generate from the vendor catalog form provides you with the schema of the CMR file that can be imported. XSD (XML Schema Definition
) is one of several XML schema languages
. The blog post about importing a sample catalog
contains a detailed list of steps that you need to take to generated a sample CMR file.
I’d like to see an example of a CMR file with data to import?
It is important to note that the XSD schema for CMR files depends on the procurement hierarchy that you set up in Dynamics AX so the chances of successfully importing sample CMR files are really-really low because the XSD schema produced from your system will most probably differ from the one that was used to generate the sample file. However it’s always nice to see a sample file just to have an idea of what kind of beast the CMR file is. Below is the XML that a sample file might contain:
I’m getting the error “Imported schema for namespace ‘http://www.w3.org/XML/1998/namespace’ was not resolved” when trying to generate in Visual Studio a sample CMR file based on the XSD schema.
</span span style="color: rgb(255, 0, 0);"version/spanspan style="color: rgb(0, 0, 255);"="1.0"/span span style="color: rgb(255, 0, 0);"encoding/spanspan style="color: rgb(0, 0, 255);"="utf-8"/span?span style="color: rgb(0, 0, 255);"> Description1 Name1 af Blue
This is a known issue. The workaround is to remove the line below from the XSD file:
When I run the AIF job for processing no error is given but the status of the import in the Catalog file history does not change
The error was most probably logged in the AIF exception log: System administration\Periodic\Application integrationServices and Application Integration Framework\Exceptions.
In the AIF exception log there is an error: Could not find schema information for the element 'http://dax.com/vendorcatalog:VendorCatalog'.
Make sure that you set up the inbound port in AIF as in Walkthrough: Configuring an inbound integration port for catalog import [AX 2012]
. Pay special attention to the paragraph about setting up the pipeline component:
The catalog import service requires a special component that processes CMR documents. To enable this component, follow these steps.
- In the Inbound ports form, on the Processing options tab, select the Preprocess service operation requests check box, and then click Inbound pipelines.
- In the Inbound pipelines form, click Add. Then, in the Class name list, select CatVendorXmlTransform.
- In the Purpose field, enter an optional description, such as “Transform vendor XML files,” and then close the Inbound pipelines form.
- Click Activate to deploy the integration port.
I hope this information was useful. I would like to make this article into a live blog post. So if you have any problems with setting up vendor catalog import please write to me or post a comment and I will do my best to resolve your problem and post the resolution in this article.