web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,391 on at
    RE: XmlPort Error (The Element is expected by Min Occurs value XXX: Once. Element received: YYY) .

    hi

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

    Greetings

    DAniele

  • Robyn2018 Profile Picture
    Most Valuable Professional on at
    RE: XmlPort Error (The Element is expected by Min Occurs value XXX: Once. Element received: YYY) .

    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,791

#2
YUN ZHU Profile Picture

YUN ZHU 2,091 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,090

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans