# Double entry in default watch list @ user preferences -\> registration impossible

**URL:** <https://meta.discourse.org/t/double-entry-in-default-watch-list-user-preferences-registration-impossible/37181>\
**Category:** Bug\
**Created:** [Dezembro 28, 2015, 12:08am UTC](https://meta.discourse.org/t/double-entry-in-default-watch-list-user-preferences-registration-impossible/37181 "2015-12-28T00:08:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)\
**Post date:** [Dezembro 28, 2015, 12:08am UTC](https://meta.discourse.org/t/double-entry-in-default-watch-list-user-preferences-registration-impossible/37181/1 "2015-12-28T00:08:56Z")

</div>

I run into the following issue:

By accident, I entered two times the same category into the default user preference field for the default watched categories.

Result: Accounts could not be created anymore

```plaintext
PG::UniqueViolation (ERROR: duplicate key value violates unique constraint "idx_category_users_u1" DETAIL: Key (user_id, category_id, notification_level)=(16, 11, 3) already exists. )

```

Solution: I removed the enry from the watch list so that the list was unique.

However, I would expect that Discourse doesn’t allow to add two times the same category to the watch list.

Best,  
Robert

---

_[View the full topic](https://meta.discourse.org/t/double-entry-in-default-watch-list-user-preferences-registration-impossible/37181)._
