Hello I have a question I'm hoping someone can answer as i cant seem to find a definitive answer anywhere.I have a plugin that is often hitting the 2 min timeout, there is a large amount of processing that is included in this plugin that can be handled asynchronously and is not required for the synchronous section of the plugin.if I create a new global action that accepts parameters, and pass data to this that then calls a newly created asynchronous plugin will this plugin have its own 2 minute limit? if not is there a way to do create this as a new session?
Hi,
Below article are best practices for 2minutes plugin timeout for external calls-
Set KeepAlive to false when interacting with external hosts in a plug-in
Set Timeout when making external calls in a plug-in
Dispose HttpWebResponse objects immediately after use. More info
using (result = webRequestClient.GetResponse()) { // do functionality; }
Full list of Best practices and guidance for the Microsoft Dataverse
Hope this helps!
Regards,
Venkatesh N
No I just needed to understand how the plugin limit worked, I have taken over an existing solution that doesn't seem to have been built with any limits in mind, the is a dependency on an external webservice call that is occasionally taking over 50s - 65s (typically 10 - 20s) to respond this is then using a large amount of the limit.
The rest of the plugin which does all the processing (5 - 6 different entity types) then runs in a linier fashion when it does need to, so i was going to split this up into separate plugins and process asynchronously as they are not dependant. individually id be very suppressed if any of these processes would take more the 15 - 20s to process.
This method would require very little rework of immediately fix the existing problem, which will then allow me to then re architype the solution using azure or a similar service.
the plugin will have its own 2 minutes, so your logic is to put some code inside the action and some code inside the plugin? if the process doesn't complete in 4 minutes your next step will be to call an action that call another action that call the plugin and hope it doesn't need 6 minutes?
so if i call an action that calls a new plugin that plugin doesn't get its own 2min ?
asynchronous or synchronous doesn't make difference for the 2 minutes timeout.
if your logic takes longer than 2 minutes then move it to azure or a similar service.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Daniyal Khaleel 143
DAnny3211 134
Abhilash Warrier 70 Super User 2025 Season 2