# Can no logner edit a window due to a infinite loop?

**URL:** <https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 12, 2020, 2:29pm UTC](https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043 "2020-03-12T14:29:55Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [March 12, 2020, 2:29pm UTC](https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043/1 "2020-03-12T14:29:55Z")

</div>

Fully admit this is my mistake. I accidentally put in a while loop with no exit condition in a on valueChanged property, that also affects a few other value change properties that have their own error messages. So when I open the window in perspective, the errors start and never stop coming and I can’t even get to the value change script to disable it. Eventually then I get `Zulu Platform x64 Architecture is not responding.` from windows and the ability to close the program. Is there a way to edit this components on valueChange script like turning it off in a way that isn’t through the designer?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 12, 2020, 2:35pm UTC](https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043/2 "2020-03-12T14:35:50Z")

</div>

Can you still shift + right click to get the window XML in the designer? If so then it may be possible to remove the offending parts from the XML and import it again. It’s a little tricky to figure out what’s what in the XML, though, so you might have to post it here or go through support if you don’t figure it out by experimentation.

edit: oops, just realized you’re talking about Perspective. Nevermind this.

---

<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:** [March 12, 2020, 2:43pm UTC](https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043/3 "2020-03-12T14:43:54Z")

</div>

Huh very odd. I get errors like this  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/ca2def438fb4cec18f38ef72cdc5140569841451.png)

but XML only has things like  
onChange: enabled: false  
or  
onChange: enabled: null

I guess null is true?

---

<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:** [March 12, 2020, 2:51pm UTC](https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043/4 "2020-03-12T14:51:57Z")

</div>

Full XML. All drop down components which are causing the issue have “dd\_” as the prefix. Not sure what to change.[view.json](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/84ec28d386d5af313cd60f79c3fde8a3097888ae.json) (62.3 KB)

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [March 12, 2020, 3:09pm UTC](https://forum.inductiveautomation.com/t/can-no-logner-edit-a-window-due-to-a-infinite-loop/33043/5 "2020-03-12T15:09:00Z")

</div>

Ope, this has happened to me. A couple of times lol 🙄

Open it in text editor. Notepadd ++ or something.

Find and replace:

put in a pass or return in all scripts. You might have to play with it.

 ![pass](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/69f88d6d7d69a9b6b181bc5dfdb561b0a95bdb63.jpeg)

Then Import it back in.

Make sure to retain original.
