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 :
Small and medium business | Business Central, N...
Suggested Answer

XmlPort Error (The Element is expected by Min Occurs value XXX: Once. Element received: YYY) .

(0) ShareShare
ReportReport
Posted on by 1,638

We have created an XMLPORT and we are trying to import data in BC, below is the error we have received --

XmlPort Error (The Element is expected by Min Occurs value XXX: Once. Element received: YYY) .

Any Suggestions?

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    hi

    an xmlport importing a file of type Variable text cannot have indented dataitems

    Greetings

    DAniele

  • Robyn2018 Profile Picture
    Most Valuable Professional on at

    Hi Tanya,

    This error is showed by:

    - the xml elements do not came in the same order.  For example, if you have defined the xml where you receive element a, and later, alement b, if your xml is received first element b and later element a, give us this error; or

    - if you sometimes receive this element and sometimes not, you can put the property Min Occurs: Zero.  Then if this element is not received in the XML, the system do not give you the error.

    I hope this help you.

    Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.

    Roberto Corella

    Business Central developer

    blog: https://blog.msdyn365bc.es
    youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg
    Linkedin: www.linkedin.com/.../
    Twitter: https://twitter.com/rccorella

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans