locked
How to exceed 2 mins execution time out in sandbox mode (CRM online) RRS feed

  • Question

  • Hi,

    We have a custom workflow activity registered in sandbox mode(CRM 2016 online). We have around 5000+ records which need to be updated at once. The sandbox process time outs and fails with the same error. We managed to increase the timeout limit by changing the related registry keys. The process was then successful with the CRM 2016 onpremise environment. But we need to know how this can be changed for the CRM online environment - since we don't have server access.

    Regards,

    Anwesha

    Monday, February 22, 2016 10:52 AM

All replies

  • Hello,

    This can't be done in CRM Online so you will have to redesign your code and approach you use.


    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Monday, February 22, 2016 11:20 AM
    Moderator
  • As per Andrii's post, you can't increase the limit in Crm Online. Some ideas for redesigning your code:

    • Within the custom workflow activity, use an ExecuteMultiple or ExecuteTransaction request to combine multiple updates in one call. The code will still be subject to the 120 second timeout, but this might provide a sufficient speed improvement to complete within this time
    • If the first option doesn't work, then you'll either have to split the updates across multiple workflow steps or instances, or execute the code from outside of Crm - you could maybe run something in the Azure Service Bus, or run a batch process (such as with SSIS) that polls for when to make changes, then does the update

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, February 22, 2016 12:49 PM
    Moderator