Microsoft KB Archive/946620

= Error message when you log on to Microsoft Dynamics CRM 4.0 or when you click a folder in the Microsoft Dynamics CRM client for Outlook: &quot;The user Id is invalid&quot; =

Article ID: 946620

Article Last Modified on 12/31/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 4.0
 * Microsoft Dynamics CRM for Microsoft Office Outlook, when used with:
 * Microsoft Dynamics CRM 4.0

-



SYMPTOMS
When you log on to Microsoft Dynamics CRM 4.0 or when you click a folder in the Microsoft Dynamics CRM client for Microsoft Office Outlook, you receive one of the following error messages.

Error message 1

Microsoft CRM Error Report:

Error Description: The user Id is invalid.

Error Details: The user Id is invalid.

Error message 2

Error Number: 0x80041D1F

Source File: Not available

Line Number: Not available



CAUSE
This problem occurs because the Microsoft Dynamics CRM server is missing from the Active Directory directory service PrivUserGroup group.

Note We recommend that you add the Microsoft Dynamics CRM server to the PrivUserGroup group when you install the Microsoft Dynamics CRM server. If the server is manually removed from the group or if the server was not added during the installation, you experience the problem that is mentioned in the &quot;Symptoms&quot; section.



RESOLUTION
To resolve this problem, add the Microsoft Dynamics CRM server to the Active Directory PrivUserGroup group. To do this, follow these steps:  Locate the correct security group that you have to update. If you have more than one deployment of Microsoft Dynamics CRM 4.0 in the domain, you will have multiple security groups. To locate the correct security group that you have to update, follow these steps:  Open SQL Server Management Studio, and then click New Query. Click the MSCRM_Config database.  Run the following SELECT statement. select ID, ,  from  Note If the security group was created when you installed Microsoft Dynamics CRM, the ID of the first organization that you create is used in the name of the security group.  In Active Directory, locate the security group that has the ID in the name. This is the security group of the deployment that you have to update.</li></ol> </li> Add the Microsoft Dynamics CRM server to the Active Directory PrivUserGroup group. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type dsa.msc, and then click OK.</li> Locate the organizational unit in which you installed Microsoft Dynamics CRM.</li> Double-click PrivUserGroup, click Members, and then click Add.</li> Click Object Types, click Computers, and then click OK.</li> In the Enter the object names to select box, enter the name of the Microsoft Dynamics CRM server, and then click Check Names.</li> Verify that the actual Microsoft Dynamics CRM server is listed in the Enter the object names to select box, and then click OK two times.</li> Restart the Microsoft Dynamics CRM server.</li> Restart the Microsoft Dynamics CRM client for Outlook.</li></ol> </li></ol>

<div class="moreinformation_section">

MORE INFORMATION
The full stack of error message 1 in the &quot;Symptoms&quot; section is as follows:

[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)

at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)

at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal

at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveCommand.Execute

at Microsoft.Crm.Application.Platform.DataSource.Retrieve(String entityName, Guid entityId, String[] columns)

at Microsoft.Crm.Application.MasterSiteMap.LoadMasterSiteMapInternal(Guid organizationId, DynamicMetadataCache metadataCache, Boolean useReferenceXml)

at Microsoft.Crm.Application.MasterSiteMap.LoadMasterSiteMap(Guid organizationId, DynamicMetadataCache metadataCache)

at Microsoft.Crm.Caching.MasterSiteMapCacheLoader.LoadCacheData(MasterSiteMapCacheKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.CreateEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.MasterSiteMapCache.LookupEntry(IOrganizationContext context)

at Microsoft.Crm.Application.SiteMap.GetSiteMapForUser(IUser user, Client client, Boolean isOffline, String forceGroupProfiles)

at Microsoft.Crm.Application.SiteMap.GetSiteMapForUser(IUser user, Client client, Boolean isOffline)

at Microsoft.Crm.Caching.UserSiteMapCacheLoader.LoadCacheData(UserSiteMapCacheKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.CreateEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.UserSiteMapCache.LookupEntry(Guid userId, IOrganizationContext context)

at Microsoft.Crm.Web.Loader.ConfigurePage

at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

at Microsoft.Crm.Web.Loader.OnPreRender(EventArgs e)

at System.Web.UI.Control.PreRenderRecursiveInternal

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]

at System.Web.UI.Page.HandleError(Exception e)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

at System.Web.UI.Page.ProcessRequest

at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

at System.Web.UI.Page.ProcessRequest(HttpContext context)

at ASP.crm40newinstall_loader_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fcc31ff6\e77f4ed8\App_Web_dceqxaqi.1.cs:line 0

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Keywords: kbexpertisebeginner kbtshoot kbmbsmigrate kbprb kbexpertiseinter KB946620

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.