# Database trigger not working on User type, and updates not percolating to UI

**URL:** <https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161>\
**Category:** Database\
**Created:** [June 28, 2022, 2:45am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161 "2022-06-28T02:45:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 2:45am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/1 "2022-06-28T02:45:04Z")

</div>

Hello,

I’m having issues with Bubble not running a database trigger workflow. Also the UI isn’t updating when I add something to a list on a user.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/f/1f59fd50484d5db2a45458d18d6c80b500bb4924.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/3/531808cfdc0f690b9632aba520b8dc76059fb2a1.png)

The above workflows should be triggering the following:

![image](https://us1.discourse-cdn.com/bubble/original/3X/1/c/1c14f975dd6e669e383b9a542d60193c588ac5e9.png)

But it isn’t. The UI also doesn’t update, I have to refresh the page to see the new row added to the table.

What’s the deal? Is this a bug?

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 3:53am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/2 "2022-06-28T03:53:33Z")

</div>

How many triggers do you have on User change? I had some problems when creating multiple triggers on the same type. Ended up with single triggers with conditions applied to actions inside.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:12am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/3 "2022-06-28T04:12:36Z")

</div>

There are 5 triggers, is that too many?

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:24am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/4 "2022-06-28T04:24:53Z")

</div>

Moved them all into one workflow and still encountering the same problem…

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 4:26am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/5 "2022-06-28T04:26:13Z")

</div>

5 total or 5 only on User change? If the latter, try to leave one on User change with no conditions and do all actions inside it with those conditions applied.  
Generally 5 triggers in total is not many, the main problem is that each type must have only one trigger, that’s the idea. Though I might also be missing something, but that’s the way I managed it in my project.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:29am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/6 "2022-06-28T04:29:18Z")

</div>

There were 5 total database triggers on Users, I reconciled them in to one workflow like this:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/5/553265432dd7abe2d9df4e02ac3eed5b179c3b57.png)

With the individual conditions on them. Still encountering the same problem though.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:32am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/7 "2022-06-28T04:32:17Z")

</div>

It seems like the entire workflow doesn’t run, I put something inside without a condition and that doesn’t run either. Is it because I’m modifying a list on the user, rather than modifying an individual field? It’s not a relationship.

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 4:35am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/8 "2022-06-28T04:35:00Z")

</div>

I’m not sure if your condition is valid there. I suppose bubble considers two things equal if they have same unique id. Though didn’t tested it. But if I’m correct, then this condition is true only when User object is created. In any other case it’s false.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:36am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/9 "2022-06-28T04:36:04Z")

</div>

Hmmm. Is there a way to do a deep comparison?

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:37am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/10 "2022-06-28T04:37:13Z")

</div>

Oh duh. Just don’t put a condition. Okay.

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 4:40am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/11 "2022-06-28T04:40:36Z")

</div>

Don’t know. I think it’s only possible by JavaScript or plugins. You could create one, if there’s nothing in store.

But is there a real reason to check entire object? If you trigger is invoked, the object is  
probably changed.

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 4:41am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/12 "2022-06-28T04:41:37Z")

</div>

Yeap, it’s that simple.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:43am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/13 "2022-06-28T04:43:37Z")

</div>

Still doesn’t work for some reason, nothing in the database trigger is running. It’s like the database triggers are bugged. I tried doing something else with a different data type and it still doesn’t work.

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 4:45am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/14 "2022-06-28T04:45:08Z")

</div>

Silly question, but are you on a paid plan? Triggers only work on paid plans.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:45am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/15 "2022-06-28T04:45:37Z")

</div>

Very much so! On a production app.

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 4:50am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/16 "2022-06-28T04:50:03Z")

</div>

It appears they are broken across my app. Could you verify that database triggers are working for you?

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 4:55am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/17 "2022-06-28T04:55:57Z")

</div>

Oh, I see. You are expecting trigger to run when you add an object to User’s Notification collection. That’s might be a problem… I’ll check this when reach my desk… Never did it that way. Though bubble presents list field as a property, I doubt it monitors list content for change.  
Meanwhile you can try set list instead of add: User’s Notifications set list User’s Notifications :plus item Result of step 1…

---

<div class="post-metadata">

**Author:** ![scalethej](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@scalethej](https://forum.bubble.io/u/scalethej)\
**Post date:** [June 28, 2022, 5:07am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/18 "2022-06-28T05:07:04Z")

</div>

I tried what you’ve suggested, but unfortunately it didn’t make a difference. Things that were unrelated to this aren’t working either (I went and tested some other database triggers on our app) so I’m assuming there’s something wrong with Bubble right now. I see a similar bug in the bugs board:

> [@Data not updating on Frontend](http://forum.bubble.io/t/data-not-updating-on-frontend/213118):
>
> Dear Bubble Community, While working on our application we have run into an issue where data from an API request that is stored in the database is not presented to the user, without reloading the webpage. Please advise.

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [June 28, 2022, 5:15am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/19 "2022-06-28T05:15:49Z")

</div>

I heavily really on triggers in my project and it’s working, tested just right now.

---

<div class="post-metadata">

**Author:** ![max5](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@max5](https://forum.bubble.io/u/max5)\
**Post date:** [June 28, 2022, 8:38am UTC](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161/20 "2022-06-28T08:38:46Z")

</div>

Hey @scalethej

Are you working in version-test? Or are you working in another development version you’ve created?

For me, all triggers I set up in versions other than version-test, stopped working. In version-test, everything works fine.

Can you confirm that your triggers have been set up in a version other than version-test?

[Next page](https://forum.bubble.io/t/database-trigger-not-working-on-user-type-and-updates-not-percolating-to-ui/213161.md?page=2)
