locked
An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support. RRS feed

  • Question

  • An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

    I'm getting this error from CRM.  Install fresh crm 2015, then restore from backup database.  Can someone please help me translate this error?

       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | FaultHelper.ConvertToFault  ilOffset = 0x0
    >TryConvertToFaultExceptionInternal: exception: Microsoft.Crm.CrmException
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.DumpExceptionToTrace  ilOffset = 0x11
    >----- dump exception/fault tree (TryConvertToFaultExceptionInternal: before) -----
    >>>>>> EXCEPTION: 0
    >Type: Microsoft.Crm.CrmException
    >ErrorCode: 0x80041D1F:
    >Message (23): The user Id is invalid.
    >StackTrace: present: 1FA9BD1F
    >no PluginTrace
    >InnerException <null>
    ><<<<< EXCEPTION: 0
    >
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ConvertToFault  ilOffset = 0x24
    >NestingDepth: 24
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ConvertToFault  ilOffset = 0x57
    >ToSingleFaultUntyped: enter
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ToSingleFaultUnTyped  ilOffset = 0x2C
    >ToSingleFault/CrmException
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ToSingleFault  ilOffset = 0x24
    >ToSingleFaultCommon: enter
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ToSingleFault  ilOffset = 0x24
    >no PluginTrace
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ToSingleFault  ilOffset = 0x24
    >no CrmExceptionFaults
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.ToSingleFaultCommon  ilOffset = 0x183
    >IncludeCallStack: False
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.TryConvertToFaultExceptionInternal  ilOffset = 0xAD
    >TryConvertToFaultExceptionInternal: new FE<OSF>
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | ExceptionConverter.DumpExceptionToTrace  ilOffset = 0x11
    >----- dump exception/fault tree (TryConvertToFaultExceptionInternal: after) -----
    >>>>>> EXCEPTION: 0
    >Type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.BaseServiceFault]
    >Message (23): The user Id is invalid.
    >StackTrace <null>
    >no PluginTrace
    >>>>>> FAULT: 0
    >ErrorCode: 0x80041D1F:
    >Message (23): The user Id is invalid.
    >Timestamp: present
    >TraceText <null>
    >CallStack <null>
    >InnerFault <null>
    ><<<<< FAULT: 0
    >InnerException <null>
    ><<<<< EXCEPTION: 0
    >
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | CrmCache`1.InternalTryLookupEntry  ilOffset = 0x0
    >Cache item with key CRM_CUSTOM_RESOURCES{e5940353-8345-e511-80c4-00155d96ed01}1033 was not found in cache CRM_CUSTOM_RESOURCES
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:e5940353-8345-e511-80c4-00155d96ed01 |Thread:    8 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | CustomResourceLoader.LoadCacheData  ilOffset = 0x9
    >Attempting to load custom resources for the application.
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:e5940353-8345-e511-80c4-00155d96ed01 |Thread:    8 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | RetrieveMultipleCommand.Execute  ilOffset = 0x0
    >Pre-Platform Request: RetrieveMultiple, Microsoft.Crm.Extensibility.InprocessServiceProxy
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Shared |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | CrmDbConnection.Open  ilOffset = 0x2E
    >ConnectionString: Data Source=BCSCRM2013;Initial Catalog=MSCRM_CONFIG;Integrated Security=True;Min Pool Size=2;Connect Timeout=150;Workstation ID=BCSSERVER2012R2.w3wp.5555
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform.Sql |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | CrmDbConnection.InternalExecuteReader  ilOffset = 0x1C
    >exec p_GetCrmUserId 'e5940353-8345-e511-80c4-00155d96ed01', 'W:S-1-5-21-360836286-404179473-3815877717-3662'
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Platform.Sql |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | CrmDbConnection.InternalExecuteReader  ilOffset = 0x135
    >Query execution time: 0.0 seconds; database: MSCRM_CONFIG; Server:BCSCRM2013; command: exec p_GetCrmUserId 'e5940353-8345-e511-80c4-00155d96ed01', 'W:S-1-5-21-360836286-404179473-3815877717-3662'; CommandTimeout: 30.
    [2015-08-25 17:23:13.130] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityLibrary.CheckPrivilegeGroupForOrganization  ilOffset = 0x6
    >SID is S-1-5-21-360836286-404179473-3815877717-3662.
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityLibrary.CheckPrivilegeGroupForOrganization  ilOffset = 0x6
    >IsAnonymousSid is False.
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityLibrary.CheckPrivilegeGroupForOrganization  ilOffset = 0x27
    >SID is S-1-5-21-360836286-404179473-3815877717-3662.
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityLibrary.CheckPrivilegeGroupForOrganization  ilOffset = 0x27
    >IsSystemSid is False.
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityUtils.CheckTokenMembershipHelper  ilOffset = 0x0
    >Checking Token Membership for WindowsIdentity BCS-IP\CRMAPPS for groupSID S-1-5-21-360836286-404179473-3815877717-1259.
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityUtils.CheckTokenMembershipHelper  ilOffset = 0x74
    >SetupMode: False
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: ADUtility |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | SecurityUtils.CheckTokenMembershipHelper  ilOffset = 0xC7
    >CheckTokenMembershipHelper returns False.
    [2015-08-25 17:23:13.145] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    8 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 4c7ea78f-89c2-43c0-b262-9ea41e4188ac | CrmException..ctor  ilOffset = 0x30
     at CrmException..ctor(String formattedErrorMessage, Int32 errorCode, Object[] arguments)  ilOffset = 0x30
     at SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)  ilOffset = 0x6F
     at CrmWindowsIdentity.DoRecognizeUser(String userToken, Guid organizationId, LocatorServiceContext locatorServiceContext)  ilOffset = 0x0
     at BaseCrmIdentity.RecognizeCrmUser(Guid organizationId, LocatorServiceContext locatorServiceContext)  ilOffset = 0x49
     at BaseCrmIdentity.RecognizeCrmUser(Guid organizationId)  ilOffset = 0x3
     at InternalSdkContextInitializer.SetHttpContext(WindowsIdentity windowsIdentity, Guid organizationId, Guid callerId)  ilOffset = 0x6F
     at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x12
     at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xF6
     at RetrieveMultipleCommand.Execute()  ilOffset = 0x0
     at CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)  ilOffset = 0x106
     at CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)  ilOffset = 0x9
     at CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)  ilOffset = 0x39
     at CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)  ilOffset = 0x5
     at CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)  ilOffset = 0x5
     at BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)  ilOffset = 0xA
     at GlobalBase.BuildErrorHandlerUri(String errorHandlerPage, ErrorInformation errorInformation)  ilOffset = 0x176
     at MainApplication.HandleError(ErrorInformation errorInformation)  ilOffset = 0x2D
     at MainApplication.Application_Error(Object sender, EventArgs eventArguments)  ilOffset = 0x5C0
     at EventHandler.Invoke(Object sender, EventArgs e)  ilOffset = 0xFFFFFFFF
     at HttpApplication.RaiseOnError()  ilOffset = 0x26
     at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x85
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B
    >Crm Exception: Message: The user Id is invalid., ErrorCode: -2147214049

    Tuesday, August 25, 2015 10:27 PM

All replies

  • Hi Touristsis

    It's saying that the user id is invalid. You are probably trying to login using an user account that was added to CRM after the backup was done. I will be troubleshooting along those lines.

    Tuesday, August 25, 2015 11:14 PM
  • I'm login as Domain\Administrator. I'm also on the deployment administrator.  This is also the account I'm using to install CRM.
    Wednesday, August 26, 2015 1:19 AM
  • hmm... perhaps try the steps in the following articles. It's for Version 4, however worth checking all the steps.

    Also check to see if the Async service is running on the CRM server.

    https://support.microsoft.com/en-us/kb/946620

    https://ericniemiec.wordpress.com/2009/12/08/microsoft-dynamics-crm-4-0-the-user-id-is-invalid-and-user-id-associated-with-the-current-record-is-not-valid/

    Wednesday, August 26, 2015 1:54 AM
  • Was this resolved already? I'm also encountering the same error right after I log in CRM. Please suggest what can be the resolution for this.
    Friday, January 20, 2017 8:36 AM
  • After you doing the Database Restore, you need to remove your org from Dynamics Management Tool, and import your new org from your restored database, if you have lost the user, you need to select manually mapping user, to map the system admin to your local or domain admin.

    Michael Ma

    Tuesday, March 7, 2017 2:51 PM