Hi All,
We are trying to Upgrade our Field Service (v7.5.13.74) and Project Service Automation (v2.4.16.40) Components within our Dynamics 365 Environment. However when clicking on the "Upgrade" icon it always errors with "Solution installation failed. Please try again later. If the problem persists, please contact customer support."
I have attached a screen shot, we have tried numerous times over the last 2 months but still No Luck. Can anyone help or advise.
Thanks
Vincent Lau
Hello!
At first, it seems like the user is missing some privileges. However you should open a case with Microsoft Support to check the errors on the backend. The permission missing is the create on webresource, the Create option should be the first column and should look something like this:
Thank You. I have found both Logs and the same error occurs: WebResources import: FAILURE: WebResource name = 3DViewer/msdyn_3dModel.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3511, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.
For Solution History go to Settings -> Advanced Settings
Solution Histor should be in the Group 'Customizations'
One Error is repeating:
Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'
Does the systemuser who is initiationg the update process has enough privileges? Please verfiy Security Roles (normally I assign the Dynamics 365 Admin-Role in Office365)
Hello! According to the messages you've posted, users are missing some privileges. Please, if possible, open a support request and work with Microsoft Customer Support to verify this error on the backend and get the appropriate solution
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: WebResources import: FAILURE: WebResource name = msdyn_/fps/BookableResourceBookingHeader/BookableResourceBookingHeader.Library.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>660a2bed-c54d-4217-9e81-68fcef9ec380</ActivityId>
<ErrorCode>-2147159781</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionSourceKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.WebServices.ImportXmlService</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiOriginalExceptionKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourceException: WebResources import: FAILURE: WebResource name = msdyn_/fps/BookableResourceBookingHeader/BookableResourceBookingHeader.Library.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. ---> Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourceException: WebResources import: FAILURE: WebResource name = msdyn_/fps/BookableResourceBookingHeader/BookableResourceBookingHeader.Library.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. ---> Microsoft.Crm.CrmSecurityException: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.
at Microsoft.Crm.BusinessEntities.SecurityLibrary.ThrowCrmSecurityException(SecurityPrincipal principal, Guid privilegeId, Int32 errorCode, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateHandlerEntityPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)
at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateSecurityCheck(Object sender, ExtensionEventArgs e, BusinessEntity entity)
at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateHandler(ExtensionEventArgs e, Object sender)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreCreateEventHandler.Invoke(Object sender, ExtensionEventArgs e)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.<>c__DisplayClass214_0.<Create>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
at Microsoft.Crm.ObjectModel.WebResourceService.Create(IBusinessEntity entity, Boolean verifyDuplicateName, Boolean flushCache, ExecutionContext context)
at Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourcesHandler.CreateOrUpdateWebResource(WebResource webResource, String fileContent, WebResourceService webResourceService, Dictionary`2 existingWebResourceIds, Dictionary`2 existingWebResourceNames)
at Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourcesHandler.ImportItem()
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourcesHandler.ImportItem()
at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.ImportInternal()
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.Crm.Tools.ImportExportPublish.RootImportHandler.ImportAndUpdateProgress(ImportHandler ih)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ProcessHandlers(String[] ImportEntities, Hashtable ht, String& curPath, ImportHandler& ihForCurrentPath, CounterList listCounters)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImportInternal(Boolean withSolutionManifest)
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.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapableInternal(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipQueueRibbonJob, LayerDesiredOrder layerDesiredOrder, Boolean asyncRibbonProcessing)
at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipQueueRibbonJob, LayerDesiredOrder layerDesiredOrder, Boolean asyncRibbonProcessing)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0.<RunStep>b__0()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepKey</d2p1:key>
<d2p1:value xmlns:d4p1="schemas.microsoft.com/.../" i:type="d4p1:guid">1b830950-e106-4ee1-b3fd-d348cb65dc8d</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiDepthKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">2</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiActivityIdKey</d2p1:key>
<d2p1:value xmlns:d4p1="schemas.microsoft.com/.../" i:type="d4p1:guid">660a2bed-c54d-4217-9e81-68fcef9ec380</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionCategory</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">SystemFailure</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionMesageName</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">WebResourceImportError</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">500</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>0</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmSecurityException: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.
at Microsoft.Crm.BusinessEntities.SecurityLibrary.ThrowCrmSecurityException(SecurityPrincipal principal, Guid privilegeId, Int32 errorCode, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateHandlerEntityPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)
at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateSecurityCheck(Object sender, ExtensionEventArgs e, BusinessEntity entity)
at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateHandler(ExtensionEventArgs e, Object sender)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreCreateEventHandler.Invoke(Object sender, ExtensionEventArgs e)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.<>c__DisplayClass214_0.<Create>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
at Microsoft.Crm.ObjectModel.WebResourceService.Create(IBusinessEntity entity, Boolean verifyDuplicateName, Boolean flushCache, ExecutionContext context)
at Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourcesHandler.CreateOrUpdateWebResource(WebResource webResource, String fileContent, WebResourceService webResourceService, Dictionary`2 existingWebResourceIds, Dictionary`2 existingWebResourceNames)
at Microsoft.Crm.Tools.ImportExportPublish.ImportWebResourcesHandler.ImportItem()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>HasRetried</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">True</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>RetryExecutionStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<HelpLink>go.microsoft.com/.../
<Message>WebResources import: FAILURE: WebResource name = msdyn_/fps/BookableResourceBookingHeader/BookableResourceBookingHeader.Library.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.</Message>
<Timestamp>2020-04-14T12:08:52.148791Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>660a2bed-c54d-4217-9e81-68fcef9ec380</ActivityId>
<ErrorCode>-2147159781</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>WebResources import: FAILURE: WebResource name = msdyn_/fps/BookableResourceBookingHeader/BookableResourceBookingHeader.Library.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.</Message>
<Timestamp>2020-04-14T12:08:52.148791Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>660a2bed-c54d-4217-9e81-68fcef9ec380</ActivityId>
<ErrorCode>-2147220960</ErrorCode>
<ErrorDetails xmlns:d4p1="schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.</Message>
<Timestamp>2020-04-14T12:08:52.148791Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
WebResources import: FAILURE: WebResource name = msdyn_/fps/BookableResourceBookingHeader/BookableResourceBookingHeader.Library.js: Principal user (Id=6b713def-9960-e711-80fa-70106faa2291, type=8, roleCount=29, privilegeCount=3537, accessMode=0), is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'. context.Caller=6b713def-9960-e711-80fa-70106faa2291. Or identityUser.SystemUserId=bbc4db68-6ba5-4121-a447-1a81cd784bd9, identityUser.Privileges.Count=3599, identityUser.Roles.Count=0 is missing prvCreateWebResource privilege (Id=bd57cfa5-8495-4b3e-b358-da246ba797b5) on OTC=9333 for entity 'webresource'.
I have found the "System Job" and I will share that with you below. However I cannot find the "Solution History". I'm on the Power Platform Admin Centre
Hi,
could you share the informations in "Solution History" and "System Jobs" (flter for Errors during the time frame you trying to update both solutions. Those information could help to fix.
Best regards,
Manuel
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27