Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Invalid User Authorization opening contacts for a single user

Posted on by Microsoft Employee

Hello,

I have a single user who when trying to view contacts is receiving a "Invalid User Authorization: The user authentication passed to the platform is not valid" error. They are able to perform all other functions without error. I have copied the database/organization back to a test environment and the issue repeats itself there. In the event log on the server there is an error message about "GUID should contain 32 digits" anytime this users tries opening a contact. I have tried many things including changing security (to Admin), restarting all servers in the environment, deleting views and many others. The only thing that has worked so far is creating a new user linked to the same AD account but nothing will fix the current broken user. Any help would be appreciated.

The version is Dynamics 365 1612 hosted on premise

Thanks!

Ben

*This post is locked for comments

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Invalid User Authorization opening contacts for a single user

    You can't delete users from CRM - this is a design limitation due to all the ownership, audit, and other lookups that reference a user. You can only deactivate them.

    Personally i would advise not to delete the user. You could reach out to MS Support if you want a root cause for your issue. I think it can be sorted out with a memory dump, which they can analyze for you

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Invalid User Authorization opening contacts for a single user

    I checked with our developer and was told we are not using any BFP on contacts.

    Does anyone have good resources on deleting a user?

    Thanks!

  • Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Invalid User Authorization opening contacts for a single user

    Do you have any Business Process Flow active against the Contact entity ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Invalid User Authorization opening contacts for a single user

    I tried clearing out the UserEntityUISettings table for this user and the issue is still happening

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Invalid User Authorization opening contacts for a single user

    From the call stack it looks to fain when retrieving a BPF:

       at Microsoft.Crm.Platform.Server.SelectionAlgorithmService.RetrieveProcessInstanceFromRecentlyViewed(Guid targetEntityId, Int32 targetEntityTypeCode, Boolean moreProcessData, IBusinessProcessFlowInstanceService businessProcessFlowInstanceService, IExecutionContext executionContext)

    Do you have any enabled on the Contact Entity ?

    Might be worth checking also the Most Recently Viewed records for this user and clean that up. See the suggestions from blogs.msdn.microsoft.com/.../dynamics-365-for-customer-engagement-slow-form-loads-for-one-user

    I do however agree with David - best & easiest solution would be to create a new user

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Invalid User Authorization opening contacts for a single user

    We are using ADFS

    Here is the error the user see:

    on the server anytime this happens:

    Event ID: 466d8da5219644d2a7b94ccb23e870a7
    Event sequence: 48
    Event occurrence: 1
    Event detail code: 0
     
    Application information:
        Application domain: /LM/W3SVC/1/ROOT-1-131783818939181877
        Trust level: Full
        Application Virtual Path: /
        Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
        Machine name: #####
     
    Process information:
        Process ID: 4084
        Process name: w3wp.exe
        Account name: our app service account
     
    Exception information:
        Exception type: HttpUnhandledException
        Exception message: 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.ProcessRequest(HttpContext context)
       at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)

    Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
       at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
       at System.Guid.TryParseGuidWithDashes(String guidString, GuidResult& result)
       at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
       at System.Guid..ctor(String g)
       at Microsoft.Crm.Platform.Server.SelectionAlgorithmService.<>c__DisplayClass1.<RetrieveProcessInstanceFromRecentlyViewed>b__0(IRecentlyViewedRecord record)
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
       at Microsoft.Crm.Platform.Server.SelectionAlgorithmService.RetrieveProcessInstanceFromRecentlyViewed(Guid targetEntityId, Int32 targetEntityTypeCode, Boolean moreProcessData, IBusinessProcessFlowInstanceService businessProcessFlowInstanceService, IExecutionContext executionContext)
       at Microsoft.Crm.Platform.Server.SelectionAlgorithmService.RetrieveDefaultProcessInstance(Guid targetEntityId, Int32 targetEntityTypeCode, String targetEntityLogicalName, Boolean moreProcessData, IExecutionContext executionContext)
       at Microsoft.Crm.Platform.Server.SelectionAlgorithmService.RetrieveDefaultProcessInstance(Guid targetEntityId, Int32 targetEntityTypeCode, String targetEntityLogicalName, IExecutionContext executionContext)
       at Microsoft.Crm.Application.Components.Application.ProcessControlProcessCacheUtils.GetPreferredProcessId(Int32 entityTypeCode, Guid parentEntityId, Boolean& skipFallback)
       at Microsoft.Crm.Application.Components.Application.ProcessControlProcessCacheUtils.GetProcess(Guid parentEntityId, Int32 entityTypeCode, Guid appModuleId, Boolean fallbackToDefault)
       at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.GetProcessIdForEntity(Guid entityId, Int32 entityTypeCode)
       at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder..ctor(String recordId, String entityTypeCode, Guid formId, FormFactor formFactor)
       at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder..ctor(String recordId, String entityTypeCode, FormFactor formFactor)
       at Microsoft.Crm.Application.Pages.Common.ReadFormPage.PopulateFormDescriptorAndDataBuilder()
       at Microsoft.Crm.Application.Pages.Common.ReadFormPage.OnPreInit()
       at Microsoft.Crm.Application.Controls.AppUIPage.OnInit(EventArgs e)
       at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     
     
    Request information:
        Request URL: https://###########/main.aspx?etc=2&extraqs=?_gridType=2&etc=2&id=1bAED21D37-0864-E811-80EA-005056A7CDE91d&rskey=1b00000000-0000-0000-00AA-0000100010041d&pagemode=iframe&pagetype=entityrecord&rskey={00000000-0000-0000-00AA-000010001004}
        Request path: /main.aspx
        User host address: 10.15.4.103
        User: the user effected
        Is authenticated: True
        Authentication Type: Federation
        Thread account name: app service
     
    Thread information:
        Thread ID: 25
        Thread account name: app service
        Is impersonating: False
        Stack trace:    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.ProcessRequest(HttpContext context)
       at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
     
     
    Custom event details:

    I have turned on tracing but don't really know where to look and nothing stands out

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Invalid User Authorization opening contacts for a single user

    If the test environment is in the same deployment as live, then the underlying cause is probably with the user information stored in MSCRM_Config, as this is used by all organisations in a deployment. However, this doesn't really help, and doesn't explain why the issue only occurs when opening contacts. As you can create a new user, I suggest you do this, and reassign any records to the new user.

    If you do want to investigate further, you can enable tracing, which may give more useful information

  • Suggested answer
    Nflannery Profile Picture
    Nflannery 360 on at
    RE: Invalid User Authorization opening contacts for a single user

    Sounds like something may have gone awry in the DB potentially around their user record and related records however it could be many things.  I would try deleting the user and recreating them but there may be too many dependencies.

  • Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Invalid User Authorization opening contacts for a single user

    Hi Ben,

    Could you please add here the error and the full call stack of the exception?

    Are you using ADFS and Claims Based Authentication?

    Regards,

    Radu

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans