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