# Usuários do Rake: merge em conta de administrador anterior gera erro

**URL:** <https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716>\
**Category:** Product Support\
**Tags:** merge-user\
**Created:** [8 Fevereiro , 2019 20:53 UTC](https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716 "2019-02-08T20:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [8 Fevereiro , 2019 21:04 UTC](https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716/3 "2019-02-08T21:04:15Z")

</div>

> [@david](#):
>
> > [@Jim.Morrison](#):
> >
> > rake users:merge[‘source’,‘target’]
> 
> Did you enter the command exactly like this? You need to replace ‘source’ and ‘target’ with the appropriate usernames.

That would produce another error by the rake task:

> “ERROR: User with username source does not exist”

To me it looks like the database is corrupt and contains posts with topic ids of non-existent topics.

---

_[View the full topic](https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716)._
