I am targeting a CRM 2013 on-premise installation with a .NET executable reading/writing data through the OrganizationService. The OrganizationService works; I was able to test it by creating a new account and the new account showed up in CRM.
But, when I try to use the ExecuteMultipleRequest I get the following error: "There was an error while trying to serialize parameter schemas.microsoft.com/.../Services:request. The InnerException message was 'Type 'Microsoft.Xrm.Sdk.Messages.ExecuteMultipleRequest' with data contract name 'ExecuteMultipleRequest:schemas.microsoft.com/.../Contracts' is not expected."
I understand a bit that this has something to do with the type ExecuteMultipleRequest not being an expected object by the OrganizationService. But how do I fix it? I would have thought that this would have been a part of the WSDL used to set up the OrganizationService reference in Visual Studio.
Also, a side question: if I attempt to use early bound entities through the OrganizationServiceClient, I get a similar error for the entity object I am trying to create. e.g.: client.Create(new Account { name = "Test Account 002" }; This will then tell me that the Account object is not expected. Is there also a way to set up the OrganizationService to be able to use early bound types?
Thanks.
*This post is locked for comments
I have the same question (0)