# There are some duplicated tags due to database corruption and I can't merge

**URL:** <https://meta.discourse.org/t/there-are-some-duplicated-tags-due-to-database-corruption-and-i-cant-merge/139506>\
**Category:** Product Support\
**Created:** [January 23, 2020, 7:15am UTC](https://meta.discourse.org/t/there-are-some-duplicated-tags-due-to-database-corruption-and-i-cant-merge/139506 "2020-01-23T07:15:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [January 28, 2020, 3:41pm UTC](https://meta.discourse.org/t/there-are-some-duplicated-tags-due-to-database-corruption-and-i-cant-merge/139506/5 "2020-01-28T15:41:39Z")

</div>

Sounds the same as this topic:

> [@'Tag is Invalid' - likely due to an unspecified plugin](https://meta.discourse.org/t/tag-is-invalid-likely-due-to-an-unspecified-plugin/137908):
>
> It works fine with one tag, but with more sometimes it won’t allow users to post and gives that error message. You can edit the post afterwards with as many tags as you want, and sometimes it just lets you post. Is there a setting in the backend that i need to change? Maybe the sporadic nature means users can’t create more than one tag at a time, or create a new tag when existing ones are also present. Anyone else encountered this?

There’s a unique index on the tag name column, so it shouldn’t be possible to have duplicate tags. I’m guessing if you did `reindex table tags` it would fail.

@pfaffman’s process [here](https://meta.discourse.org/t/cant-restore-due-to-corrupt-indexes-with-some-clues-on-how-to-deal-with-corrupt-indexes/137400/14) is probably what you’ll need to do to remove the duplicate tags and fix the indexes.

---

_[View the full topic](https://meta.discourse.org/t/there-are-some-duplicated-tags-due-to-database-corruption-and-i-cant-merge/139506)._
