FormerMember

The element 'WorkOrderAddRq' has invalid child element

Posted By FormerMember

Complete Error Message 

<api:MBXML statusCode="10601" statusMessage="Schema Validation failed (The element 'WorkOrderAddRq' has invalid child element 'PurchaseOrderNumber'. List of possible elements expected: 'DispatchTime, ScheduledDate'.)" statusSeverity="Error" xmlns:api="http://sage100contractor.com/api" />

I submit this: 

<api:MBXML xmlns:api="http://sagemasterbuilder.com/api">

   <MBXMLSessionRq>

      <Company>ASG Live Data</Company>

      <User>domain\drieger</User>

   </MBXMLSessionRq>

   <MBXMLMsgsRq messageSetID="1" onError="continueOnError">

      <WorkOrderAddRq requestID="1">

         <OrderNumber>WO-EUG-2724</OrderNumber>

         <InvoiceNumber>WO-EUG-2724</InvoiceNumber>

         <ClientRef>

            <ObjectID>100293</ObjectID>

         </ClientRef>

         <WorkOrderDate>2018-01-05</WorkOrderDate>

         <Desc>Jane Sanders Stadium/damaged mullion wiring n</Desc>

         <ServiceLocationRef>

            <ObjectID>1</ObjectID>

         </ServiceLocationRef>

         <Contact>Tom Gilbert</Contact>

         <Phone>541-999-2385</Phone>

         <Addr1>15564 University Street</Addr1>

         <City>Eugene</City>

         <State>OR</State>

         <PostalCode>97403</PostalCode>

         <DispatchDate>2018-01-05</DispatchDate>

         <PurchaseOrderNumber>076433-11</PurchaseOrderNumber>

         <ScheduledDate>2018-01-05</ScheduledDate>

         <ServiceInvoiceTypeRef>

            <ObjectID>4014</ObjectID>

 </ServiceInvoiceTypeRef>

         <WorkOrderStatus>7</WorkOrderStatus>

         <PriorityRef>

            <ObjectID>3</ObjectID>

         </PriorityRef>

         <Memo>Here is a request for a service visit to repair the damaged mullion wiring on the north facing AMAG ground entry door. I’ve discussed the issue with Troy and provided contact info for the user group, Bill Centrella.</Memo>

         <LockEdit>0</LockEdit>

      </WorkOrderAddRq>

   </MBXMLMsgsRq>

</api:MBXML>

I have received the error on other elements like DispatchDate and others. All of the elements that kick out an error are in the API. And in the smable XML that is provided in the SDK. SDK version DLL is:

Anyone seen this before? What am I missing? Any ideas are welcome cause I am out of 'em.