web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Invalid User Authorization opening contacts for a single user

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Radu Chiribelea Profile Picture
    6,667 on at

    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

  • Suggested answer
    Nflannery Profile Picture
    360 on at

    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.

  • David Jennaway Profile Picture
    14,065 on at

    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

  • Community Member Profile Picture
    on at

    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

  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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
    on at

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

  • Radu Chiribelea Profile Picture
    6,667 on at

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

  • Community Member Profile Picture
    on at

    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!

  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans