Error Invalid document schema, List of possible elements expected in aif AX 2012

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.