locked
One of the Organization is not running in CRM 2011 RRS feed

  • Question

  • Hi,

    We have moved our CRM 2011 organization to different server and it was worked perfectly more than six months. One of the Organization is not running. We root cause the issue and find the two logs in event viewer.

    One is the Application service account not have permission in DB and it is fixed.The other one is below.

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 7/28/2015 6:03:45 AM 
    Event time (UTC): 7/28/2015 10:03:45 AM 
    Event ID: cf81ca6642104a09ab11ff82075b0a81 
    Event sequence: 667 
    Event occurrence: 2 
    Event detail code: 0 

    Application information: 
    Application domain: /LM/W3SVC/1/ROOT-1-130825496109213837 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: e:\Program Files\Microsoft Dynamics CRM\CRMWeb\ 
    Machine name: JMCRM01

    Process information: 
    Process ID: 4168 
    Process name: w3wp.exe 
    Account name: jm\JMCRMIO_APP_SVC 

    Exception information: 
    Exception type: CrmException 
    Exception message: The user Id is invalid.
    at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
    at Microsoft.Crm.Authentication.CrmWindowsIdentity.DoRecognizeUser(String userToken, Guid organizationId, LocatorServiceContext locatorServiceContext)
    at Microsoft.Crm.Authentication.BaseCrmIdentity.RecognizeCrmUser(Guid organizationId, LocatorServiceContext locatorServiceContext)
    at Microsoft.Crm.Authentication.BaseCrmIdentity.RecognizeCrmUser(Guid organizationId)
    at Microsoft.Crm.Extensibility.InternalSdkContextInitializer.SetHttpContext(WindowsIdentity windowsIdentity, Guid organizationId, Guid callerId)
    at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
    at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
    at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
    at Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)
    at Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)
    at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)
    at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)
    at Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)
    at Microsoft.Crm.Controls.Header..ctor(Boolean isControlHeader)
    at Microsoft.Crm.Controls.BasicHeader..ctor()
    at Microsoft.Crm.Application.Controls.AppHeader..ctor()
    at ASP.gabrieldev_default_aspx.__BuildControlcrmHeader()
    at ASP.gabrieldev_default_aspx.__BuildControlTree(gabrieldev_default_aspx __ctrl)
    at ASP.gabrieldev_default_aspx.FrameworkInitialize()
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    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)



    Request information: 
    Request URL: https://*****/*****/default.aspx 
    Request path: /****/default.aspx 
    User host address: 172.16.1.24 
    User: JM\******* 
    Is authenticated: True 
    Authentication Type: Federation 
    Thread account name: jm\JMCRMIO_APP_SVC 

    Thread information: 
    Thread ID: 90 
    Thread account name: JM\JMCRMIO_APP_SVC 
    Is impersonating: True 
    Stack trace: at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
    at Microsoft.Crm.Authentication.CrmWindowsIdentity.DoRecognizeUser(String userToken, Guid organizationId, LocatorServiceContext locatorServiceContext)
    at Microsoft.Crm.Authentication.BaseCrmIdentity.RecognizeCrmUser(Guid organizationId, LocatorServiceContext locatorServiceContext)
    at Microsoft.Crm.Authentication.BaseCrmIdentity.RecognizeCrmUser(Guid organizationId)
    at Microsoft.Crm.Extensibility.InternalSdkContextInitializer.SetHttpContext(WindowsIdentity windowsIdentity, Guid organizationId, Guid callerId)
    at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
    at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
    at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
    at Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)
    at Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)
    at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)
    at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)
    at Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)
    at Microsoft.Crm.Controls.Header..ctor(Boolean isControlHeader)
    at Microsoft.Crm.Controls.BasicHeader..ctor()
    at Microsoft.Crm.Application.Controls.AppHeader..ctor()
    at ASP.gabrieldev_default_aspx.__BuildControlcrmHeader()
    at ASP.gabrieldev_default_aspx.__BuildControlTree(gabrieldev_default_aspx __ctrl)
    at ASP.gabrieldev_default_aspx.FrameworkInitialize()
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    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)


    I have checked the possible solution and RD still facing the issue. Request you to help me out of this.

    Thanks,

    Prabaharan Kannan

    Tuesday, July 28, 2015 2:38 PM

All replies

  • It looks like the user mapping is incorrect. I suggest you use Crm Deployment Manager to delete the organisation, then reimport it

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Wednesday, July 29, 2015 9:17 AM
    Moderator