locked
Unable to add new user to crm 2011 organization RRS feed

  • General discussion

  • I create new organization in crm 2011. When I want to create new user to my org it return with error:

    ------------------------------------------------------------------------------------------------------------------------

    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: An unexpected error occurred.

    Error Number: 0x80040216

    Error Message: An unexpected error occurred.

    Error Details: An unexpected error occurred.

    Source File: Not available

    Line Number: Not available

    Request URL: http://crm-server/Toos/userdefined/edit.aspx?_CreateFromId=%7bDFC1E8A1-79AE-E111-9964-00155D0AC906%7d&_CreateFromType=10&etc=8&pagemode=iframe&preloadcache=1339534674283

    Stack Trace Info: [CrmException: An unexpected error occurred.]
       at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
       at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute()
       at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)
       at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck)
       at Microsoft.Crm.Application.Platform.SystemUser.Create(Boolean performDuplicateCheck)
       at Microsoft.Crm.Application.Forms.AppForm.SaveEntity(EntityProxy entity, FormEventId eventType, String redirectPath, Boolean performDuplicateCheck)


    [2012-06-13 01:29:38.860] Process: w3wp |Organization:c9a18d7b-79ae-e111-9964-00155d0ac906 |Thread:   11 |Category: ADUtility |User: 05c2d2a7-79ae-e111-9964-00155d0ac906 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | SecurityUtils.AddPrincipalToGroup
    >Add user 131d0a00-9f15-4692-bb8b-df0f859f6ebe to group 9f20b04c-dab6-4c4b-9b48-4a49196c860d using Distinguished Named failed, trying again to add the user using SID.
    [2012-06-13 01:29:38.952] Process: w3wp |Organization:c9a18d7b-79ae-e111-9964-00155d0ac906 |Thread:   11 |Category: Platform.Sdk |User: 05c2d2a7-79ae-e111-9964-00155d0ac906 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | VersionedPluginProxyStepBase.Execute
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {5ACABB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: systemuser; Stage: 30; MessageName: Create; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.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._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at Microsoft.Crm.ObjectModel.UserSettingsServiceInternal`1.PopulateOrgDefaults(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.UserSettingsServiceInternal`1.Create(IBusinessEntity usersettings, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CreateDefaultUserSettings(Guid userId, Guid businessId, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CreateInternal(Guid organizationId, IBusinessEntity systemuser, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.Create(IBusinessEntity systemuser, ExecutionContext context)
    .
    [2012-06-13 01:29:38.977] Process: w3wp |Organization:c9a18d7b-79ae-e111-9964-00155d0ac906 |Thread:   11 |Category: Exception |User: 05c2d2a7-79ae-e111-9964-00155d0ac906 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | CrmException..ctor
    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments)
    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 CreateCommand.Execute()
    at EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)
    at EntityProxy.Create(Boolean performDuplicateCheck)
    at SystemUser.Create(Boolean performDuplicateCheck)
    at AppForm.SaveEntity(EntityProxy entity, FormEventId eventType, String redirectPath, Boolean performDuplicateCheck)
    at AppForm.Save(Boolean& gridRefreshCallbackAdded)
    at AppForm.FormSaveEvent()
    at AppForm.RaiseDataEvent(FormEventId eventId)
    at EndUserForm.Initialize(Entity entity)
    at CustomizableForm.Execute(Entity entity, FormDescriptor fd)
    at SystemUserRecordPageHandler.ConfigureFormHandler()
    at GenericEventProcessor.RaiseEvent(String eventName)
    at PageManager.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: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at Microsoft.Crm.ObjectModel.UserSettingsServiceInternal`1.PopulateOrgDefaults(IBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.UserSettingsServiceInternal`1.Create(IBusinessEntity usersettings, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CreateDefaultUserSettings(Guid userId, Guid businessId, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CreateInternal(Guid organizationId, IBusinessEntity systemuser, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.Create(IBusinessEntity systemuser, ExecutionContext context)
    [2012-06-13 01:29:38.979] Process: w3wp |Organization:c9a18d7b-79ae-e111-9964-00155d0ac906 |Thread:   11 |Category: Platform |User: 05c2d2a7-79ae-e111-9964-00155d0ac906 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | MessageProcessor.Execute
    >MessageProcessor fail to process message 'Create' for 'systemuser'.
    [2012-06-13 01:29:38.982] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   11 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | ExceptionConverter.ConvertMessageAndErrorCode
    >System.Collections.Generic.KeyNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #74FFBA49: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    >   at Microsoft.Crm.ObjectModel.UserSettingsServiceInternal`1.PopulateOrgDefaults(IBusinessEntity entity, ExecutionContext context)
    >   at Microsoft.Crm.ObjectModel.UserSettingsServiceInternal`1.Create(IBusinessEntity usersettings, ExecutionContext context)
    >   at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CreateDefaultUserSettings(Guid userId, Guid businessId, ExecutionContext context)
    >   at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CreateInternal(Guid organizationId, IBusinessEntity systemuser, ExecutionContext context)
    >   at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.Create(IBusinessEntity systemuser, ExecutionContext context)
    [2012-06-13 01:29:38.983] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   11 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | CrmException..ctor
    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
    at CrmException..ctor(String message, Int32 errorCode)
    at PlatformCommand.CreateCrmExceptionFromServiceFault(FaultException`1 fe)
    at PlatformCommand.XrmExecuteInternal()
    at CreateCommand.Execute()
    at EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)
    at EntityProxy.Create(Boolean performDuplicateCheck)
    at SystemUser.Create(Boolean performDuplicateCheck)
    at AppForm.SaveEntity(EntityProxy entity, FormEventId eventType, String redirectPath, Boolean performDuplicateCheck)
    at AppForm.Save(Boolean& gridRefreshCallbackAdded)
    at AppForm.FormSaveEvent()
    at AppForm.RaiseDataEvent(FormEventId eventId)
    at EndUserForm.Initialize(Entity entity)
    at CustomizableForm.Execute(Entity entity, FormDescriptor fd)
    at SystemUserRecordPageHandler.ConfigureFormHandler()
    at GenericEventProcessor.RaiseEvent(String eventName)
    at PageManager.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: An unexpected error occurred., ErrorCode: -2147220970
    [2012-06-13 01:29:38.985] Process: w3wp |Organization:c9a18d7b-79ae-e111-9964-00155d0ac906 |Thread:   11 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 14215fd4-e8b5-4280-ac74-c097c62c1cd6 | ErrorInformation.LogError
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: An unexpected error occurred.

    Error Number: 0x80040216

    Error Message: An unexpected error occurred.

    Error Details: An unexpected error occurred.

    Source File: Not available

    Line Number: Not available

    Request URL: http://crm-server/Toos/userdefined/edit.aspx?_CreateFromId=%7bDFC1E8A1-79AE-E111-9964-00155D0AC906%7d&_CreateFromType=10&etc=8&pagemode=iframe&preloadcache=1339534766318

    Stack Trace Info: [CrmException: An unexpected error occurred.]
       at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
       at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute()
       at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)
       at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck)
       at Microsoft.Crm.Application.Platform.SystemUser.Create(Boolean performDuplicateCheck)
       at Microsoft.Crm.Application.Forms.AppForm.SaveEntity(EntityProxy entity, FormEventId eventType, String redirectPath, Boolean performDuplicateCheck)
    ------------------------------------------------------------------------------------------------------------------------

    Please, any idea of where is this come from?

    Tuesday, June 12, 2012 10:01 PM

All replies

  • Hi Kamran.S.N,

    please check on the Server the Registry Key under HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MSCRM\AutoGroupManagementOff   this key should be 0 (zero)

    You can try to set this key to 1 for testing. After you set this key to 1 try to add a new user. Should that one work it will be a information that you have dont enough rights as User on the Organization Unit where the Security Groups are. A Domain Administrator needs to delegate your User more rights on the Organization Unit.

    Dont forget to set the key back to 0 (zero) otherwise the Users you add to CRM are not in the CRM Security Groups which they belong to and are not able to run for example Reports.

    Wednesday, June 13, 2012 1:26 PM
  • I tried that one, but this happens again. I change the registry and restart iis as well, but the error is the same. Is there any other cause that make this?
    Wednesday, June 13, 2012 5:28 PM
  • Have you installed the latest rollups ?


    Visit my blog for CRM material, improving performance, kerberos, IFD, development tips, etc. :) http://quantusdynamics.blogspot.com

    Wednesday, June 13, 2012 9:18 PM
    Answerer
  • Yes, my org and server version is 5.0.9690.2243 (rollup 8 is installed)

    Thursday, June 14, 2012 9:33 AM
  • i am facing the same issue. How did you resolve it?

    Kind regards
    Jan


    • Edited by Jan_Klode Thursday, August 30, 2012 4:17 PM
    Thursday, August 30, 2012 4:17 PM
  • Hi

    Please refer this link

    http://community.dynamics.com/product/crm/f/117/t/77074.aspx


    Thanks & Regards Dhamodharan R

    Thursday, September 13, 2012 6:06 AM