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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error Entity 'systemus...
Power Apps
Suggested Answer

Error Entity 'systemuser' With ID XXXXX does not exist

(0) ShareShare
ReportReport
Posted on by 228
Hi there,
 
I have a model driven app with a business rule in the BPF that replaces users who are assigned to requests via the column "CSS Assigned". The rule replaces the assigned user with a system account called "# Portal-MAPS" not sure why it's called that, but that's what we have. In my Dev environment, the rule works exactly as intended, however, in my Test and Prod environments I get the error message below. I'm unsure of where to go to resolve this issue. Any help would be appreciated.
 
Exception Message: Entity 'systemuser' With Id = e0c97076-c25a-ee11-be6f-000d3a3ac0ab Does Not Exist
ErrorCode: -2147220969
HexErrorCode: 0x80040217
ErrorDetails: 
    ApiExceptionSourceKey: Plugin/Microsoft.Crm.ObjectModel.CustomBusinessEntityService
    ApiStepKey: ae6117db-3f55-ee11-be6e-000d3a3b2024
    ApiDepthKey: 1
    ApiActivityIdKey: d07a56b7-d0f5-4004-8843-bdc5e0912c3e
    ApiPluginSolutionNameKey: System
    ApiStepSolutionNameKey: System
    ApiExceptionCategory: ClientError
    ApiExceptionMessageName: ObjectDoesNotExist
    ApiExceptionHttpStatusCode: 404
HelpLink: http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040217&client=platform
Activity Id: 61187188-21e0-46cb-917b-ba6a3b156cd3
I have the same question (0)
  • Jan Chlebek Profile Picture
    19 on at
    Have you hardcoded either user GUID or table address in the business logic?
    1. You should always address the table from current environment.
    2. You should ensure that when processing BPF logic, you are providing systemuser GUID from a given environment - your flow is failing as from environment to environment this ID will differ and you need to look it up.
    3. This flow may fail if the user do not have access to a given environment - not all tenant users are automatically added to systemuser table in a given environment. It only happen when user gets access.
     
    Hope it helps :)
  • Suggested answer
    Ciprian  P Profile Picture
    10 on at
    Hi,
     
    I do not beleive the Business Rules is the right tool for this requirement.
     
    You might have a specific system user with display name like "# Portal-MAPS" in all environments, however, this system user will have different GUID in each environment.
     
    The Business Rule definition will use the GUID of the system user, hence, after deployment it fails to find the defined system user with same GUID in the target environment.
     
    Consider using Power Automate and Environment Variables to achieve this.
  • ShondaT Profile Picture
    228 on at
    @Ciprian P Will the flow in powerautomate work with the BPF? Can you offer a suggestion on how to start the flow?
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at
    Hi,
     
    Did you moved this Business Rule from One Environment to Other Environment?
    if yes, make sure there is Lookup Available, if Yes, try to map the User Again in the Destination Environment

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard