# Duplicate event roles

**URL:** <https://gramps.discourse.group/t/duplicate-event-roles/123>\
**Category:** Help\
**Tags:** type\_cleanup\
**Created:** [January 7, 2020, 1:43pm UTC](https://gramps.discourse.group/t/duplicate-event-roles/123 "2020-01-07T13:43:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [January 7, 2020, 1:43pm UTC](https://gramps.discourse.group/t/duplicate-event-roles/123/1 "2020-01-07T13:43:11Z")

</div>

Hello,

Some kind of roles, not all, are dupplicated when looking for them at event creation.  
Type cleanup utility doesn’t see these double roles. Do you have any idea where these _ghost_ roles come from?

Event:  
[![](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/28c3f269a8ee418783da082fd8335b3495cd73c0.jpeg) ](https://dl.dropboxusercontent.com/s/iujuppq555t8ni1/R%C3%B4les%20%C3%A9v%C3%A9nements%202.jpg)

Type Cleanup:  
[![](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/c525ab04cf9d2c5eb7f08359266e959075f60ef2.jpeg) ](https://dl.dropboxusercontent.com/s/ily81aijc4e6z71/R%C3%B4les%20%C3%A9v%C3%A9nements%201.jpg)

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [January 7, 2020, 2:15pm UTC](https://gramps.discourse.group/t/duplicate-event-roles/123/2 "2020-01-07T14:15:51Z")

</div>

One of them is a custom type that you can see in the Type Cleanup tool. The other is the French translation of the pre-defined type of Celebrant.

It looks like there is a bug that allows the creation of a custom type with the same name as a translated pre-defined type. I don’t think that this bug exists when using Gramps in English.

---

<div class="post-metadata">

**Author:** ![prculley](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/prculley/32/41_2.png) [@prculley](https://gramps.discourse.group/u/prculley)\
**Post date:** [January 7, 2020, 2:51pm UTC](https://gramps.discourse.group/t/duplicate-event-roles/123/3 "2020-01-07T14:51:29Z")

</div>

It could also happen if the user was running Gramps in another language (like English) and manually entered “Officiant”. Then when running Gramps in French it would look like this. Once in the db as a custom type, it would remain that way. In this case a use of the Type Cleanup tool rename function to the standard Gramps type would fix this in your db.

---

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [January 7, 2020, 3:56pm UTC](https://gramps.discourse.group/t/duplicate-event-roles/123/4 "2020-01-07T15:56:18Z")

</div>

Can I make sure there is only one left? With the typecleanup utility?
