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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin Time limit 2 minutes

(0) ShareShare
ReportReport
Posted on by 595

Hello All,

We have a plugin which creates marketing lists in campaign by taking into the existing marketing lists of campaign.

The plugin is giving a timeout 2 minutes error.

I have gone through several questions in the forum and they suggest to use Custom Workflow.

Is there any way to increase the execution time limit of a plugin?

The marketing list contains 10,000+ contacts and i have to traverse through the list to create 6 different marketing lists. As plugin is throwing timeout error, can i use a custom workflow?

Thanks,

Abhilash.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Abhilash,

    Check out these links, they might help you

    social.microsoft.com/.../crm2011-organization-service-proxy-creation-operation-timeout

    brettrattey.wordpress.com/.../crm-2011-timeout-error-unhandled-exception-system-timeoutexception

    Regard,

    Ezgi

    Please verify if it helps

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    If you are working for CRM on premise you can increase this limit, but if you are using online deployment, you don't have any choice other then redesigning your plugin with code should execute within 2 min time frame. Also you need to understand this limit is maily for the logic registered on sandbox mode, so even you are using online and will try to use custom workflow it should throw timeout as well.

    Thanks

  • Abhilash M abi Profile Picture
    595 on at

    Hi All,

    Thanks for the suggestions.

    I am using CRM on-Premise, the logic has to create 6 new marketing lists from a marketing lists which has 10,000+ contacts.

    Can i use a custom workflow to fulfill this logic? are there any limitations for this?

    Please suggest me.

    Regards,

    Abhilash

  • Tim Dutcher Profile Picture
    2,100 on at

    Here's another thread on a similar topic: community.dynamics.com/.../216310

    The ideas presented include moving the work to an external app or tool (e.g., Scribe) or divide/limit the work that a plug-in instance needs to do to avoid the time out.

  • Abhilash M abi Profile Picture
    595 on at

    Hello Tim,

    Thanks for the response. Do i need to use same logic for on-premise? Can"t i use a custom workflow?

  • Tim Dutcher Profile Picture
    2,100 on at

    My understanding is that a workflow activity must also complete within two minutes or so, but I'll defer to others on this to confirm.

  • Suggested answer
    Alagunellaikumar Profile Picture
    6,212 on at

    In your situation create custom web service and import it that would be easy way/

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    If you will use custom workflow and it is not registered on sandbox mode- you should not  get time limit issue, and you can increase it in case on premise as well.

    Thanks

  • EmployeeOcta Profile Picture
    6 on at

    In case of you are using classes to build the query i would rather suggest you to run the inline queries and directly hit that to the database.

    May be it will work for you.

  • Verified answer
    Abhilash M abi Profile Picture
    595 on at

    A custom workflow not in sandbox mode solved this issue. Thanks all for sharing the knowledge.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans