Issue
User Manager displays an error message "Unable To Get User Data" with code "400 error" or "400 Bad Request":
The system log displays the error: "This constraint cannot be enabled as not all values have corresponding parent values."
Product Line
Power Monitoring Expert 9.0
Power Monitoring Expert 2020
Power Monitoring Expert 2021
Power Monitoring Expert 2022
Power Monitoring Expert 2023
Power Monitoring Expert 2024
Environment
Web Applications
User Manager
Cause
A conflict in the database prevents User Manager from populating the list of users.
Resolution
Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.
1. Open SQL Server Management Studio and connect to the PME SQL Server.
2. Execute the following script:
DELETE FROM [ION_Network].[dbo].[GroupMembershipMap]
WHERE TrusteeID NOT IN (SELECT UserID FROM [ION_Network].[dbo].[Users])
3. Refresh the Web Applications.