Turn off Microsoft CRM 2011 5000 limit on data retrieval via SDK

With CRM 4.0 and Microsoft CRM 2011 there is a default limit for the number items that can be retrieved when making various types of web service calls into the CRM.
Typically this limit is set to 5000 but with some types of calls it will return 7000. In any case, the process to remove the limit and set it to 20,000 is very easy.
On the server running CRM

  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Locate and then select the following registry subkey:HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type TurnOffFetchThrottling, and then press ENTER.
  5. Right-click TurnOffFetchThrottling, and then click Modify.
  6. Type a number other than 0 in the Value data box, and then click OK.
    Note Step 6 lets you retrieve the number of records specified in the Count attribute of your fetch statement.
  7. On the File menu, click Exit.

10 thoughts on “Turn off Microsoft CRM 2011 5000 limit on data retrieval via SDK”

  1. Hi,
    Very interesting so how to do it with crm online.??
    EntityCollection list_contacts = service.RetrieveMultiple(new FetchExpression(fecthContactsActifs));
    5000 ONLY RETRIEVED while i got more
    Thank u for you answer.;;;???

Leave a Reply

Your email address will not be published. Required fields are marked *