web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AIF unable to resolve schemalocation

(0) ShareShare
ReportReport
Posted on by 646

I am trying to use the CatImpService service to import a vendor catalog via an AIF inboundf port. The Upload File job generates an XML document and places it in the inbound port folder. This is what it looks like:

<?xml version="1.0" encoding="utf-8" ?>

- <Batch>
- <Header>
</Header>
- <Body>
- <MessageParts>
- <VendorCatalog xmlns="http://dax.com/vendorcatalog" xmlns:xsi="www.w3.org/.../XMLSchema-instance" xsi:schemaLocation="//ax2012-a.contoso.com/Catalogs/katalogtest.xsd" VendorName="A. Datum Corporation" ProductClassification="Procurement Category" VendorId="5637144577" CMRID="5637145328">
- <Product xsi:type="Accessories" ProductCode="4002" xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns="http://dax.com/vendorcatalog">
- <PriceInformation>
<Price Currency="USD" UnitOfMeasure="Pcs" Value="1.5" />
</PriceInformation>
- <ProductNameAndDescription>
- <NameAndDescription>
<Language>en-us</Language>
<Name>PLUG DRAIN</Name>
<Description>PLUG DRAIN</Description>
</NameAndDescription>
</ProductNameAndDescription>
- <Images>
<Image>Prut</Image>
</Images>
<ProductAttributes />
</Product>
</VendorCatalog>
</MessageParts>
</Body>
</Envelope>
</Batch>
However, when the AIF starts to validate and process the document, I get this error:
"Could not find schema information for the element '">dax.com/vendorcatalog:VendorCatalog'."
It seems like the AIF is unable to resolve the schemalocation even though I have tested the XML document with Altova XML Spy and it works fine there.
I have tried both a simple file and server share URI.
Any ideas?
Thanks.

*This post is locked for comments

I have the same question (0)
  • Soren Andersen Profile Picture
    530 on at

    You need to ensure that your input xml matches that of the service. You can generate a xml schema from Ax which you can use in Altova to validate you input file in the test fase. I am not sure that your file matches the schema.

    I think the namespace should be schemas.microsoft.com/.../CatImp - instead of ..daxcom/vendorcatalog

  • Helge Stokke Profile Picture
    5 on at

    Hi,

    These are case sensitive, try to make the tag vendorcatalog (lower case) as well.

    This solved this issue for my case.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans