# Bug - Community Migration Backup/Restore Duplicates Roles

**URL:** <https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491>\
**Category:** Forum - Software\
**Created:** [December 9, 2022, 3:22pm UTC](https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491 "2022-12-09T15:22:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaworth](https://discussions.eramba.org/user_avatar/discussions.eramba.org/shaworth/32/2219_2.png) [@shaworth](https://discussions.eramba.org/u/shaworth)\
**Post date:** [December 9, 2022, 3:22pm UTC](https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491/1 "2022-12-09T15:22:59Z")

</div>

During the data migration from Community to Enterprise references to ‘user’ records are being duplicated. The attached image contains an example of duplicated references. Am I doing something wrong?

 ![dupes](https://discussions.eramba.org/uploads/default/original/2X/5/57aec114bfcb7cb31e147fc3f6b9fa87bd27c8e7.png)

Hopefully there is some SQL magic that will make this right.

---

<div class="post-metadata">

**Author:** ![kisero](https://discussions.eramba.org/user_avatar/discussions.eramba.org/kisero/32/2925_2.png) [@kisero](https://discussions.eramba.org/u/kisero)\
**Post date:** [December 9, 2022, 3:26pm UTC](https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491/2 "2022-12-09T15:26:27Z")

</div>

Hello,

- from which community version to which enteprise version are you doing migration?
- which section / module is the one that gives you trouble?
- is that the only one?

regards!

---

<div class="post-metadata">

**Author:** ![shaworth](https://discussions.eramba.org/user_avatar/discussions.eramba.org/shaworth/32/2219_2.png) [@shaworth](https://discussions.eramba.org/u/shaworth)\
**Post date:** [December 9, 2022, 5:40pm UTC](https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491/3 "2022-12-09T17:40:03Z")

</div>

The upgrade procedure I followed was:

- From 3.16.2 to 3.17.0 using System-\>Security-\>Updates until I was current
- Exported the data and files from 3.17.0 community
- Fresh intall of 3.17.0 enterprise
- Imported the data and files from 3.17.0 community

The modules that I’ve discovered so far (there may be others) are:

- Business Units - Business Unit Owner
- Assets - Owner
- Assets - Guardian
- Internal Controls - Service Owner
- Internal Controls - Collaborator
- Security Policies - Owner

The problem only impacts (User) and not (Group) associations.

Thank you for your assistance.

---

<div class="post-metadata">

**Author:** ![kisero](https://discussions.eramba.org/user_avatar/discussions.eramba.org/kisero/32/2925_2.png) [@kisero](https://discussions.eramba.org/u/kisero)\
**Post date:** [December 10, 2022, 9:28am UTC](https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491/4 "2022-12-10T09:28:22Z")

</div>

it seems pretty clear to me, we’ll check it on monday and let you know probably over support as we might need more information. we will them update this post.

---

<div class="post-metadata">

**Author:** ![sam](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://discussions.eramba.org/u/sam)\
**Post date:** [December 14, 2022, 7:44am UTC](https://discussions.eramba.org/t/bug-community-migration-backup-restore-duplicates-roles/2491/5 "2022-12-14T07:44:05Z")

</div>

The issue was due to the wrong synchronization of user field.  
Resolved with:

```auto
bin/cake user_fields sync_objects

```
