# Custom database | "create script" isn't read

**URL:** <https://community.auth0.com/t/custom-database-create-script-isnt-read/11962>\
**Category:** Get Help\
**Tags:** create-user, script, auth0-create-user, custom-database, anomaly-detection\
**Created:** [May 30, 2018, 12:47pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962 "2018-05-30T12:47:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minuscience](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/minuscience/32/8489_2.png) [@Minuscience](https://community.auth0.com/u/Minuscience)\
**Post date:** [May 30, 2018, 12:47pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/1 "2018-05-30T12:47:27Z")

</div>

I’m trying to connect my DB with auth0 it work but the application won’t read my create user script

---

<div class="post-metadata">

**Author:** ![sgmeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgmeyer/32/3387_2.png) [@sgmeyer](https://community.auth0.com/u/sgmeyer)\
**Post date:** [May 30, 2018, 12:51pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/2 "2018-05-30T12:51:03Z")

</div>

@Minuscience to be clear you have a custom db setup and have written a `create` script for that connection correct?

How are you trying to invoke this create user script? What behavior are you seeing when trying to create a user?

---

<div class="post-metadata">

**Author:** ![Minuscience](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/minuscience/32/8489_2.png) [@Minuscience](https://community.auth0.com/u/Minuscience)\
**Post date:** [May 30, 2018, 1:07pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/3 "2018-05-30T13:07:28Z")

</div>

yes I have a custom db setup and I have written a create script for that connection.  
I’ve just put some log info (by using `console.log`) and change the configuration setup for my own DB. However the change i make the script is not call at all (no log info just  
`[12:39:11.649Z] INFO wt: new webtask request 1527683951517.616120 [12:39:11.782Z] INFO wt: finished webtask request 1527683951517.616120 with HTTP 200 in 135ms`  
iln the log). Besides i get [WrongUsernameOrPasswordError] wrongusernameorpassword - undefined` when i try it

---

<div class="post-metadata">

**Author:** ![sgmeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgmeyer/32/3387_2.png) [@sgmeyer](https://community.auth0.com/u/sgmeyer)\
**Post date:** [May 30, 2018, 1:12pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/4 "2018-05-30T13:12:21Z")

</div>

@Minuscience can you tell me how you are initiating this. From the error it looks like you are trying to login as that user. Can you share what you are doing to trying an call the create user script?

---

<div class="post-metadata">

**Author:** ![Minuscience](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/minuscience/32/8489_2.png) [@Minuscience](https://community.auth0.com/u/Minuscience)\
**Post date:** [May 30, 2018, 1:17pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/6 "2018-05-30T13:17:34Z")

</div>

![image](https://global.discourse-cdn.com/auth0/original/2X/0/0145857bf2cdc552596e3d8b54df30d3089934c6.png)  
As you can see, I just try to create a random user

---

<div class="post-metadata">

**Author:** ![sgmeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgmeyer/32/3387_2.png) [@sgmeyer](https://community.auth0.com/u/sgmeyer)\
**Post date:** [May 30, 2018, 1:43pm UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/7 "2018-05-30T13:43:22Z")

</div>

@Minuscience can you try this? Install the `Real-time Webtask Logs` to watch console.log output from all your scripts. Then can you you make sure you `get_user` script isn’t throwing the error? Whenever the create user script is called it to ensure that email/username doesn’t exist first. This script doesn’t take a password so having that error there is weird.

Also can you check in the webtask logs extension to see if you console.log information is printed there (curious more about get\_user’s console.log output)?

Also, can you check to see if the supplied password meets the minimum criteria for your password policy set on the db connection? I know if that password doesn’t match the database connections password policy the script will not be executed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 10:31am UTC](https://community.auth0.com/t/custom-database-create-script-isnt-read/11962/9 "2018-12-17T10:31:35Z")

</div>


