Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Userid guid not found in system user base

Posted on by 1,575

Hello,

I have been troubleshooting an error - " Principal user (Id=xxxxxxxxxxxxxxxxxxxx, type=8) is missing prvRead..... "

I have done this before several times, been able to find the User and the privilege and then sort it out quickly.

- however with this latest error, when I search for the Principal User guid specified in the error message it does not exist in the systemuserbase (or Teambase)!

Has anyone any experience of this / advice?

Many thanks,

- Seamus

*This post is locked for comments

  • Seamus Profile Picture
    Seamus 1,575 on at
    RE: Userid guid not found in system user base

    Thanks David and Kokulan.

    We have two orgs - the User exists in neither. It doesn't help that the original error is sporadic/infrequent. I will turn tracing on and try to provoke it again next week.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Userid guid not found in system user base

    The trace log is enabled for all the instances of CRM.  I normally use the CRM Trace Reader and filter the trace by Org ID to make sure im relating the error message to the right

    org.

    ScreenClip-_5B00_256_5D00_.png

    https://archive.codeplex.com/?p=crmtracereader 

    There is a possibility that the user exist on one of the other instance not the one you are checking.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Userid guid not found in system user base

    Re impersonation. If any code is impersonating a user, then well-written code should get the userid from systemuserbase, but there's no guarantee that it does - it could use some hard-coded value that is incorrect. I don't know if CRM would try and verify the systemuserid (and throw a different error from the one you get if it is missing), or if it just checks for permissions first, which would give the message you get

  • Seamus Profile Picture
    Seamus 1,575 on at
    RE: Userid guid not found in system user base

    The original error - Principal user (Id=xxxxxxxxxxxxxxxxxxxx, type=8) is missing prvRead appears in a tracelog which is written to during the execution of a C# console app (which creates/updates contacts). I turned on tracing originally because I was getting an occasional/random error (caught exception) which stated

    "An error occured while processing this request. inner exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: The plug-in execution failed because no Sandbox Worker processes are currently available. Please try again.

    System.ServiceModel.CommunicationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #08BA0CE4 (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault)."

  • Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Userid guid not found in system user base

    Could you please share the detail about at what point you are getting this error? and any screenshot if possible

  • Seamus Profile Picture
    Seamus 1,575 on at
    RE: Userid guid not found in system user base

    Thanks Kokulan - tried that - "system user with that id does not exist".

  • Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Userid guid not found in system user base

    Open a user record, get the URL, and replace the record ID with this GUID you are getting in the error message and see if it opens a record

  • Seamus Profile Picture
    Seamus 1,575 on at
    RE: Userid guid not found in system user base

    Hi David. - good suggestions, thanks. I'm in the right organisation and I have checked all the other possible tables  - but no sign of this Guid?? If the code is trying to impersonate a User surely that Userid should still exist in the SystemUserBase (or TeamBase)??

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Userid guid not found in system user base

    A couple of possibilities:

    • If some code is trying to impersonate a user, then they will just pass the user guid. In this case CRM may not check if this exists in systemuserbase, and may just check for permissions. So, if an invalid userid is passed when impersonating, you could get this behaviour
    • Some permissions relate to data in the mscrm_config database, which has a separate systemuser table, with different guids (there's also a systemuserorganization table that maps these to the guids in each organisation)

    Also, if you have multiple organisations, check that you're looking in the systemuserbase table in the correct database

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans