
Hi Team,
I am importing data using AIF inbound ports - AIF document services.
Getting below error:
Invalid document schema. The following error was returned: The element 'BufferReceiptLine' in namespace 'schemas.microsoft.com/.../IDSInventTransferTable' has invalid child element 'InventTransId' in namespace 'schemas.microsoft.com/.../IDSInventTransferTable'. List of possible elements expected: 'Location, Qty' in namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/IDSInventTransferTable'.
I see couple of blogs/posts, made fields not mandatory but still getting same error.
noticed finally, This error coming only when data in xml not in alphabetical order. consider field "InventTransId" as reference.
Please refer below screenshot. Please guide on this issue, highly appreciable.
The XML schema dictates the required sequence of elements. So your message must contain the fields in the same sequence (in this case alphabetical) than what you see in the schema file.