Announcements
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
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.
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.
André Arnaud de Cal...
294,125
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator