Developer Q&A

Ask a Question
Back to All

Issue creating a customer: Name is a required field.

(edited)

Hi I'm trying to create a customer. I am getting this error:

{
'ErrorInfo': {
'Number': 1,
'Description': 'Name is a required field.',
'Type': 'Corrigo.Core.CorrigoBrokenRulesException'
},
'EntitySpecifier': None,
'NestedEntitiesOperationResults': None
}

The XML I am sending is this:

<soap-env:Envelope xmlns:soap-env="http://www.w3.org/2003/05/soap-envelope">
<soap-env:Body>
<ns0:Execute xmlns:ns0="http://corrigo.com/integration/">
<ns0:commandRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:CreateCommand">
<ns0:Entity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:Customer">
<ns0:Name>customer_1</ns0:Name>
<ns0:WorkZone>
<ns0:Id>314</ns0:Id>
</ns0:WorkZone>
<ns0:TenantCode>tenant_1</ns0:TenantCode>
</ns0:Entity>
</ns0:commandRequest>
</ns0:Execute>
</soap-env:Body>
</soap-env:Envelope>

Any reason why it's asking for a Name field if it is already defined in the XML payload?

Thanks.