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 NAV (Archived)

XML Port - Import XML problem

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Alexander Ermakov Profile Picture
    28,096 on at

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

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    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.

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    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.

  • Community Member Profile Picture
    on at

    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

  • Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

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

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    Hey Greg,

    No AFAIK .

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

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans