# Weird View Behavior Deletes Custom Property Automatically

**URL:** <https://forum.inductiveautomation.com/t/weird-view-behavior-deletes-custom-property-automatically/51603>\
**Category:** Ignition\
**Tags:** perspective, scripting, database, ignition80\
**Created:** [October 5, 2021, 4:51am UTC](https://forum.inductiveautomation.com/t/weird-view-behavior-deletes-custom-property-automatically/51603 "2021-10-05T04:51:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav.Shitole](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gaurav.shitole/32/72050_2.png) [@Gaurav.Shitole](https://forum.inductiveautomation.com/u/Gaurav.Shitole)\
**Post date:** [October 5, 2021, 4:51am UTC](https://forum.inductiveautomation.com/t/weird-view-behavior-deletes-custom-property-automatically/51603/1 "2021-10-05T04:51:39Z")

</div>

Hello all,

I am seeing weird thing in my project. I have a views having 2 custom properties linked to different databases. One of custom property gets deleted automatically and hence the script I have done throws “AttributeError” exception.

Why is this causing I have no idea. Please see snips for reference:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a3ef7e7aad4ed94ebf554837ec1707fe66faffc0.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/02f7ed84f49c8f1347c87e500a440cd7f122da35.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/5434cfffca76c13f46ad6956244da87dcacf3bf3.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0e919a041abd66b3bb1ec88a749181164dc13edd.png)

I have to add the property every time I open a view. I have done some scripting based on that data present in property called “Ascent” when the view opens. Please suggest.

Ignition Version: 8.1.1

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 5, 2021, 9:59pm UTC](https://forum.inductiveautomation.com/t/weird-view-behavior-deletes-custom-property-automatically/51603/2 "2021-10-05T21:59:02Z")

</div>

Is there any script that writes to the `custom.Data` prop? If you add another prop into Data, does that also disappear?

Also, I like your design, very nice 🙂

---

<div class="post-metadata">

**Author:** ![Gaurav.Shitole](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gaurav.shitole/32/72050_2.png) [@Gaurav.Shitole](https://forum.inductiveautomation.com/u/Gaurav.Shitole)\
**Post date:** [October 6, 2021, 5:29am UTC](https://forum.inductiveautomation.com/t/weird-view-behavior-deletes-custom-property-automatically/51603/3 "2021-10-06T05:29:03Z")

</div>

Yes there is a query bind on `custom.Data` and the query has some parameters like Date. What I am doing is as soon as user lands on this page, setting the Date to now() which keeps the data updated.

I tried adding another prop it does not disappear, however I get _AttributeError_ right after I open the view in the designer.  
& Thanks man!
