Hello ,
We have an issue while creating a new custom entity in a CRM 2011 organization,I'm trying to create the entity using a user with administrator and System Customizer roles
There error from the trace as below
Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 59875a41-f6ad-43cc-81c6-6c4cbfaaec70 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x23B
>System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #D12BA77C: System.InvalidCastException: Specified cast is not valid.
> at Microsoft.Crm.Timeouts.GetExtendedTimeout()
> at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.CollectAndReInitPrincipalsInDb(Guid roleId, String readPrivilegesIds, Int32 countReadPrivileges, Boolean isRoleDeleted, ExecutionContext context)
> at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.CollectAndReInitPrincipals(Guid roleId, RolePrivilege[] privileges, Boolean isRoleDeleted, 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, MetadataHelper metadataHelper, ExecutionContext context)
> at Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, 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)
Any help would be appreciated..