# Tab env() not being seen when I try to read them

**URL:** <https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215>\
**Category:** General\
**Created:** [3 April 2023 22:47 UTC](https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215 "2023-04-03T22:47:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [3 April 2023 22:47 UTC](https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215/1 "2023-04-03T22:47:48Z")

</div>

I seem to be going in ever decreasing circles with this problem.

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

So I have _set_ two variables.  
`FOO` and `blah`.

Ignore the `debug` stuff at this stage. That was from other tests.

So Those are defined. I DEPLOY the flow and press the `inject` node to read the env.FOO value.

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

All I get is `""`  
I then try with the env.blah and get the same.

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

Now this is really doing my head in because I had all this on ANOTHER TAB: and it worked.  
I moved it because that tab was for something else and I didn't want this _test_ on it.  
So I cut/pasted it to a new tab and set the env variables - as shown.

Why would it work when on one tab, then when I move to a new tab (and set the env variables on it) it doesn't work.

For the sake of further burning myself, I added a third env variable.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70bb3b457b43f401edf1a5061dff84dd799b4c38.png)

Then (as you can already see) I tried to access it. **It works.**  
I won't paste the screen shot of the `change` node.

I have (as you can also see) changed the FOO and blah to TEXT. Still doesn't work.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [3 April 2023 23:15 UTC](https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215/2 "2023-04-03T23:15:36Z")

</div>

As a sheer attempt to _try anything_ I went up and selected `restart all flows`.

Now it works.

Go figure.

---

<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:** [17 April 2023 23:15 UTC](https://discourse.nodered.org/t/tab-env-not-being-seen-when-i-try-to-read-them/77215/3 "2023-04-17T23:15:45Z")

</div>

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