Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error while importing a solution unmanaged in CRM 2011

(0) ShareShare
ReportReport
Posted on by

I'm trying to import a solution who create new entities on my dev enviroment and I'm getting this error:

It appear's to be some privilege id missing. nevertheless I look for the  Id privilege on the source/ destiny  and  I can´t find it anywere.

Does anyone can have an idea where to look?

2018-07-09 14:29:11.656] Process: w3wp |Organization:f94f39e4-7c6b-e011-8c48-005056977fbc |Thread: 41 |Category: Exception |User: 54f97e60-8b9f-495b-9bbd-46a18c90cd7f |Level: Error | CrmException..ctor at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException) at CrmException..ctor(String message, Int32 errorCode) at CrmObjectNotFoundException..ctor(BusinessEntityMoniker moniker) at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget) at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode) at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context) at RoleServiceInternal`1.IsReadPrivilege(RolePrivilege privilege, ExecutionContext context) at RoleServiceInternal`1.FilterReadPrivileges(RolePrivilege[] privileges, ExecutionContext context) at RoleServiceInternal`1.CollectAndReInitPrincipals(Guid roleId, RolePrivilege[] privileges, ExecutionContext context) at RoleServiceInternal`1.AddNewPrivilegesToExistingRole(Guid roleId, RolePrivilege[] privileges, ExecutionContext context) at SecurityHelper.AddPrivilegesToUserRole(RolePrivilege[] privileges, Guid[] roleTemplates, ExecutionContext context) at SecurityHelper.CreateEntityHelper(IEntityDescription entityDescription, OwnershipTypes ownershipTypeMask, ExecutionContext context) at EntityService.CreateInternal(EntityCreateInfo entityInfo, ExecutionContext context) at EntityService.Create(EntityCreateInfo entityInfo, ExecutionContext context) at ImportEntityHandler.CreateEntityAndAttributesFromNode(XmlNode entityNode) at ImportEntityHandler.ImportItem() at ImportHandler.Import() at RootImportHandler.RunImport(String[] ImportEntities) at ImportXml.RunImport(String[] ImportEntities) at ImportXml.RunImport() at ImportXmlService.ImportSolution(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, ExecutionContext context) at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at LogicalMethodInfo.Invoke(Object target, Object[] values) at InternalOperationPlugin.Execute(IServiceProvider serviceProvider) at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) at Pipeline.Execute(PipelineExecutionContext context) at MessageProcessor.Execute(PipelineExecutionContext context) at InternalMessageDispatcher.Execute(PipelineExecutionContext context) 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 transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) at PlatformCommand.XrmExecuteInternal() at ImportSolutionCommand.Execute() at DataSource.ImportSolution(Byte[] customizationFile, Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Guid importJobId, Boolean convertToManaged, IOrganizationContext context) at SolutionImportProcessPage.ImportSolution() at SolutionImportProcessPage.ProcessRequestData() at AppUIPage.OnPreRender(EventArgs e) at Control.PreRenderRecursiveInternal() at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at Page.ProcessRequest() at Page.ProcessRequest(HttpContext context) at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at ApplicationStepManager.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)>Crm Exception: Message: privilege With Id = b572093b-85ae-48aa-a020-db25d4abfe95 Does Not Exist, ErrorCode: -2147220969

 

>EntityService.Create caught exception: Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: privilege With Id = b572093b-85ae-48aa-a020-db25d4abfe95 Does Not Exist at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget) at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode) at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context) at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.IsReadPrivilege(RolePrivilege privilege, ExecutionContext context) at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.FilterReadPrivileges(RolePrivilege[] privileges, ExecutionContext context) at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.CollectAndReInitPrincipals(Guid roleId, RolePrivilege[] privileges, ExecutionContext context) at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.AddNewPrivilegesToExistingRole(Guid roleId, RolePrivilege[] privileges, ExecutionContext context) at Microsoft.Crm.Metadata.SecurityHelper.AddPrivilegesToUserRole(RolePrivilege[] privileges, Guid[] roleTemplates, ExecutionContext context) at Microsoft.Crm.Metadata.SecurityHelper.CreateEntityHelper(IEntityDescription entityDescription, OwnershipTypes ownershipTypeMask, ExecutionContext context) at Microsoft.Crm.Metadata.EntityService.CreateInternal(EntityCreateInfo entityInfo, ExecutionContext context) at Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo, ExecutionContext context)[2018-07-09 14:29:12.233] Process: w3wp |Organization:f94f39e4-7c6b-e011-8c48-005056977fbc |Thread: 41 |Category: Platform.Sdk |User: 54f97e60-8b9f-495b-9bbd-46a18c90cd7f |Level: Error | VersionedPluginProxyStepBase.Execute

*This post is locked for comments

  • RE: Error while importing a solution unmanaged in CRM 2011

    i looked in the source DB but I can´t find it either.  it whas exported from the same implementation only different DB

  • Suggested answer
    RE: Error while importing a solution unmanaged in CRM 2011

    Hi,

    it seesm that you are trying to import a solution with a newer versiont than CRM2011 (as BusinessProcess were introduced later)

  • RE: Error while importing a solution unmanaged in CRM 2011

    If you have source DB access, what is the privilegeId for? it will have some prv.... name

    Also, was the original solution exported from CRM 2011 ?

  • Mohsin Ali Profile Picture
    Mohsin Ali 3,614 on at
    RE: Error while importing a solution unmanaged in CRM 2011

    I think you have permission added in solution that does not exist in destination organization, firstly create that missing permission and then try to import the solution.

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Error while importing a solution unmanaged in CRM 2011

    It's stop on BusinessProcessObject which I thought, your solution have component that needs this business process. But not exists on the solution?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans