# 错误：在 index\_discourse\_solved\_solved\_topics\_on\_answer\_post\_id 上记录不唯一

**URL:** <https://meta.discourse.org/t/error-recordnotunique-on-index-discourse-solved-solved-topics-on-answer-post-id/358875>\
**Category:** Support\
**Tags:** solved\
**Created:** [2025年三月26日 06:39 UTC](https://meta.discourse.org/t/error-recordnotunique-on-index-discourse-solved-solved-topics-on-answer-post-id/358875 "2025-03-26T06:39:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)\
**Post date:** [2025年三月26日 06:39 UTC](https://meta.discourse.org/t/error-recordnotunique-on-index-discourse-solved-solved-topics-on-answer-post-id/358875/1 "2025-03-26T06:39:29Z")

</div>

我在尝试通过

`./launcher rebuild app`

进行更新时遇到这个错误

```plaintext
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: 无法创建唯一索引 "index_discourse_solved_solved_topics_on_answer_post_id" (ActiveRecord::RecordNotUnique)
DETAIL: 键 (answer_post_id)=(201795) 被重复。

```

有什么建议可以解决这个问题吗？

---

_[View the full topic](https://meta.discourse.org/t/error-recordnotunique-on-index-discourse-solved-solved-topics-on-answer-post-id/358875)._
