# Ignition designer

**URL:** <https://forum.inductiveautomation.com/t/ignition-designer/20150>\
**Category:** Ignition\
**Created:** [October 15, 2018, 2:08pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150 "2018-10-15T14:08:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![corinne.decan](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@corinne.decan](https://forum.inductiveautomation.com/u/corinne.decan)\
**Post date:** [October 15, 2018, 2:08pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/1 "2018-10-15T14:08:48Z")

</div>

How to open window of which the script of opening in an error?

---

<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:** [October 15, 2018, 2:53pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/2 "2018-10-15T14:53:17Z")

</div>

Hmm. I don’t quite understand. Please explain what you are attempting, and show the full error details that result. Please use triple-reverse-quotes (these: ``` ) on lines above and below the pasted error details so that they will be neatly formatted.

---

<div class="post-metadata">

**Author:** ![corinne.decan](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@corinne.decan](https://forum.inductiveautomation.com/u/corinne.decan)\
**Post date:** [October 15, 2018, 3:13pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/3 "2018-10-15T15:13:51Z")

</div>

In fact, I think there is an error in the script of the opening window. the message is " Error executing script for event visionWindowOpened on component SubstrateLoadingView". After the message I can’t access to the window and so to the opening window script.

---

<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:** [October 15, 2018, 3:26pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/4 "2018-10-15T15:26:55Z")

</div>

Without you showing us the _ **full details** _ of the error message, I don’t know how to help you.

---

<div class="post-metadata">

**Author:** ![corinne.decan](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@corinne.decan](https://forum.inductiveautomation.com/u/corinne.decan)\
**Post date:** [October 15, 2018, 3:48pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/5 "2018-10-15T15:48:28Z")

</div>

I wrote all the message there is no details. The problem is I can 't acces to the script of the window after the error so I don’t know how to correct the problem.

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [October 15, 2018, 3:51pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/6 "2018-10-15T15:51:05Z")

</div>

Do you remember what you were doing in that script, in general? What is SubstrateLoadingView?

---

<div class="post-metadata">

**Author:** ![nick.schuetz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick.schuetz/32/6160_2.png) [@nick.schuetz](https://forum.inductiveautomation.com/u/nick.schuetz)\
**Post date:** [October 15, 2018, 9:23pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/7 "2018-10-15T21:23:56Z")

</div>

This is probably a last chance attempt to get your window so you dont have to start over. Also assuming you know a bit about xml.

If you hold shift + right click on the window in the project browser, you can Copy XML to Clipboard. Paste the xml into an editor and search for ‘visionWindowOpened’ and remove the part you think is probably not working correctly. I would assume the entire script should be removed so you can at least re open the window. Maybe copy the script into another file so you can piece it back together later.  
After deleting the script, copy the new xml and create a new window, hold shift + right click and select Set xml from Clipboard. I recommend making it as a new window in case the xml isnt quite right you still have the ‘broken’ window to try again. Should be able to at least open it now.

Example of visionWindowOpened section in xml.

```auto
<o-c m="put" s="2;O;O">
	<ref>13</ref>
	<arraylist len="1">
		<o cls="com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter">
			<o-c m="setEventSet" s="1;java.beans.EventSetDescriptor">
				<o cls="java.beans.EventSetDescriptor">
					<o-ctor s="5;str;java.lang.Class;[java.beans.MethodDescriptor;java.lang.reflect.Method;java.lang.reflect.Method">
						<str>visionWindow</str>
						<class>com.inductiveautomation.factorypmi.application.components.event.VisionWindowListener</class>
						<array cls="java.beans.MethodDescriptor" len="2">
							<o id="14" cls="java.beans.MethodDescriptor">
								<o-ctor s="2;java.lang.reflect.Method;[java.beans.ParameterDescriptor">
									<method>com.inductiveautomation.factorypmi.application.components.event.VisionWindowListener|visionWindowOpened|1;com.inductiveautomation.factorypmi.application.components.event.VisionWindowEvent</method>
									<null/>
								</o-ctor>
							</o>
							<o cls="java.beans.MethodDescriptor">
								<o-ctor s="2;java.lang.reflect.Method;[java.beans.ParameterDescriptor">
									<method>com.inductiveautomation.factorypmi.application.components.event.VisionWindowListener|visionWindowClosed|1;com.inductiveautomation.factorypmi.application.components.event.VisionWindowEvent</method>
									<null/>
								</o-ctor>
							</o>
						</array>
						<method>FPMIWindow|addVisionWindowListener|1;com.inductiveautomation.factorypmi.application.components.event.VisionWindowListener</method>
						<method>FPMIWindow|removeVisionWindowListener|1;com.inductiveautomation.factorypmi.application.components.event.VisionWindowListener</method>
					</o-ctor>
				</o>
			</o-c>
			<o-c m="setJythonCode" s="1;str"><str>print &apos;test!!&apos;</str></o-c>
			<o-c m="setMethodDescriptor" s="1;java.beans.MethodDescriptor"><ref>14</ref></o-c>
			<o-c m="setScopeStyle" s="1;com.inductiveautomation.ignition.common.script.ScriptScopeStyle"><ref>8</ref></o-c>
			<o-c m="setTarget" s="1;java.awt.Component"><ref>13</ref></o-c>
		</o>
	</arraylist>
</o-c>

```

---

<div class="post-metadata">

**Author:** ![corinne.decan](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@corinne.decan](https://forum.inductiveautomation.com/u/corinne.decan)\
**Post date:** [October 16, 2018, 6:58am UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/8 "2018-10-16T06:58:58Z")

</div>

SubstrateLoadingView is the name of the window

---

<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:** [October 16, 2018, 12:19pm UTC](https://forum.inductiveautomation.com/t/ignition-designer/20150/9 "2018-10-16T12:19:12Z")

</div>

Please take a screen shot of the error and show it here.
