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,...
Suggested answer

Workflow will not work. Async or Sandbox problem?

(0) ShareShare
ReportReport
Posted on by 125

Hello all,

We have a custom java script that is suppose to fire off of a create function.

I was assuming that this error was incurring because of services not running, I came to that initial assumption because we have not made any changes to our production environment. That was not the case, when i went on my backend server async and sandbox were running perfectly fine, also this just started on yesterday. This is my error log that I am getting.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The plug-in execution failed because the Sandbox Client encountered an error during initialization.Detail: 

  1186c1cf-7dba-4284-9ea1-8fdfc60049ff
  -2147220891
  
    
      ApiExceptionSourceKey
      Plugin/$Microsoft.Crm.Workflow.Services.ProxyCustomActivity
    
    
      ApiOriginalExceptionKey
      Microsoft.Crm.CrmException: The plug-in execution failed because the Sandbox Client encountered an error during initialization.
   at Microsoft.Crm.Sandbox.SandboxCodeUnit.EnsureListenerStarted()
   at Microsoft.Crm.Sandbox.SandboxCodeUnit.<>c__DisplayClass24_0.b__0()
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.Execute(IServiceProvider serviceProvider)
   at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePluginContainer.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)
    
    
      ApiStepKey
      fd2f658f-f1d8-eb11-b80d-00155d010335
    
    
      ApiDepthKey
      1
    
    
      ApiActivityIdKey
      1186c1cf-7dba-4284-9ea1-8fdfc60049ff
    
    
      ApiPluginSolutionNameKey
      System
    
    
      ApiStepSolutionNameKey
      System
    
    
      OperationStatus
      0
    
    
      SubErrorCode
      -2146233088
    
  
  The plug-in execution failed because the Sandbox Client encountered an error during initialization.
  2021-09-28T17:41:05.7414991Z
  false
  
  
  
  

I have checked event viewer as well and haven't found any new errors.

I have the same question (0)
  • David Lewis Profile Picture
    125 on at
    Workflow will not work. Async or Sandbox problem?

    Hello all,

    We have a custom java script that is suppose to fire off of a create function.

    I was assuming that this error was incurring because of services not running, I came to that initial assumption because we have not made any changes to our production environment. That was not the case, when i went on my backend server async and sandbox were running perfectly fine, also this just started on yesterday. This is my error log that I am getting.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The plug-in execution failed because the Sandbox Client encountered an error during initialization.Detail: 
    
      1186c1cf-7dba-4284-9ea1-8fdfc60049ff
      -2147220891
      
        
          ApiExceptionSourceKey
          Plugin/$Microsoft.Crm.Workflow.Services.ProxyCustomActivity
        
        
          ApiOriginalExceptionKey
          Microsoft.Crm.CrmException: The plug-in execution failed because the Sandbox Client encountered an error during initialization.
       at Microsoft.Crm.Sandbox.SandboxCodeUnit.EnsureListenerStarted()
       at Microsoft.Crm.Sandbox.SandboxCodeUnit.<>c__DisplayClass24_0.b__0()
       at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
       at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
       at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePluginContainer.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)
        
        
          ApiStepKey
          fd2f658f-f1d8-eb11-b80d-00155d010335
        
        
          ApiDepthKey
          1
        
        
          ApiActivityIdKey
          1186c1cf-7dba-4284-9ea1-8fdfc60049ff
        
        
          ApiPluginSolutionNameKey
          System
        
        
          ApiStepSolutionNameKey
          System
        
        
          OperationStatus
          0
        
        
          SubErrorCode
          -2146233088
        
      
      The plug-in execution failed because the Sandbox Client encountered an error during initialization.
      2021-09-28T17:41:05.7414991Z
      false
      
      
      
      

    I have checked event viewer as well and haven't found any new errors.

  • Suggested answer
    David Lewis Profile Picture
    125 on at
    RE: Workflow will not work. Async or Sandbox problem?

    I actually figured this one out. Both services were running, the problem was NetTcpPortSharing service on my frontend server. After starting this service, my plugin works just fine.

  • Nya Profile Picture
    29,060 on at
    RE: Workflow will not work. Async or Sandbox problem?

    Hi,

    It's great to hear that the issue has been figured out.

    Thanks for your sharing.

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
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 127 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans