Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

XML Port - Import XML problem

Posted on by Microsoft Employee

Hi,

I am trying to integrate a web app with a Microsoft Navision. I have setup the xml port and have successfully exported the relevant xml. The problem begins when I try to import the xml back to NAV, because I process the data and re-write the xml, I cannot force the order of the elements/attributes and a get the following error message "The attribute is required and don't match...". 

Can you please help me.

Best,

Grigoris

*This post is locked for comments

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: XML Port - Import XML problem

    Hey Greg,

    No AFAIK .

    That's why whenever there is a Cdata it becomes a level more complex for NAV Developers.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: XML Port - Import XML problem

    To which extent have you processed your XML? Could you have modified it so that elements were swapped somehow?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: XML Port - Import XML problem

    Ok, but because I process the xml and rewrite it, is the attribute order is not the same and the xmlport (navision) is not processing the xml.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: XML Port - Import XML problem

    Hi,

    The elements correctly are not the problem. But the attributes are, is there a way that the xmlport can process the attributes not in the same order as the xml schema. I understand that the xml specification says that the order of the attributes is not significant.

    Best,

    Grigoris

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: XML Port - Import XML problem

    Hey Greg,

    The Schema what you maid in your NAV XML Port should be one to one mapping along with the Data Types what you are getting from the Web.

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: XML Port - Import XML problem

    Hey,

    The Schema what you main in your XML Port should be one to one mapping along with the Data Types what you are getting from the Web.

  • Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: XML Port - Import XML problem

    The order of the elements basically is not important. Can you list you code here? Have you provided us the full error message?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans