# Error moving posts (solved)

**URL:** <https://meta.discourse.org/t/error-moving-posts-solved/29582>\
**Category:** Product Support\
**Created:** [June 3, 2015, 4:51am UTC](https://meta.discourse.org/t/error-moving-posts-solved/29582 "2015-06-03T04:51:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [June 4, 2015, 3:20am UTC](https://meta.discourse.org/t/error-moving-posts-solved/29582/5 "2015-06-04T03:20:07Z")

</div>

I wondered, but now I’m getting the same error on another forum I manage

This is what I get on discourse v1.3.0.beta11 +23

![](https://global.discourse-cdn.com/meta/original/3X/2/9/295c75cda0bd6a75cbf1b010df239fb38c663fac.png)

```plaintext
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_topic_users_on_topic_id_and_user_id"
DETAIL: Key (topic_id, user_id)=(1325, 567) already exists.
: INSERT INTO topic_users(user_id, topic_id, notification_level, notifications_reason_id)
           SELECT user_id, 1325, 3, 6
             FROM category_users
            WHERE notification_level = 3
              AND category_id = 6
              AND NOT EXISTS(SELECT 1 FROM topic_users WHERE topic_id = 1325 AND user_id = category_users.user_id)
)

```

I get this when I try to approve a post in the `Known Issues` Category on my other forum.. that forum has no category restrictions at all.

```plaintext
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_topic_users_on_topic_id_and_user_id"
DETAIL: Key (topic_id, user_id)=(1327, 567) already exists.
: INSERT INTO topic_users(user_id, topic_id, notification_level, notifications_reason_id)
           SELECT user_id, 1327, 3, 6
             FROM category_users
            WHERE notification_level = 3
              AND category_id = 6
              AND NOT EXISTS(SELECT 1 FROM topic_users WHERE topic_id = 1327 AND user_id = category_users.user_id)
)

```

---

_[View the full topic](https://meta.discourse.org/t/error-moving-posts-solved/29582)._
