# Session Custom Property: Not initialized on start up?

**URL:** <https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 17, 2022, 8:10pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118 "2022-08-17T20:10:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 17, 2022, 8:10pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/1 "2022-08-17T20:10:01Z")

</div>

I have an inherited perspective view that opens up as the home page for a project. The view contains a toggle switch which has a bi-directional binding to the custom session property (default value is false).

I have the custom session property setup in both the parent and child project. When the session opens, the toggle button has an error overlay until I select it. While the error overlay is present, the barcode scanner component does not work.

Any ideas why the custom property is not using the initial false value, and why does it have an error overlay?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/5413239910a8ae8dd245e4b7a349cc3a5b3a6661.png)

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [August 17, 2022, 8:12pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/2 "2022-08-17T20:12:14Z")

</div>

is your session custom property marked as persistent?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 17, 2022, 8:13pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/3 "2022-08-17T20:13:38Z")

</div>

I didn’t realize that was an option until you mentioned it, but yes it is marked as persistent.

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [August 17, 2022, 8:17pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/4 "2022-08-17T20:17:26Z")

</div>

If you hover over it does it tell you what the actual error is?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 17, 2022, 8:32pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/5 "2022-08-17T20:32:50Z")

</div>

In the designer, it doesn’t have the overlay. In the session, I hover over the component but no error message appears.

EDIT: you can’t see the error symbol unless I maximize the browser.

1. Bad\_NotFound: root/ToggleSwitch.selected

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [August 17, 2022, 8:39pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/6 "2022-08-17T20:39:51Z")

</div>

how does the session custom property look?

The only way i can make that error popup is if i delete the session custom property ☹

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 17, 2022, 8:46pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/7 "2022-08-17T20:46:16Z")

</div>

Interesting, the custom property in the child project disappeared. I added it back and it fixed it. I know that I had it in there.

I do run into the perspective designer getting into bad states sometimes. Earlier, I would add a custom property and after I put in a value, the screen would flash and the property would disappear.

Either way, a designer restart and adding the property back to the child project fixed it. I should’ve caught that, but appreciate the help!

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [August 17, 2022, 8:48pm UTC](https://forum.inductiveautomation.com/t/session-custom-property-not-initialized-on-start-up/63118/8 "2022-08-17T20:48:23Z")

</div>

> [@dkhayes117](#):
>
> I do run into the perspective designer getting into bad states sometimes

Yeah, i've seen some weirdness with perspective where I have to close my window / designer.

Glad you got it working though! 🙂
