Home Home
  login

Welcome to the Atlas Support Site

Atlas is the amazing new knowledgebase and community support system from Countersoft. If a question needs an answer and an answer needs a home then Atlas is where it lives. With unique Relevant Replies and lighting fast Tag and Text Filter, knowledge is at your fingertips.




Not possible to delete an user

config

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

Error deleting user.txt ]
Arne Diemeer
· 1
Arne Diemeer
Replies (5)
helpful
0
not helpful

Does the user stay active or is it disabled? Also, check the error log (http://..../errors.axd) if there are any more details.


Saar Cohen
· 250
Saar Cohen
helpful
0
not helpful

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


Arne Diemeer
· 1
Arne Diemeer
helpful
0
not helpful

It seems like the user has some documents assocaited with him / her. Deactibvate the user.


Saar Cohen
· 250
Saar Cohen
helpful
0
not helpful

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


Arne Diemeer
· 1
Arne Diemeer
helpful
0
not helpful

Leave it as deactivated. The user will not be able to login.


Saar Cohen
· 250
Saar Cohen