# Button Script "Received event for missing view"

**URL:** <https://forum.inductiveautomation.com/t/button-script-received-event-for-missing-view/62595>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 2, 2022, 6:30pm UTC](https://forum.inductiveautomation.com/t/button-script-received-event-for-missing-view/62595 "2022-08-02T18:30:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [August 2, 2022, 6:30pm UTC](https://forum.inductiveautomation.com/t/button-script-received-event-for-missing-view/62595/1 "2022-08-02T18:30:54Z")

</div>

I have a button script that writes to the logger. When clicking it, it doesn’t write to the logs like expected but gives a warning message of “Received event for missing view” {pathToView}.

The view does exist and in the JSON file for it, it does contain the script that I wrote.

Does Anyone have any suggestions on what is going on?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [August 2, 2022, 7:30pm UTC](https://forum.inductiveautomation.com/t/button-script-received-event-for-missing-view/62595/2 "2022-08-02T19:30:38Z")

</div>

Show us the script and we can better help you.

---

<div class="post-metadata">

**Author:** ![jacob.ramirez](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jacob.ramirez](https://forum.inductiveautomation.com/u/jacob.ramirez)\
**Post date:** [August 2, 2022, 8:12pm UTC](https://forum.inductiveautomation.com/t/button-script-received-event-for-missing-view/62595/3 "2022-08-02T20:12:57Z")

</div>

I removed everything and trying to run this

```auto
logger = system.util.getLogger("UpdatedOnLogger")
logger.info("Script Started")

```
