Notifications
Announcements
No record found.
Dear All,
Could someone help me with the issue when I create a sales order from an XML file via AIF set up on AX 2012 R3.
1. I created service with schema as below.
Thank and regards,
Luis
If AX doesn't give you descriptive error messages, I warmly suggest to use some online tool to check your XML message against the schema. However just by looking at it, we can immediately see that you have problems.
Your schema says that SalesTable section in the file should have following elements:
And your message has following elements:
Also in SalesLine you try to import ItemId but your schema doesn't have it.
To me it looks that your schema has some issue because it doesn't have information such as customer account or item id, which are mandatory information when you create sales orders in AX.
First of all, let me report your XML with Insert > Insert Code:
schemas.microsoft.com/.../Message"> {5603D03A-4380-404D-9F27-738BE0FEA13E} schemas.microsoft.com/.../Action> schemas.microsoft.com/.../SalesOrder"> HCM-00481 LuisTestPO 04-15-2021 04-15-2021 P00916 18 Pcs
It's not actually well-formed XML, because Action and SalesOrder elements aren't closed correctly. Also, Action contains a wrong value (it should be schemas.microsoft.com/.../create) and SalesOrder has xmlns empty (and the value looks wrong as well, because it should start with http://).
Maybe these errors are caused by posting code here in a wrong way, maybe not - we can't know that.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 467 Super User 2025 Season 2
Martin Dráb 420 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional