# Error on custom database create hook

**URL:** <https://community.auth0.com/t/error-on-custom-database-create-hook/9366>\
**Category:** Get Help\
**Tags:** postgresql\
**Created:** [February 2, 2018, 4:18am UTC](https://community.auth0.com/t/error-on-custom-database-create-hook/9366 "2018-02-02T04:18:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmead](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dmead](https://community.auth0.com/u/dmead)\
**Post date:** [February 2, 2018, 4:18am UTC](https://community.auth0.com/t/error-on-custom-database-create-hook/9366/1 "2018-02-02T04:18:10Z")

</div>

Hi. how do i fix this? it’s not even entering the create hook but rejecting on some configuration.

If i switch [foo@bar.com](mailto:foo@bar.com) to be just a username, it says invalid email.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 17, 2018, 3:07pm UTC](https://community.auth0.com/t/error-on-custom-database-create-hook/9366/2 "2018-12-17T15:07:30Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 17, 2018, 3:07pm UTC](https://community.auth0.com/t/error-on-custom-database-create-hook/9366/3 "2018-12-17T15:07:34Z")

</div>


