When trying to qualify a Lead to an Opportunity on our sandbox instance, I get the below error. We do not have any issue with the same process on our production instance.
"Attribute 'msdyn_contractorganizationalunitid' cannot be NULL If you contact support, please provide the technical details."
The log file details are below:
<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xmlns:xml="www.w3.org/.../namespace" xml:lang="en-US">Attribute 'msdyn_contractorganizationalunitid' cannot be NULL</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts"><ActivityId>8c3664f3-b729-4a79-8ce7-8df280f850d2</ActivityId><ErrorCode>-2147220891</ErrorCode><ErrorDetails><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">OperationStatus</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:int">0</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">SubErrorCode</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:int">-2146233088</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>Attribute 'msdyn_contractorganizationalunitid' cannot be NULL</Message><Timestamp>2017-09-21T00:56:41.4393044Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><InnerFault><ActivityId>8c3664f3-b729-4a79-8ce7-8df280f850d2</ActivityId><ErrorCode>-2147220891</ErrorCode><ErrorDetails><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">OperationStatus</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:int">0</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">SubErrorCode</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:int">-2146233088</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>Attribute 'msdyn_contractorganizationalunitid' cannot be NULL</Message><Timestamp>2017-09-21T00:56:41.4393044Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><InnerFault><ActivityId>8c3664f3-b729-4a79-8ce7-8df280f850d2</ActivityId><ErrorCode>-2147220891</ErrorCode><ErrorDetails><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">OperationStatus</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:int">0</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">SubErrorCode</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:int">-2146233088</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>Attribute 'msdyn_contractorganizationalunitid' cannot be NULL</Message><Timestamp>2017-09-21T00:56:41.4393044Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><InnerFault xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><OriginalException xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><TraceText xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /></InnerFault><OriginalException xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><TraceText xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /></InnerFault><OriginalException xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><TraceText>
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[7ccdbd4d-4796-e711-8102-c4346badf5b8: ]
Starting sync workflow 'Contracting Unit is Required', Id: 75cdbd4d-4796-e711-8102-c4346badf5b8
Entering ConditionStep1_step:
Entering SetFieldRequiredLevelStep4_step:
Sync workflow 'Contracting Unit is Required' terminated with error 'Attribute 'msdyn_contractorganizationalunitid' cannot be NULL'
</TraceText></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>
Any help would be appreciated.
Thanks in advance,
Dominic.
*This post is locked for comments