# Error Adding a User...

**URL:** <https://forum.servoy.com/t/error-adding-a-user/6900>\
**Category:** Classic Servoy\
**Created:** [December 26, 2006, 4:13pm UTC](https://forum.servoy.com/t/error-adding-a-user/6900 "2006-12-26T16:13:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Providence1](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Providence1](https://forum.servoy.com/u/Providence1)\
**Post date:** [December 26, 2006, 4:13pm UTC](https://forum.servoy.com/t/error-adding-a-user/6900/1 "2006-12-26T16:13:28Z")

</div>

I’m getting this error on the admin webpage while trying to add a new user…

> com.sybase.jdbc2.jdbc.SybSQLException: ASA Error -193: Primary key for table ‘servoy\_users’ is not unique ASA Error -193: Primary key for table ‘servoy\_users’ is not unique

---

<div class="post-metadata">

**Author:** ![sbutler](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/sbutler/32/4393_2.png) [@sbutler](https://forum.servoy.com/u/sbutler)\
**Post date:** [December 27, 2006, 1:55pm UTC](https://forum.servoy.com/t/error-adding-a-user/6900/2 "2006-12-27T13:55:37Z")

</div>

I had this happen when we did our upgrade to Servoy 3.  
The primary key in the users table is an auto-increment. Somehow, users have been added to the users table without the sequence for the primary key being updated. So, when you add a new user, the newly assigned ID, is already in use by another user.  
You can either manually set the next auto incremented value, or just keep trying to add a user over and over, and eventually the key will increment to the appropriate value.
