# Null Values from properties when deploying?

**URL:** <https://forum.inductiveautomation.com/t/null-values-from-properties-when-deploying/66544>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [November 15, 2022, 8:03pm UTC](https://forum.inductiveautomation.com/t/null-values-from-properties-when-deploying/66544 "2022-11-15T20:03:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Nagpal](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Sahil\_Nagpal](https://forum.inductiveautomation.com/u/Sahil_Nagpal)\
**Post date:** [November 15, 2022, 8:03pm UTC](https://forum.inductiveautomation.com/t/null-values-from-properties-when-deploying/66544/1 "2022-11-15T20:03:03Z")

</div>

Hi,  
I seem to be getting null values for some of my labels when I am deploying my application in perspective. But when I view it in Designer, there is no null value.

Can anyone recommend what might be happening? I have attached a picture of the script I am running in order to generate the label values.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a95339e4b5371e90222cffd77e29809608e8ceac.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/2/b279e50e0ffb19bfed623aaeb2a75c2694ca41c1.png)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [November 15, 2022, 8:23pm UTC](https://forum.inductiveautomation.com/t/null-values-from-properties-when-deploying/66544/2 "2022-11-15T20:23:14Z")

</div>

First, why wouldn’t you just bind directly to the custom property? Unless you’ve removed code which mutates the value, this script is doing nothing for you but decreasing performance.

Is there a binding of any type on the `self.parent.parent.custom.title` property? Where/how is that value generated?

---

<div class="post-metadata">

**Author:** ![Sahil\_Nagpal](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Sahil\_Nagpal](https://forum.inductiveautomation.com/u/Sahil_Nagpal)\
**Post date:** [November 15, 2022, 8:33pm UTC](https://forum.inductiveautomation.com/t/null-values-from-properties-when-deploying/66544/3 "2022-11-15T20:33:39Z")

</div>

Hi Irose,  
The reason I did it this way, is because, I would like to copy and paste these containers and change just one custom param to change all other bindings within that container. If I do not use a transform script and use a direct binding, I would have to manually go around and re-bind the property to the copied containers custom params.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [November 15, 2022, 9:07pm UTC](https://forum.inductiveautomation.com/t/null-values-from-properties-when-deploying/66544/4 "2022-11-15T21:07:02Z")

</div>

> [@Sahil\_Nagpal](#):
>
> If I do not use a transform script and use a direct binding, I would have to manually go around and re-bind the property to the copied containers custom params.

If you paste the component that this transform is on at a different depth then where it is now, you would still have to edit it to point at the appropriate path, how is that different from changing a binding?

I guess I don’t exactly understand your structure, just be warned that you’re incurring a not insignificant amount of overhead, and with many of these you will see degraded performance.

> [@lrose](#):
>
> Is there a binding of any type on the `self.parent.parent.custom.title` property? Where/how is that value generated?

You didn’t answer these questions.
