Not possible to delete an user
Hello,
I'm the administrator of the Atlas project we use. I have defined a couple of users. When I try to delete an user, I get an error. It is not possible to delete the user.
See attached the error I get.
Best regards,
Arne Diemeer
Arne Diemeer
· 1 |
|
Tuesday, December 18, 2012, 10:50:00 AM |
![]() 0
![]() |
Does the user stay active or is it disabled? Also, check the error log (http://..../errors.axd) if there are any more details. |
||||
|
![]() 0
![]() |
Hello, I both tried to delete an active user and an inactive user. In both situation I cannot delete the user. In the error.axd I see this information: NHibernate.Exceptions.ConstraintViolationException: could not delete: [CounterSoft.Atlas.Commons.Entity.User#15][SQL: DELETE FROM atlas_user WHERE id = ?] at NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Int32 j, Object obj, SqlCommandInfo sql, ISessionImplementor session, Object[] loadedState) at NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id, Object version, Object obj, ISessionImplementor session) at NHibernate.Action.EntityDeleteAction.Execute() at NHibernate.Engine.ActionQueue.Execute(IExecutable executable) at NHibernate.Engine.ActionQueue.ExecuteActions(IList list) at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session) at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) at NHibernate.Impl.SessionImpl.Flush() at NHibernate.Transaction.AdoTransaction.Commit() at CounterSoft.Atlas.Controllers.AdminController.DeleteUser(Int32 userId) Best regards, Arne |
||||
|
![]() 0
![]() |
It seems like the user has some documents assocaited with him / her. Deactibvate the user. |
||||
|
![]() 0
![]() |
I deactivated the user, but get the same error. I deactivated the user by unchecking all the checkboxes for the user. Then I see that the user is Inactive. After that I tried to delete the user. Is that the correct way to delete an user? Best regards, Arne |
||||
|
![]() 0
![]() |
Leave it as deactivated. The user will not be able to login. |
||||
|