# Database trigger not work on user data type

**URL:** <https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597>\
**Category:** Need help\
**Created:** [July 29, 2022, 7:17am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597 "2022-07-29T07:17:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![artpnp01](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artpnp01/32/134601_2.png) [@artpnp01](https://forum.bubble.io/u/artpnp01)\
**Post date:** [July 29, 2022, 7:17am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/1 "2022-07-29T07:17:04Z")

</div>

If I use other data types, whenever an item is added, a text will be output as the trigger do, but only the user data type did not work.

Does anyone know if this is a problem with my settings or a bug?

My goal is: whenever a new user registers, the api will create a text, but I didn’t succeed.

[image]

[image]

 ![截屏2022-07-29 下午3.12.55](https://us1.discourse-cdn.com/bubble/original/3X/b/f/bf996d57e1ac18a7eee343d21280888bfc80e672.jpeg)  
 ![截屏2022-07-29 下午3.13.00](https://us1.discourse-cdn.com/bubble/original/3X/9/4/94c52a020764564a5dc322d3183b0cfe26f736b7.jpeg)  
 ![截屏2022-07-29 下午3.13.39](https://us1.discourse-cdn.com/bubble/original/3X/f/a/fa112a0ac66d6fc0b5c6a004719b49cf1133067b.jpeg)

---

<div class="post-metadata">

**Author:** ![gerbertdelangen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gerbertdelangen/32/144602_2.png) [@gerbertdelangen](https://forum.bubble.io/u/gerbertdelangen)\
**Post date:** [July 29, 2022, 8:25am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/2 "2022-07-29T08:25:59Z")

</div>

@artpnp01, try the condition “user before change is empty and user now is not empty”, it seems to work.

Note, when creating new triggers, always check Server Logs for those triggers firing too often. They can seriously impact the performance of your app.

---

<div class="post-metadata">

**Author:** ![artpnp01](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artpnp01/32/134601_2.png) [@artpnp01](https://forum.bubble.io/u/artpnp01)\
**Post date:** [July 29, 2022, 9:06am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/3 "2022-07-29T09:06:33Z")

</div>

Thanks.  
I had tried to set like this and the issue still exist.  
And I can’t find the trigger on server log.

---

<div class="post-metadata">

**Author:** ![gerbertdelangen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gerbertdelangen/32/144602_2.png) [@gerbertdelangen](https://forum.bubble.io/u/gerbertdelangen)\
**Post date:** [July 29, 2022, 9:29am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/4 "2022-07-29T09:29:30Z")

</div>

That is weird, I tried creating a user through the signup flow and manually using the “App data” tab, both times it worked.

A couple of questions:

1. How are you creating the user?
2. Try to fully remove the trigger and add a new one.
3. Can you show a screenshot of the new trigger and actions?

---

<div class="post-metadata">

**Author:** ![artpnp01](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artpnp01/32/134601_2.png) [@artpnp01](https://forum.bubble.io/u/artpnp01)\
**Post date:** [July 29, 2022, 11:10am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/5 "2022-07-29T11:10:24Z")

</div>

Hi.This is my editor:

> **[Bubble Editor - Flowith2](https://bubble.io/page?type=api&version=test&id=flowith2&tab=tabs-2)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

I tried to remove and rebuild trigger still fail.  
The test333 page and test333 data type is set for this testing.

---

<div class="post-metadata">

**Author:** ![gerbertdelangen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gerbertdelangen/32/144602_2.png) [@gerbertdelangen](https://forum.bubble.io/u/gerbertdelangen)\
**Post date:** [July 29, 2022, 11:37am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/6 "2022-07-29T11:37:45Z")

</div>

I had a short look in your app but cannot find why the trigger does not work, but to be honest, this is not my best day. 😀 It must be something small we are missing.

Is it an option for you to either directly use a “create thing” action as step 7 of the signup flow or trigger a backend workflow to create the thing?

---

<div class="post-metadata">

**Author:** ![artpnp01](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artpnp01/32/134601_2.png) [@artpnp01](https://forum.bubble.io/u/artpnp01)\
**Post date:** [July 30, 2022, 12:39am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/7 "2022-07-30T00:39:32Z")

</div>

Hi. Thanks for your checking.  
I have used create a new thing workflow by the signup flow to make things.  
But this is still a case, I wanna figure it out for once that I have to set something with user datatype trigger.

---

<div class="post-metadata">

**Author:** ![artpnp01](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artpnp01/32/134601_2.png) [@artpnp01](https://forum.bubble.io/u/artpnp01)\
**Post date:** [July 30, 2022, 12:50am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/8 "2022-07-30T00:50:41Z")

</div>

Hi.  
I just find the solution.  
Just set like this.  
Though I find this solution ,I still wanna know the reason.  
Hope Bubble support can figure it out.

 ![截屏2022-07-30 上午8.48.27](https://us1.discourse-cdn.com/bubble/original/3X/3/6/36f43313612ba7a522db28d04790dbf922954edf.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 7, 2022, 7:17am UTC](https://forum.bubble.io/t/database-trigger-not-work-on-user-data-type/217597/9 "2022-10-07T07:17:21Z")

</div>

Closed on October 7, 2022, 7:17am UTC

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