# 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:** 1

<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 3, 2015, 4:51am UTC](https://meta.discourse.org/t/error-moving-posts-solved/29582/1 "2015-06-03T04:51:19Z")

</div>

I’m seeing this on one of the discourse I manage, when trying to move two posts to a new topic

```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)=(266, 177) already exists.
: INSERT INTO topic_users(user_id, topic_id, notification_level, notifications_reason_id)
           SELECT user_id, 266, 3, 6
             FROM category_users
            WHERE notification_level = 3
              AND category_id = 24
              AND NOT EXISTS(SELECT 1 FROM topic_users WHERE topic_id = 266 AND user_id = category_users.user_id)
)

```

I’ve upgraded to latest, and still see it.

What can I do here?

---

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