# Rules fail if name contains @ symbol

**URL:** <https://community.auth0.com/t/rules-fail-if-name-contains-symbol/11120>\
**Category:** Get Help\
**Tags:** rules, bug\
**Created:** [April 24, 2018, 11:25am UTC](https://community.auth0.com/t/rules-fail-if-name-contains-symbol/11120 "2018-04-24T11:25:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tolli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tolli/32/8062_2.png) [@Tolli](https://community.auth0.com/u/Tolli)\
**Post date:** [April 24, 2018, 11:25am UTC](https://community.auth0.com/t/rules-fail-if-name-contains-symbol/11120/1 "2018-04-24T11:25:18Z")

</div>

Hi,

While working on a new rule, I starting getting this error when trying it out:  
Output  
ERROR: Unknown error. Possible reason: you are not calling callback(null, user, context)

Turns out this happened after I updated to name of the rule so it contained the @-symbol; removing it resolved the issue.

Doesn’t seem to be documented, and should probably by rejected to avoid confusion.

-Tolli

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [April 24, 2018, 1:47pm UTC](https://community.auth0.com/t/rules-fail-if-name-contains-symbol/11120/3 "2018-04-24T13:47:34Z")

</div>

👋 @Tolli I just tried this on my rules and got the same result. This behavior actually happens with any special character. Only alphanumeric characters, spaces, and ‘-’ are accepted (and cannot start or end with a space or ‘-’). I was able to find this on the Rules page under [Create Rules with the Management API](https://auth0.com/docs/rules/current#create-rules-with-the-management-api), which as we can see is only listed under the management API and I’m not sure I would have known this when creating it the dashboard. Thank you pointing this out! I will pass this along, it’ll be good to avoid confusion in the future for others!

---

<div class="post-metadata">

**Author:** ![ericarellano](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ericarellano/32/9316_2.png) [@ericarellano](https://community.auth0.com/u/ericarellano)\
**Post date:** [October 31, 2018, 4:27pm UTC](https://community.auth0.com/t/rules-fail-if-name-contains-symbol/11120/4 "2018-10-31T16:27:23Z")

</div>

Thanks for this post! I was so confused why my rule was failing. Hopefully Auth0 can improve the error message.

---

<div class="post-metadata">

**Author:** ![jerdog](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerdog/32/11231_2.png) [@jerdog](https://community.auth0.com/u/jerdog)\
**Post date:** [November 3, 2018, 11:00pm UTC](https://community.auth0.com/t/rules-fail-if-name-contains-symbol/11120/5 "2018-11-03T23:00:03Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
