locked
CRM 2013 login error : Business Management Error The user ID associated with the current record is not valid. RRS feed

  • Question

  • Has any one came across this issue before?? i am getting this error to login to crm 2013. i am not trying to open any record. i am trying to open its home page and get this error. 

    i verified trace log, restarted iis, restarted CRM server, restarted my pc. login to my pc & CRM Server is just fine. 

    I am system admin and able top open deployment manager, sql server just fine. Does this has to do with any CRM WebService/WCF service authentication??


    Friday, July 25, 2014 1:16 PM

All replies

  • My crm trace log looks like below.

    # CRM Tracing Version 2.0 # LocalTime: 2014-07-25 08:35:25.332 # Categories: # CallStackOn: No # ComputerName: CRMTESTSERVER # CRMVersion: 6.1.0000.0581 # DeploymentType: OnPremise # ScaleGroup: # ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools, VssWriter, EmailConnector [2014-07-25 08:35:25.332] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 12 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 213404e1-eb9e-4a66-bca4-321de2293a3c | <>c__DisplayClass1.<LoadMetadataContainerFromDatabase>b__0 ilOffset = 0x14 >Multi-org sharable cache loading system and non-system metadata with build number 6.1.0.581 and language 1033 [2014-07-25 08:35:31.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 12 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 213404e1-eb9e-4a66-bca4-321de2293a3c | 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 SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId, LocatorServiceContext locatorServiceContext) ilOffset = 0x56 at CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId) ilOffset = 0x41 at WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity) ilOffset = 0x9F at AuthenticationStep.Authenticate(HttpApplication application) ilOffset = 0x4E at AuthenticationPipeline.Authenticate(HttpApplication application) ilOffset = 0x11 at AuthenticationEngine.Execute(Object sender, EventArgs e) ilOffset = 0x147 at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x5D at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15 at ApplicationStepManager.ResumeSteps(Exception error) ilOffset = 0x10A 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 [2014-07-25 08:35:31.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 12 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 213404e1-eb9e-4a66-bca4-321de2293a3c | 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 SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId, LocatorServiceContext locatorServiceContext) ilOffset = 0x56 at CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId) ilOffset = 0x41 at WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity) ilOffset = 0x9F at AuthenticationStep.Authenticate(HttpApplication application) ilOffset = 0x4E at AuthenticationPipeline.Authenticate(HttpApplication application) ilOffset = 0x11 at AuthenticationEngine.Execute(Object sender, EventArgs e) ilOffset = 0x147 at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x5D at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15 at ApplicationStepManager.ResumeSteps(Exception error) ilOffset = 0x10A 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 [2014-07-25 08:35:31.744] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 12 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 213404e1-eb9e-4a66-bca4-321de2293a3c | ErrorInformation.LogError ilOffset = 0x17 >MSCRM Error Report: -------------------------------------------------------------------------------------------------------- Error: The user Id is invalid. Error Number: 0x80041D1F Error Message: The user Id is invalid. Error Details: The user Id is invalid. Source File: Not available Line Number: Not available Request URL: http://CRMTESTServer/CRMTESTServer/default.aspx Stack Trace Info: [CrmException: The user Id is invalid.] at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context) at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId, LocatorServiceContext locatorServiceContext) at Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId) at Microsoft.Crm.Authentication.WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity) at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application) at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application) at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) [2014-07-25 08:35:41.102] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 8 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: a0a64094-5f6f-44cb-9636-429dade91a64 | SystemAlerts.GetAlertsLastAccessTime ilOffset = 0x3B >Exception on getting the last alerts access time : Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Crm.Core.Application.WebServices.SystemAlerts.GetAlertsLastAccessTime() [2014-07-25 08:35:49.060] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9(MSCRM:-NotificationManager.NotificationWatcherThreadProc) |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: | ExecutionContext.RunInternal ilOffset = 0x70 >NotificationWatcherThreadProc Stopped. [2014-07-25 08:35:49.060] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 10(MSCRM:-MetadataCache.RemoveUnusedCachesThreadProc) |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: | ExecutionContext.RunInternal ilOffset = 0x70 >RemoveUnusedCachesThreadProc Stopped.


    Friday, July 25, 2014 1:38 PM
  • Could you check event viewer if there is any information loggedin ??, I sure you should find something useful there. 

    Our Website| Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Friday, July 25, 2014 1:39 PM
    Moderator
  • Hi Nick,

    I hope you are using OnPremise CRM. If yes,

    Try to re-map the user with other username which is not CRM. So that CRM remaps the things. Follow the below steps for re-mapping the user.

    1) Get the username of the user which is not in CRM and exists in AD.

    2) Open the User record(which you are facing the login issue).

    3) Override the username with the username(step 1), so that CRM gets the details from AD and updates them in user profile and save the record.

    4) Now again override the new username with the old username(which you are facing the issue) and save it.

    5) Disable the user and then enable it.

    Revert back with your comments.

    --

    Regards,

    Gopinath.

    http://mscrmtechie.blogspot.com


    Tuesday, July 29, 2014 9:47 AM
  • Gopinath, 

                     thanks for the procedure. when i do that and try to save/update other userid, i get below error. i thought it might have to do with Settings --> data Management --> Data Encryption, but we have this test system in http mode not https for now. 

                   Any idea?? 


    Tuesday, July 29, 2014 12:28 PM