# Variable returning null

**URL:** <https://community.thunkable.com/t/variable-returning-null/1093493>\
**Category:** Questions about Thunkable X\
**Created:** [February 12, 2021, 4:49am UTC](https://community.thunkable.com/t/variable-returning-null/1093493 "2021-02-12T04:49:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sriharinathtl](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sriharinathtl](https://community.thunkable.com/u/sriharinathtl)\
**Post date:** [February 12, 2021, 4:49am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/1 "2021-02-12T04:49:51Z")

</div>

Hi i am declaring a variable and truing to initialize alphanumeric value.  
But the variable is returning null.  
for example: 576533f2-2ebe-4112-aa7f-4c8441b1157d  
How to avoid this.  
Thank You

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2021, 4:51am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/2 "2021-02-12T04:51:47Z")

</div>

Hi @sriharinathtl, welcome to Thunkable!

Please post a screenshot of your blocks.

---

<div class="post-metadata">

**Author:** ![sriharinathtl](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sriharinathtl](https://community.thunkable.com/u/sriharinathtl)\
**Post date:** [February 12, 2021, 4:55am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/3 "2021-02-12T04:55:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e84c336aed7b3e98d01ae18ea4c69754aa18045.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2021, 4:56am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/4 "2021-02-12T04:56:41Z")

</div>

> [@sriharinathtl](#):
>
> 576533f2-2ebe-4112-aa7f-4c8441b1157d

You need to post a screenshot of the initialize block. Also, which variable in the screenshot are you having the problem with?

---

<div class="post-metadata">

**Author:** ![sriharinathtl](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sriharinathtl](https://community.thunkable.com/u/sriharinathtl)\
**Post date:** [February 12, 2021, 4:58am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/5 "2021-02-12T04:58:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c278bbc8e2925cdd523eb05a6f3f01193d6303a1.png)  
this is the thing i am fetching from the realtime data base. it accepts upto a certain value about 10 positions i think. further it is returning null.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2021, 5:04am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/6 "2021-02-12T05:04:37Z")

</div>

> [@sriharinathtl](#):
>
> 576533f2-2ebe-4112-aa7f-4c8441b1157d

If you’re using firebase, just use a cloud variable block instead of the realtime db block.

Try [set Label7’s Text to cloud variable _stored variable college/stored variable branch/principal_]. That worked for me using your alphanumeric string in my firebase console.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f26f3fb7ef77d6933943265525be5df62b624ac.png)

---

<div class="post-metadata">

**Author:** ![sriharinathtl](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sriharinathtl](https://community.thunkable.com/u/sriharinathtl)\
**Post date:** [February 12, 2021, 5:34am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/8 "2021-02-12T05:34:52Z")

</div>

thanks for reply

---

<div class="post-metadata">

**Author:** ![sriharinathtl](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sriharinathtl](https://community.thunkable.com/u/sriharinathtl)\
**Post date:** [February 12, 2021, 5:53am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/9 "2021-02-12T05:53:40Z")

</div>

hi,  
I have tried but its not working.  
Can you elaborate the solution

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2021, 6:16am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/10 "2021-02-12T06:16:13Z")

</div>

See this: [Replace GET or SAVE Blocks with cloud variables](https://community.thunkable.com/t/replace-get-or-save-blocks-with-cloud-variables/975738)

If you want to post a link to your project, I’ll see what I can figure out.

---

<div class="post-metadata">

**Author:** ![sriharinathtl](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sriharinathtl](https://community.thunkable.com/u/sriharinathtl)\
**Post date:** [February 12, 2021, 6:35am UTC](https://community.thunkable.com/t/variable-returning-null/1093493/11 "2021-02-12T06:35:31Z")

</div>

Thank you so much  
It helped me

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/variable-returning-null/1093493/12 "2024-11-08T13:29:29Z")

</div>


