# Missing notification output

**URL:** <https://discourse.nodered.org/t/missing-notification-output/60649>\
**Category:** General\
**Created:** [1 April 2022 14:21 UTC](https://discourse.nodered.org/t/missing-notification-output/60649 "2022-04-01T14:21:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![QGIO](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Post date:** [1 April 2022 14:21 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/1 "2022-04-01T14:21:51Z")

</div>

Continuing the discussion from [Pass data throught a button to SQL Table](https://discourse.nodered.org/t/pass-data-throught-a-button-to-sql-table/59649/25):

I Steve, could you help me on this flow?  
I'm using this flow, but I have a problem. When I enter in the tab (by [http://127.0.0.1:1880/ui](http://127.0.0.1:1880/ui)) for the first time, if I don't fill all the fields I don't get the Notification and data are stored in the SQL table (I added a sql node).  
If I tried to fill the field and cancel it, the notification appears.  
If I store an instrument filling all the fields, for the second instrument I have correctly the notification if I don't fill one field.

Do you have idea how to solve this?

---

<div class="post-metadata">

**Author:** ![QGIO](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Post date:** [1 April 2022 14:38 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/2 "2022-04-01T14:38:50Z")

</div>

I add the output of my debug:

 ![immagine](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/4191d116ee259f853c18f0639590f4ac7fd424b9.png)

The field Classif is not empty, but contains 'xxx6', but in the debug I see empty.  
In any case, the problem is that in case of empty field I put a notification node, but it is not shown and data are stored.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 April 2022 19:24 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/3 "2022-04-01T19:24:47Z")

</div>

How is the **Classif** debug node setup? Please open it and show us.

---

<div class="post-metadata">

**Author:** ![QGIO](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Post date:** [1 April 2022 19:59 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/4 "2022-04-01T19:59:51Z")

</div>

![immagine](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e4eb30e5cd59bf55e39eaae129c8727275bad54.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 April 2022 20:04 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/5 "2022-04-01T20:04:20Z")

</div>

So the reason you get a value under the debug node is because `msg.TextInput` has something in it whereas `msg.payload` is an empty array.

Where you intend to use this msg, either use `msg.TextInput` or use a change node to move `msg.TextInput` to `msg.payload`

---

<div class="post-metadata">

**Author:** ![QGIO](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Post date:** [1 April 2022 20:59 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/6 "2022-04-01T20:59:58Z")

</div>

Ok thanks.

If a look at you flow, and I fill the TIPOLOGIA with one element of the dropdown menu, I get always the same notification 'Classification is empty' (even if it is filled I mean).  
And if I fill all the fields and than I delate User input (like not filled), I don't get any Error message. I would expect 'User Input is empty'.

Could you check and tell me if I'm doing somenthing wrong?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 April 2022 21:01 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/7 "2022-04-01T21:01:33Z")

</div>

> [@QGIO](#):
>
> Could you check and tell me if I'm doing somenthing wrong?

Check what?

You have not posted enough info / flow!

---

<div class="post-metadata">

**Author:** ![QGIO](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Post date:** [2 April 2022 04:21 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/8 "2022-04-02T04:21:57Z")

</div>

When I opened this post, I shared the link of a previous post (already closed) where you posted a flow (see the post starting with Ah apologies end then a flow).

I refer to that flow!

Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 April 2022 09:52 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/9 "2022-04-02T09:52:59Z")

</div>

Ok, so the demo flow I posted was supposed to get you going & get you started - it was never a complete solution.

Your issues are easy enough to figure out with a hand full of debug nodes and a little bit playing with the nodes. _Did you watch the help videos i posted a link to?._

In simple terms, this happens because the demo flow check the input value `is null`. It seems node-red switch node doesnt consider empty string to be `null`. So if you change that to `is empty` then it works as expected.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5e524b0c3a7d1fcdb41d5cbb82bbdf547c8277c6.png)

---

<div class="post-metadata">

**Author:** ![QGIO](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@QGIO](https://discourse.nodered.org/u/QGIO)\
**Post date:** [2 April 2022 12:06 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/10 "2022-04-02T12:06:36Z")

</div>

Before to ask you, I aready changed _is null_ with _is empty_, but I had the problem with first injection data.

I need to put both to solve.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 June 2022 12:07 UTC](https://discourse.nodered.org/t/missing-notification-output/60649/11 "2022-06-01T12:07:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
