# \[IGN-4916\] View can't open, View config is undefined

**URL:** <https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 19, 2021, 9:51am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100 "2021-10-19T09:51:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 19, 2021, 9:51am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/1 "2021-10-19T09:51:23Z")

</div>

View config is undefined. Only this view. I created it yesterday, and I can't open it today. I tried to import the zip on another PC, reinstall Windows, Ignition not work.

> ExecutionException: java.lang.Exception: Unable to get the view config: View config is undefined.  
> caused by Exception: Unable to get the view config: View config is undefined.
> 
> Ignition v8.1.10 (b2021090812)  
> Java: Azul Systems, Inc. 11.0.11

```auto
java.util.concurrent.ExecutionException: java.lang.Exception: Unable to get the view config: View config is undefined.
	at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)
	at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)
	at com.inductiveautomation.perspective.designer.workspace.ViewResourceEditor.getObjectForSave(ViewResourceEditor.java:484)
	at com.inductiveautomation.perspective.designer.workspace.ViewResourceEditor.getObjectForSave(ViewResourceEditor.java:67)
	at com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceEditor.commit(ResourceEditor.java:166)
	at com.inductiveautomation.perspective.designer.workspace.ViewResourceEditor.notifyDeactivated(ViewResourceEditor.java:584)
	at com.inductiveautomation.perspective.designer.workspace.PerspectiveWorkspaceListener.editorSelected(PerspectiveWorkspaceListener.java:73)
	at com.inductiveautomation.ignition.designer.tabbedworkspace.TabbedResourceWorkspace$3.stateChanged(TabbedResourceWorkspace.java:115)
	at java.desktop/javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
	at com.jidesoft.swing.JideTabbedPane$IgnoreableSingleSelectionModel.fireStateChanged(Unknown Source)
	at java.desktop/javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
	at java.desktop/javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
	at java.desktop/javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
	at com.jidesoft.swing.JideTabbedPane.setSelectedIndex(Unknown Source)
	at com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceFolderNode.onSelected(ResourceFolderNode.java:226)
	at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:796)
	at com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode.dispatchSelectionEvent(AbstractNavTreeNode.java:813)
	at com.inductiveautomation.ignition.designer.navtree.NavTreePanel$SelectionListener.valueChanged(NavTreePanel.java:542)
	at java.desktop/javax.swing.JTree.fireValueChanged(Unknown Source)
	at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
	at java.desktop/javax.swing.JTree.setSelectionPath(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.Exception: Unable to get the view config: View config is undefined.
	at com.inductiveautomation.perspective.designer.workspace.JavaJsBridge.onSaveError(JavaJsBridge.java:123)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at com.teamdev.jxbrowser.frame.internal.FrameImpl.invokeMethod(FrameImpl.java:785)
	at com.teamdev.jxbrowser.frame.internal.FrameImpl.processCallback(FrameImpl.java:228)
	at com.teamdev.jxbrowser.internal.rpc.stream.CallbackStream.process(CallbackStream.java:178)
	at com.teamdev.jxbrowser.internal.rpc.stream.Stream$StreamObserver.lambda$onNext$0(Stream.java:164)
	at com.teamdev.jxbrowser.internal.BrowserThread$TaskRunner.processTasks(BrowserThread.java:139)
	at java.base/java.lang.Thread.run(Unknown Source)

Ignition v8.1.10 (b2021090812)
Java: Azul Systems, Inc. 11.0.11

```

[\_2021-10-19\_1330.zip](https://forum.inductiveautomation.com/uploads/short-url/pwXN2tx72e3fc1u9ulqRP8zRZva.zip) (362.5 KB)

---

<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:** [October 19, 2021, 10:31am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/2 "2021-10-19T10:31:50Z")

</div>

Ah, but did you try replacing the motherboard? 🙂

Can you hold shift and right click on the view, then select copy json and paste in here inside a preformatted block?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2021, 10:35am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/3 "2021-10-19T10:35:40Z")

</div>

> [@nminchin](#):
>
> hold shift and right click

oh didnt know that existed nice, i had looked to copy the json without opening the actualy view before

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 19, 2021, 10:41am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/4 "2021-10-19T10:41:38Z")

</div>

Sorry, I forgot to upload my export file. 😅  
I just realized your method, I will try it.  
No, it doesn’t work, the new view can’t open too…  
Glad to know this method.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2021, 12:12pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/5 "2021-10-19T12:12:03Z")

</div>

He ment you should to post the json in here using this button ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/e/de84d8958e2eb4bd18fe3c484eda90c4b380cb2f.png)  
so we can see if its broken. but i guess the export is fine too.

Ever had any problems in other views with Chinees (or whatever language these are) characters in names?

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 19, 2021, 12:24pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/6 "2021-10-19T12:24:44Z")

</div>

Oh, thank you. I didn’t realize that. Because that file has more than five thousand lines, I didn’t expect it at all.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2021, 12:55pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/7 "2021-10-19T12:55:36Z")

</div>

Do you seesomething in the console logs when you open that page in the browser?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2021, 1:23pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/8 "2021-10-19T13:23:56Z")

</div>

Alright i found somethign in the logs…  
java.lang.IllegalArgumentException: newPosition \> limit: (8194 \> 8192)

Seems like one of your components is located so far it overflowed the position xd  
Very weird… as i did not find anything bigger than 2000, expect floats, maybe thats the problem?  
i did a replace of anything bigger than a 1000 (regex: `0*[1-9]\d{3,}`) and now i seem to be able to open the view (after restarting the gateway service)… though this did mess up the position

you might want to try to first replace the floats

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 19, 2021, 1:34pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/9 "2021-10-19T13:34:26Z")

</div>

Thank you.  
I notice some strange coordinate, can they cause errors?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/1/d1a62fde0195ad570edd3fabf8de7ce8a0fa545d.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2021, 1:45pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/10 "2021-10-19T13:45:05Z")

</div>

It does seem removing the big floats is not enough:/  
Weird when i try to make my own view with crazy big numbers i am able to just open and close it…

maybs its a combiniation of a lot of things idk

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 19, 2021, 2:09pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/12 "2021-10-19T14:09:52Z")

</div>

thanks for help.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2021, 2:15pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/13 "2021-10-19T14:15:36Z")

</div>

Remove all the floats, remove the negative postion of the root container (set to 0)  
change the left over big numbers (1800+) to something smaller (1000?)  
close the designer, restart the server.  
And it should allow you to open it again.  
make a new save and try changing the couple of 1800+ back and see if that works now i guess

also report this as a bug^^ (ill change the title xd)

---

<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:** [October 19, 2021, 2:23pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/14 "2021-10-19T14:23:22Z")

</div>

I opened an issue for this.

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 20, 2021, 12:45am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/15 "2021-10-20T00:45:31Z")

</div>

Once I bind a dataset with thousands float, to a button, then that view can’t open. And designer show View config is undefined.  
Could it be caused by the same thing? or all errors that cause views to not open are classified as View config is undefined?

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 20, 2021, 2:01am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/16 "2021-10-20T02:01:24Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a7a50ae657abeb77084c8f9ffc60112033baeedf.png)  
position like this ,cause the errors. I removed floating point numbers longer than 3, then the view can open correctly.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 20, 2021, 6:46am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/17 "2021-10-20T06:46:22Z")

</div>

Its not just the floats tho as i could create a new view with some weird float values and those did open again… so it gotta be a combination of something idk Maybe its the combination of 5000+ lines of codes with floats?

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [October 20, 2021, 3:33pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/18 "2021-10-20T15:33:28Z")

</div>

I got View config is undefined many times. I guess the designer is incomplete, maybe java, maybe browser core. I believe that fixing it is very defficult. Remember backup. 🙂

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [December 2, 2021, 9:38am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/19 "2021-12-02T09:38:47Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/6864352313ff83ca445937c66bda93759b6dc82e.png)  
I found that deleting permissions from view.json solved the problem 80% of the time.

---

<div class="post-metadata">

**Author:** ![edward.fowler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edward.fowler/32/24179_2.png) [@edward.fowler](https://forum.inductiveautomation.com/u/edward.fowler)\
**Post date:** [February 16, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/20 "2022-02-16T15:05:24Z")

</div>

I’m using Ignition 8.1.13 and have the same issue. If I close the designer and reopen it 1/2 the time my view comes back without the error.

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [May 17, 2022, 6:03am UTC](https://forum.inductiveautomation.com/t/ign-4916-view-cant-open-view-config-is-undefined/52100/21 "2022-05-17T06:03:01Z")

</div>

I found that the anchor properties and the order of components can cause this problem.
