# More context for View's property change exception error?

**URL:** <https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 25, 2025, 12:46am UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826 "2025-02-25T00:46:45Z")\
**Posts on this page:** 6\
**Page:** 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:** [February 25, 2025, 12:46am UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826/1 "2025-02-25T00:46:45Z")

</div>

I know where this exception is coming from, but if I didn't, I would struggle to identify it. How would I diagnose which View is having an issue from this log exception if I didn't know already which it relates to? (imagine the message is very generic and could apply to a vast number of scripts and views). There's no context whatsoever in the log to identify the specific View. I can see the project name and that it's for a Perspective View, but that's about it for the context.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/1/51ecf6d5061c3f3f936efa678002ac6eb340d673.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 25, 2025, 12:57am UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826/2 "2025-02-25T00:57:48Z")

</div>

Click on the magnifying glass for extra context keys.

---

<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:** [February 25, 2025, 12:59am UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826/3 "2025-02-25T00:59:21Z")

</div>

That just gives me the project. Hmm, although I'm running in the Designer. I can see some other logs with the view in there

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 25, 2025, 1:03am UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826/4 "2025-02-25T01:03:44Z")

</div>

I would expect to see useful MDC values in designer or a real session, though it's possible they're not getting set up for property change scripts.

`com.inductiveautomation.perspective.ComponentModel` on TRACE will be unfortunately noisy, but should have a very useful logged message for each property change event fired:

```python
            log.tracef(
                "Property change script %s.%s. origin=%s, qv=%s (%sms)",
                component.getQualifiedPath(),
                target,
                origin,
                qv,
                NANOSECONDS.toMillis(System.nanoTime() - start)
            );

```

---

<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:** [February 25, 2025, 1:04am UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826/5 "2025-02-25T01:04:32Z")

</div>

Ok, running it in the browser I can see that it has a view under the mag glass, but more often than not is says it's coming from the navigation bar view and not the main view that it's located in...

---

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [February 25, 2025, 3:44pm UTC](https://forum.inductiveautomation.com/t/more-context-for-views-property-change-exception-error/102826/6 "2025-02-25T15:44:27Z")

</div>

I was just earlier this week trying to track down something like this and was watching MDC values and everything else I could. I found my particular binding very quickly, but then kept experimenting a bit more...

I actually found that the same property binding on a `session.custom` property was inconsistent whether it had MDC values provided in the script or not, and when it did have them the `view` property was varied. Which, sort of makes sense since a session-scoped property is not part of any one view, but would be very confusing if trying to trace a script exception back up like @nminchin was doing.
