web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2011 - ExecuteMultipleRequest - "The formatter threw an exception while trying to deserialize the message..."

(0) ShareShare
ReportReport
Posted on by 305

Hi,

I'm trying to bulk create multiple records using the ExecuteMultipleRequest. Unfortunatelly it fails with the following error message:

"The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter schemas.microsoft.com/.../Services:request. The InnerException message was 'Error in line 1 position 12629. Element 'schemas.microsoft.com/.../Services:request' contains data from a type that maps to the name 'schemas.microsoft.com/.../Contracts:ExecuteMultipleRequest'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'ExecuteMultipleRequest' and namespace 'schemas.microsoft.com/.../Contracts'.'.  Please see InnerException for more details."

Here my sample code:


var multipleRequest = new ExecuteMultipleRequest(); multipleRequest.Settings = new ExecuteMultipleSettings { ContinueOnError = false, ReturnResponses = true }; multipleRequest.Requests = new OrganizationRequestCollection(); foreach (var r in dataCollection) { var newEntity = new Entity("my_entity"); newEntity["new_contact"] = new EntityReference("contact", r.ContactId); var req = new CreateRequest(); req.Target = newEntity; multipleRequest.Requests.Add(req); } _organizationServiceProxy.EnableProxyTypes(); var response = (ExecuteMultipleResponse)_organizationServiceProxy.Execute(multipleRequest); var results = response.Results;

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    What rollup do you have installed? ExecuteMultiple message was released as a part of UR12. If your CRM is lower then you should update it to UR12. If it is on UR12 or higher then I believe it is a bug and you should get in touch with Microsoft and open a ticket.

    If you are not sure on what version you are here is short description - social.technet.microsoft.com/.../8062.crm-2011-build-and-version-numbers-for-update-rollups.aspx

  • toLL Profile Picture
    305 on at

    Hello,

    this could be the reason, we're still on UR10 (5.0.9690.2730). Thanks for your answer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans