Failed to delete the user.


 Product(s):ProjectWise Integration Server
 Version(s):08.11.11.559
 Area: ProjectWise Administrator
 Subarea: User Management
 Original Author:dana guthrie, Bentley Technical Support Group

Error or Warning Message

Failed to delete the user. Invalid argument passed to dmsapi function
Failed to delete the user. Failed to send client request
Failed to delete the user. Not found.
Failed to delete the user. Unique constraint violated

Explanation

User is attempting to delete users from Projectwise Administrator and gets error

There are instances where it is impossible to delete a user sync account. Attempts of deleting the User account resulted in the above errors

How to Avoid

Remove any of the user properties on the account (Description, E-mail, and group information in Member of) before removing the account. If the error returns, press F5 to refresh the User screen to clear the error and then click remove to remove the account.

If the user still appears, and you are now getting
Failed to delete the user. Not found.
Failed to delete the user. Unique constraint violated

Its possible the list is cached, and you just need to clear the cache. It may be necessary to refresh the screen or you may need to close out of Admin and relaunch. 
Otherwise try stopping and restarting the integration server service

Also check to see if the user currently has any files checked out to them, free those files and try the delete again

See Also

ProjectWise V8i - Failed to delete user