Hello all;
I'm at my witts end and am completely frustrated. I develop for CRM 2011 On prem and we're on rollup 5. Recently a customer went with multiple forms. Everything was fine; after a few months I tried to create a new entity where i'm not getting this error. I also created a new org and am getting the same error when creating new entities. But on other organizations that were existing I'm not getting this error. Any help would be amazing. I've tried deleting the multiple forms etc.. no luck.
The error message I get is "Record is Unavailable , the requested record was not found or you do not have sufficient permissions to view it."
The detailed error message is
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: privilege With Id = 5cd72d33-7210-4ec5-a00e-70861134000c Does Not ExistDetail:<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>CallStack</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string"> 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)
at Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo, Guid solutionId)
at Microsoft.Crm.Application.WebServices.SystemCustomization.EntityCreate.Execute(Guid solutionId, ParameterBag paramBag)
at Microsoft.Crm.Application.WebServices.SystemCustomization.SystemCustomization.CreateEntity(XmlNode data)</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>privilege With Id = 5cd72d33-7210-4ec5-a00e-70861134000c Does Not Exist</Message>
<Timestamp>2014-05-13T13:24:14.835059Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Jason Cosman