# Username template cannot found

**URL:** https://meta.discourse.org/t/username-template-cannot-found/214224
**Category:** Support
**Created:** [January 8, 2022, 9:39am UTC](https://meta.discourse.org/t/username-template-cannot-found/214224 "2022-01-08T09:39:53Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![cocococosti](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cocococosti/32/231474_2.png) [@cocococosti](https://meta.discourse.org/u/cocococosti)
#### Post date: [January 11, 2022, 6:52pm UTC](https://meta.discourse.org/t/username-template-cannot-found/214224/8 "2022-01-11T18:52:52Z")

</div>

> [@f1r4s](#):
>
> `Discourse.system_user.create_user_profile`
> 
> This command would fix the badge issue; but i would apprecaite if someone provide how to run this command ? or where ?

Why do you believe so? I don’t think the `create_user_profile` method is meant to be run manually, is run by Discourse after a user is created [discourse/app/models/user.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/app/models/user.rb#L126)  
That is why you get the `duplicate key value` error, because you are trying to create user profiles that already exist.

I tried to replicate this error by creating a user account with username دعم\_المجتمع and I also tested it with an account with an English username, both had the interface language set to Arabic, and it works fine.

I don’t think this issue is related to the language or templates anymore, but to the badges missing images, as you pointed out here [Badge image missing issue](https://meta.discourse.org/t/badge-image-missing-issue/214455)

---

_[View the full topic](https://meta.discourse.org/t/username-template-cannot-found/214224)._
