Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem setting BPF stage #266

Open
jrichview opened this issue Jun 30, 2022 · 1 comment
Open

Problem setting BPF stage #266

jrichview opened this issue Jun 30, 2022 · 1 comment

Comments

@jrichview
Copy link

jrichview commented Jun 30, 2022

We created a very very simple workflow that triggers when a case record is assigned to the user, and its job is to set the BPF stage for the case to a stage called "Case Picked & In Progress".

The flow fails on the attempt to set the BPF stage with the error message "Process stage Case Picked & In Progress not found."

Here is an image snippet from the process showing the process name:
image

The simple workflow:
image

The input parameters:
image

As you can see, the stage name is just hard-coded text.

*** PLEASE NOTE: I was thinking the problem could be the ampersand so I encoded the text as "& amp;" (space added so it would render correctly in this message) and tried again but got the same error message. Also tried %26

I'm not really sure how to tell you to reproduce this other than to create a BPF and name one of the stages with the same name and create a workflow that tries to set the stage to that particular one when the case is picked from the queue (i.e. the "Worked By" field gets set).

Expected behavior
BPF stage should be set to the requested stage.

This is Dynamics 365 (cloud, not on-prem).

Version of the tools is 1.0.60.1

CRM Version - online/onpremise - WorkflowTools version

@jrichview
Copy link
Author

jrichview commented Jun 30, 2022

UPDATE: I discovered that the stage name WAS incorrect: there was an extra space (not very noticeable) between the ampersand and the next word. So I updated the flow and re-tested and now every time it fails with the following:

image

Details:

Workflow suspended temporarily due to error: Exception type: Microsoft.Crm.CrmException
Message: 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="DeadlineExceeded", Detail="Deadline Exceeded", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1656624640.756000000","description":"Error received from peer ipv4:52.250.229.136:443","file":"......\src\core\lib\surface\call.cc","file_line":1068,"grpc_message":"Deadline Exceeded","grpc_status":4}")
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +0x28
at Grpc.Core.Internal.ClientResponseStream2.<MoveNext>d__5.MoveNext() +0x11b --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.<HandleGrpcStreams>d__50.MoveNext() +0x53c --- End of inner exception stack trace --- at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.<>c__DisplayClass50_2.<HandleGrpcStreams>b__1() +0xa5 at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable1 additionalCustomProperties) +0x90
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) +0x13
at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.d__50.MoveNext() +0x603
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +0xc
at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.d__50.MoveNext() +0x801
--- 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.<>c__DisplayClass48_0.<b__0>d.MoveNext() +0x33b
--- 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.PowerApps.CoreFramework.ActivityLoggerExtensions.d__151.MoveNext() +0x167 --- 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.Telemetry.XrmTelemetryExtensions.<ExecuteRootAsync>d__201.MoveNext() +0x0
--- 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.<>c__DisplayClass46_0.b__1() +0x36
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEnumerable1 additionalCustomProperties) +0x91
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func1 func) +0x0 at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.ExecutePluginInternal(IRemotePluginRequest pluginRequest, ExecuteRequest executeRequest, Guid executionId, ISandboxFabricDuplexCommunicationHandler communicationHandler, Boolean returnTraceInfo, Guid organizationId, SandboxFabricCallTracker sandboxFabricCallTracker) +0x3d3: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #4F606F26 at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricClientTelemetryInterceptor.<>c__DisplayClass3_0.<Intercept>b__0() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricClientTelemetryInterceptor.Intercept(IInvocation invocation, IExecutionContext context, SandboxFabricCallTracker sandboxFabricCallTracker)
at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricCodeUnitExecuteBaseInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ISandboxFabricCodeUnitProxy.Execute(ILifetimeScope scope, IExecutionContext context, SandboxFabricCallTracker& sandboxFabricCallTracker)
at Microsoft.Xrm.RemotePlugin.Client.SandboxFabricPlugin.<>c__DisplayClass4_1.b__3()
at Polly.Policy.<>c__DisplayClass150_01.<Execute>b__0(Context ctx, CancellationToken ct) at Polly.Policy.<>c__DisplayClass143_01.b__0(Context ctx, CancellationToken ct)
at Polly.RetrySyntax.<>c__DisplayClass12_1.b__1(Context ctx, CancellationToken ct)
at Polly.Retry.RetryEngine.Implementation[TResult](Func3 action, Context context, CancellationToken cancellationToken, IEnumerable1 shouldRetryExceptionPredicates, IEnumerable1 shouldRetryResultPredicates, Func1 policyStateFactory)
at Polly.RetrySyntax.<>c__DisplayClass12_0.b__0(Action2 action, Context context, CancellationToken cancellationToken) at Polly.Policy.ExecuteInternal[TResult](Func3 action, Context context, CancellationToken cancellationToken)
at Polly.Policy.Execute[TResult](Func3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func1 action)
at Microsoft.Xrm.RemotePlugin.Client.SandboxFabricPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Xrm.RemotePlugin.Client.ResilientSandboxPlugin.<>c__DisplayClass13_1.b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Xrm.RemotePlugin.Client.ResilientSandboxPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.RemotePluginExecute(IServiceProvider serviceProvider, ILifetimeScope lifetimeScope, IExecutionContext executionContext, ILogger logger)
at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)
-- End stack trace --

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant