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)

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

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I have a problem when I use plugin to upload large file on Crm online. This error is "The plug-in execution failed because no Sandbox Worker processes are currently available. Please try again.System.ServiceModel.CommunicationException: Microsoft Dynamics CRM has experienced an error".

Please help me to solve this problem.

Thanks,

Toten

*This post is locked for comments

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

    I didn't find any solution to resolve the problem.

    I use Console Application upload 1 file about 20Mb to CRM online (I register one plugin to validate file) and get the error above.

    If you have other solution please send me.

    Thanks,

  • ScottDurow Profile Picture
    21 on at

    Have you increased the max attachment size as per blogs.msdn.com/.../caveats-for-setting-the-maximum-file-size-limits-for-attachments-in-crm-2011.aspx

    I think this kind of issue is caused by the sandbox host crashing in some unhandled way.

  • Community Member Profile Picture
    on at

    Thanks Scott,

    I changed maximum file to 32Mb but the error was still appear when I use plugin to validation file ( file about 20Mb). Could you suggest me other solution to resolve the probleam

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    I suspect that your issue is in the plugins handling of large files. Remove any pre/post images and start stripping out the logic until oy starts working. This will show you what the cause is.

  • Community Member Profile Picture
    on at

    Exactly, If I disable plugin the error don't appear but I still want to use plugin to custom logic. I'll try to resolve it if you have other ideal please send me.

    Thanks

  • NatrajY Profile Picture
    3,040 on at

    Last time something like this happened we requested for a different scalegroup and our org was put in a different scalegroup, to test whether that was the issue. But unfortunately that did not fix the issue in our case, and I had to rewrite some plugins and workflows to fix the issue, because they were taking too much time to execute.

  • Suggested answer
    Kjeld Poulsen Profile Picture
    180 on at

    If your plugin is producing and endless loop this will be the error message. Typically when running .NET code, you will see at stackoverflow if the endless loop apears in your code, but running inside Dynamics 365 worker process, the "no Sandbox Worker proesses are currenctly available" exception will be thrown.

    Adding trace to your log plugin using the Microsoft.Xrm.Sdk.ITraceService might be able to give you a clue, but not always, because the process writing these messages to the error might also be thrown away in the stackoverflow, if that is the case, try remove fragments of your code in the plugin, to find the part of code that has an endless loop. In my case it was a trivial misspell on a property in a class

    [public string MyString => MyString]     should have been  [public string MyString => _mystring;]  pretty hard to find when such code is deep down in a sub class, used in a linq expression or similar.

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