We want to create an account with related contacts (we use the Xrm.Tooling.Connector SDK). Following C#-Code:
...
// Create Account
...
// Create Contacts with parent Account
inData = new Dictionary<string, CrmDataTypeWrapper>();
inData.Add("parentcustomerid", new CrmDataTypeWrapper(accountID, CrmFieldType.Lookup));
...
_ctrlCRM.CrmConnectionMgr.CrmSvc.CreateNewRecord(entity, inData);
...
We got alway Exceptions like this "System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #DE44451C"
What's wrong?