Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

"Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.ExecutePluginInternal" Error - Troubleshooting

Arun Vinoth Profile Picture Arun Vinoth 11,615 Moderator

Recently I fumbled with this error in a Dynamics 365 CE Plugin:

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Voila.

at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.ExecutePluginInternal(IRemotePluginRequest pluginRequest, ExecuteRequest executeRequest, Guid executionId, ISandboxFabricDuplexCommunicationHandler communicationHandler, Boolean returnTraceInfo, Guid organizationId, SandboxFabricCallTracker sandboxFabricCallTracker) +0x5d7

at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricGrpcClient.ExecutePlugin(IRemotePluginRequest pluginRequest, IPluginExecutionContext executionContext, IPluginTracingService pluginTracingService, ISandboxFabricDuplexCommunicationHandler communicationHandler, ISet`1 earlySerializedPropertiesList, SandboxFabricCallTracker sandboxFabricCallTracker, ISandboxMemoryStreamProvider memoryStreamProvider) +0x2f0

at Microsoft.Xrm.RemotePlugin.Grpc.SandboxFabricCodeUnit.Execute(ILifetimeScope scope, IExecutionContext context, SandboxFabricCallTracker& sandboxFabricCallTracker, ISandboxMemoryStreamProvider memoryStreamProvider) +0x6e

at Castle.Proxies.Invocations.ISandboxFabricCodeUnit_Execute.InvokeMethodOnTarget() +0x13

at Castle.DynamicProxy.AbstractInvocation.Proceed() +0x2d

at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricPluginTraceInterceptor.Intercept(IInvocation invocation, IExecutionContext context, SandboxFabricCallTracker sandboxFabricCallTracker) +0x1f


While investigating, the exception is unhandled and caught at FaultException:

catch (FaultException<OrganizationServiceFault> ex)

{

    throw new InvalidPluginExecutionException("Voila.", ex);

}


The rootcause - I was assigning a date only field while creating an entity record using System.DateTime.Now.ToShortDateString(), it's fixed when I changed to System.DateTime.Today


So basically the platform throwing this error without more useful context or inner exception, due to the time component missing in datetime field. Sigh!


Happy learning :) 



This was originally posted here.

Comments

*This post is locked for comments