Announcements
Hi,
I am getting error while adding custom entity to the solution in Dynamics 365 on-premise. Below is the error screenshot and tracer for the reference.
Appreciate your help in fixing this issue.
at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x64
at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) ilOffset = 0x93
at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0xDE
at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) ilOffset = 0x35
at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x218
at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4
at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x22D
at ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId) ilOffset = 0x0
at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType) ilOffset = 0x0
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode) ilOffset = 0x2E
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x4B
at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x0
at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34
at PlatformCommand.XrmExecuteInternal() ilOffset = 0xBC
at RetrieveExternalRequiredComponentsCommand.Execute() ilOffset = 0x0
at SolutionAdapter.RetrieveExternalRequiredComponents(Guid objectId, Int32 componentType, Nullable`1 solutionId, Boolean includeSubcomponents) ilOffset = 0x0
at SolutionWebService.HasSolutionComponents(String objectId, Int32 objectType, Boolean includeSubcomponents) ilOffset = 0x64
at SolutionWebService.CheckDependentComponents(XmlNode data) ilOffset = 0x0
at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x16
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0x6C
at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x3F
at WebServiceHandler.Invoke() ilOffset = 0xAE
at WebServiceHandler.CoreProcessRequest() ilOffset = 0x134
at SyncSessionlessHandler.ProcessRequest(HttpContext context) ilOffset = 0x3F
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15
at PipelineStepManager.ResumeSteps(Exception error) ilOffset = 0x27A
at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) ilOffset = 0x31
at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) ilOffset = 0xB0
at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x131
at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x0
at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x1E7
at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x0
Web Service Plug-in failed in SdkMessageProcessingStepId: {F1537B87-584E-4159-B2FD-24CF23FEA5CA}; EntityName: solutioncomponent; Stage: 30; MessageName: RetrieveExternalRequiredComponents; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.ObjectModel.DependencyFilter.FilterUnnecessaryDependencies(BusinessEntityCollection viewableDeps, Guid solutionId, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyFilter.FilterNonViewableDependencies(BusinessEntityCollection unfilteredCollection, FilterForOperation operation, Guid solutionId, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyFilter.FilterNonViewableDependencies(BusinessEntityCollection unfilteredCollection, FilterForOperation operation, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SolutionComponentService.RetrieveExternalRequiredComponentsInternal(Guid componentId, Int32 componentType, Boolean includeSubcomponents, Boolean returnsRootsOnly, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SolutionComponentService.RetrieveExternalRequiredComponents(Guid componentId, Int32 componentType, Boolean includeSubcomponents, ExecutionContext context)
.
No problem -Have you now been able to fix the issue all together? I have had similar issues to this in the past.
Thanks for your response.
Below two steps causing the same error.
1. Select both 'Include entity metadata' and 'Add All Assets'
2. Select only 'Include entity metadata' and unselect 'Add All Assets' -> In 'Missing Required Components' window, select 'No, do not include required components.' -> then trying to add the sub-components
But, able to add the entity and all the sub-components with below step.
1. Selected only 'Include entity metadata' and unselect 'Add All Assets' -> In 'Missing Required Components' window, selected 'Yes, include required components.'
Hi Charan, have you just tried adding the entity to the solution without any sub-components and then selecting the views/ forms manually that should allow you to add the entity to the solution. You will then be able to identify the SDK error or the issue within the entire entity but on a manual basis for example add all views> add all forms> and eliminate them from an issue. Could be potentially a web resource that is causing this.
Thanks for your response. May I know how can we male use of these two tables to identify the missing components?
Adding only entity metadata is fine, no error.
Could you just add the entity metadata only, not all the assets and see if you are still getting the error?
Adding existing entity to different solution.
Are you trying to add an existing entity to a different solution or a new entity altogether?
You might have deleted some dependent components of the Entity in an unsupported manner. If it is on-premise CRM, "DependencyBase" / "DependencyNodeBase" tables gives you more details on missing dependencies
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,142 Super User 2024 Season 2
Martin Dráb 227,979 Super User 2024 Season 2
nmaenpaa 101,148