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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The plugin execution f...
Power Apps
Answered

The plugin execution failed because no Sandbox Hosts are currently available, how to solve this error?

(0) ShareShare
ReportReport
Posted on by

Hi all,

I am have custom api plugin in my solution. I cloned the repo into my system and imported the solution to my trial environment. I made some changes in the code and updated it to my trial environment using plugin registration tool. It was working fine before the i update the plugin. After updating it, when i call the api in dynamics i am getting this error..

 

The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
Microsoft.Xrm.RemotePlugin.Grpc.ExceptionHandlers.SandboxFabricHostCommunicationException: Error communicating with SandboxFabricHost. ChannelState - Ready ---> Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Received http2 header with status: 502", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1622215598.376000000","description":"Received http2 :status header with non-200 OK status","file":"..\..\..\src\core\ext\filters\http\client\http_client_filter.cc","file_line":130,"grpc_message":"Received http2 header with status: 502","grpc_status":14,"value":"502"}")
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +0x28
at Grpc.Core.Internal.ClientResponseStream`2.<MoveNext>d__5.MoveNext() +0x11b
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +0x28
at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.<HandleGrpcStreams>d__48.MoveNext() +0x36f
--- End of inner exception stack trace ---
at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.<>c__DisplayClass48_2.<HandleGrpcStreams>b__1() +0x126
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) +0x90
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) +0x13
at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.<HandleGrpcStreams>d__48.MoveNext() +0x5e6

 

I looked into some of the solution posted in community. But I am not sure where I can find services.ms to check whether sandbox is running or not. 

And since it is trial environment, i dont know whether I should follow those solution. 

 

Thank you... 

 

 

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I believe you're online. In this case, the only your resort is to get in touch with Microsoft Support and open the ticket because the issue you describe is the issue with infrastructure and you don't have an access to it.

  • MahakJain Profile Picture
    25 on at

    Facing same error with Virtual plugin.. Did you get any resolution to this error?

  • nira Profile Picture
    17 on at

    Hi, 

    Did you receive an answer from Microsoft on this issue and how did you resolve it?

    Kind regards.

  • Ben Thompson Profile Picture
    1,400 on at

    Sandbox issues relate to Microsoft internal Dataverse infrastructure issues.

     

    So you will need to speak to MS support to fix it. Usually it will be picked up by their internal monitoring tools so chances are it will be fixed quickly if it happens...

  • nira Profile Picture
    17 on at

    Thank you, Ben. I'll check again tomorrow and contact them if the issue is still present.

  • Ganesh_Kumar Profile Picture
    2 on at

    Microsoft doesn't even care to look into issue if there is any customization.

     

    We are getting this error from Dual Write update from F&O to CE on synchronous and asynchronous plugins. Doesn't trigger any code in plugin and crashes with the same error posted. 

    Error:

    The plug-in execution failed because the Sandbox Worker process crashed. This is typically due to an error in the plug-in code. Please refer to this document: https://go.microsoft.com/fwlink/?linkid=2189390
    Microsoft.Xrm.RemotePlugin.Grpc.ExceptionHandlers.SandboxFabricWorkerCommunicationException: Error communicating with SandboxFabric Worker ---> Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Received http2 header with status: 502", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1689249862.219000000","description":"Error received from peer ipv4:52.228.87.40:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"Received http2 header with status: 502","grpc_status":14}")
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +0x28
    at Grpc.Core.Internal.Cli...).

     

    Microsoft ask to remove customizations in production and test as it is not replicated in lower environments.

     

    In Production - we cannot remove customizations, as is it not suggestible even. 

     

    On retry - this issue doesn't occur 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard