Hi,
I am getting the following error in the exception log:
The request failed with the following error: Invalid document schema.
The following error was returned: The element 'SalesTable' in namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder' has invalid child element 'ReceiptDateRequested' in namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder'.
List of possible elements expected: 'QuotationId, RecId, RecVersion, Reservation, RetailChannel, RetailHourOfDay, SalesId, SalesName, SalesOriginId, SalesPoolId, SalesStatus, SalesType, SalesUnitId, SettleVoucher, ShipCarrierDlvType, ShipCarrierName, ShipCarrierPostalAddress, ShippingDateConfirmed, ShippingDateRequested, smmCampaignId, smmSalesAmountTotal, TotalBalance, TotalCashDiscount, TotalInvoice, TotalMiscCharges, TotalSalesTax, URL, WorkerSalesResponsible, WorkerSalesTaker, TableDlvAddr, TableCarrierAddr, SalesLine, DocuRefHeader, MarkupTransHeader, CreditCardAuthTrans' in namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder'.
My XML file is this:
<?xml version="1.0" encoding="utf-8" ?> |
<Envelope xmlns="http://schemas.microsoft.com/dynamics/2011/01/documents/Message"> |
<Header> |
<MessageId>{5603D03A-4380-404D-9F27-738BE0FEA931}</MessageId> |
<Company>GPL</Company> |
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/SalesOrderService/create</Action> |
</Header> |
<Body> |
<MessageParts> |
<SalesOrder xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder"> |
<SalesTable class="entity"> |
<CustAccount>EXPR01</CustAccount> |
<DeliveryDate>2013-05-04</DeliveryDate> |
<PurchOrderFormNum>PO</PurchOrderFormNum> |
<ReceiptDateRequested>2013-05-09</ReceiptDateRequested> |
<SalesLine class="entity"> |
<ItemId>A070</ItemId> |
<SalesQty>18</SalesQty> |
<SalesUnit>m</SalesUnit> |
</SalesLine> |
</SalesTable> |
</SalesOrder> |
</MessageParts> |
</Body> |
</Envelope> |
I can see no reason why AX should complain about ReceiptDateRequested.
I have tried removing this field and alos removing DeliveryDate but leaving RRD.
Any suggestions?
Thanks