Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

C# ExecuteMultipleRequest no response

Posted on by Microsoft Employee

I load some CRM records using C# .NET.  It was slow, so we switched to ExecuteMultipleRequest to send a batch of records.  After upgrading to CRM 2016 and adding some workflows, it doesn't always get a response.

Pseudo code:

OrganizationService orgService  uses the connection string

request = new ExecuteMultipleRequest()
{
  Settings = new ExecuteMultipleSettings()
{
  ContinueOnError = true,
  ReturnResponses = true
},
  Requests = new OrganizationRequestCollection()
};

ExecuteMultipleResponse response = (ExecuteMultipleResponse)orgService.Execute(request);

So the code works, but not always.  Obviously I would like to reduce the CRM clutter to make it faster by reducing plugins/workflows, but what other options are there?  I can't seem to find a timeout setting, since this should be something along the lines of a web service call.  Is there another way to add them?

*This post is locked for comments

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: C# ExecuteMultipleRequest no response

    Hi,

    It will fail if you are sending more than 1000 requests using ExecuteMultipleRequest. then it will fail.

    You can check limitations here

    msdn.microsoft.com/.../jj863631.aspx

    another option to load records into CRM, by using data import using CSV file or you can use SSIS packages or some thrid party tools like Scribe, KingwaySoft etc.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans