I have applied a unique index to the Name attribute on an entity. When I try to add a new member as a SuperUser with a duplicate Name value I get an informative error message that there is a unique index on that attribute. However, when I try to add a new member as a non SuperUser, I get an unhandled exception error.
The first two log entries for a SuperUser and a non SuperUser are identical. It's after the second log entry that the non SuperUser start the change to an unhandled exception.
The key to the third log entry for the non SuperUser is the following call - "Failed to ExecuteNonQuery on query mdm.udpIndexGet".
After the third log entry, there are two more log entries of Error and then a final log entry of Critical.
Why is the SuperUser getting a descriptive error message from the system where a non SuperUser just gets an unhandled exception?