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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

The plug-in execution failed because no Sandbox Worker processes are currently available

(0) ShareShare
ReportReport
Posted on by 40

Suddenly, without any hint of understanding why, all our custom plugins give the error in the subject. We have create/update plugins that are quite simple and have not been changed for days. (account, opportunity, lead, contact, connection).

The error on ALL plugin executions now are: "The plug-in execution failed because no Sandbox Worker processes are currently available"

Disabling for example step for Update Opportunity still gives the same error when updating opportunity (and for all other plugins on other entities). Only unregistering the whole assembly will remove the error but then we dont get the desired functionality in the system obviously...

Most of the threads I've found regarding this subject are for onprem and say to check the sandbox service. But ours is online...Version 1710 (9.1.0.17446) online.

I did not manage to register the pluings in "Isolation mode: none", probably because it is an online environment....


UPDATE:

The error changed now (without any changes from our side) from throwing just the message in the subject to a more extensive message:

The plug-in execution failed because no Sandbox Worker processes are currently available. Please try again.
System.ServiceModel.CommunicationException:
The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error. Server stack trace: at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at Microsoft.Crm.Sandbox.SandboxWorkerProcess.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, Boolean returnTraceInfo, Int64& wcfExecInMs, Int64& initializeInMs, Int64& trackCallInMs, Int64& trackGoodReturnInMs, Int64& waitInMs, Int64& taskStartDelay): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #4BED20F4

Any help deeply appreciated.

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: The plug-in execution failed because no Sandbox Worker processes are currently available

    Hello,

    Open the ticket with Microsoft - I'm afraid this is the only way for you.

  • Verified answer
    Fedorov Profile Picture
    40 on at
    RE: The plug-in execution failed because no Sandbox Worker processes are currently available

    This issue was solved. It was a matter of commenting code and putting back line by line until the error could be tracked down.

    The error message/stack trace was not helpful in any way though...

    EDITED: having had some time to process this the issue was a copy/paste related error. There were two classes instantiating each other in loop. 

    So,one thing to check when running into this error is to check for infinite loops in the code. 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 120 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 119

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans