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)

process that runs synchronously more than 5 mins

(0) ShareShare
ReportReport
Posted on by 1,680

Hi All,

This requirement is for CRM 2011 on-premise project, which require a code to run on update for more than 5 mins. The process require lots of time to process the bulk creation requests.  Below are things which we are doing now.

we wrote the logic to run Update plugin, but it fails after 2 mins because of time limit. I could not use custom workflow as it is asynchronous, as we don't need any delay in executing the job. Since it is an emergency management system. Please throw your ideas how we can handle this in CRM 2011.

Thanks

Drew

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Wayne Walton Profile Picture
    13,730 on at

    First thing I would do is start expanding some of the timeouts to give your process more time to run: blogs.msdn.com/.../microsoft-dynamics-crm-timeout-settings.aspx

  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    Regardless of whether a plug-in executes synchronously or asynchronously, there is a 2 minute time limit imposed on the execution of a (message) request. If the execution of your plug-in logic exceeds the time limit, a System.TimeoutException is thrown. If a plug-in needs more processing time than the 2 minute time limit, consider using a workflow or other background process to accomplish the intended task.

    There is no way to increase this time limit. 

    One way to handle this situation is triggering something from other system that handles the logic whatever you have it in the plugin.

  • Mahendar Pal Profile Picture
    45,095 on at

    If possible divide logic in between more then one plugin, or may divide some logic between plugin and workflow.

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 May 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