# Dock won't open, UUID string too large

**URL:** <https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590>\
**Category:** Ignition Early Access\
**Tags:** ignition80, perspective\
**Created:** [January 24, 2020, 12:29pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590 "2020-01-24T12:29:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [January 24, 2020, 12:29pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/1 "2020-01-24T12:29:34Z")

</div>

I’ve been working on an error message for a form. When the user forgets to fill out a part of the form a docked window should show up with a dynamically changing message telling the user what part still need to be filled.  
However my code is spitting out an error that I don’t understand. Here it is:

```auto
 com.inductiveautomation.ignition.common.script.JythonExecException
Traceback (most recent call last):
  File "<function:runAction>", line 5, in runAction
  File "<custom-method Add>", line 95, in Add
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: UUID string too large

	caused by org.python.core.PyException
Traceback (most recent call last):
  File "<function:runAction>", line 5, in runAction
  File "<custom-method Add>", line 95, in Add
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: UUID string too large

	caused by IllegalArgumentException: UUID string too large

```

This is my code:

```auto
import time
params = {"Text":ErrorStr, "bgColor":"#FF0000", "Color":"#000000"}
		
system.perspective.openDock("Error", params)
time.sleep(5)
system.perspective.closeDock("Error")

```

The view has a DockID that matches the one in the code.

Does anyone have an idea what might be the problem?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 24, 2020, 3:00pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/2 "2020-01-24T15:00:53Z")

</div>

It looks like you’re passing the arguments in a positional fashion, which means that “Error” is being interpreted as the `id` argument, and your `params` variable is being interpreted as the `sessionId` argument.

Try this and see if it works.

```auto
system.perspective.openDock(id="Error", params=params)

```

---

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [January 24, 2020, 3:03pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/3 "2020-01-24T15:03:59Z")

</div>

That seems to have solved it. No error message anymore.  
Thanks!

That being said, the dock still doesn’t open, I’m guessing that might be because I’m trying to open it from a pop-up?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 24, 2020, 3:08pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/4 "2020-01-24T15:08:13Z")

</div>

That shouldn’t matter. Have you created a Docked View for the Page which is currently visible, AND specified that this dock’s id is “Error”?

---

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [January 24, 2020, 3:10pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/5 "2020-01-24T15:10:20Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5cda92d86af29ca045f000785572f70dcab74623.png)  
I’m pretty sure I do, unless I’ve overlooked something. This is on shared settings.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 24, 2020, 3:15pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/6 "2020-01-24T15:15:18Z")

</div>

> [@RadicalRumin](#):
>
> This is on shared settings.

That should be absolutely fine.

Some things to check:

1. This won't work in the Designer - it only works in Sessions.
2. Verify the View path is accurate.
3. Check the Gateway logs to verify there isn't an issue executing the script.
4. Make sure you've saved the project.
5. I just noticed that there is an `ErrorStr` variable in your `params` object, but I don't see that defined anywhere

---

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [January 24, 2020, 3:23pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/7 "2020-01-24T15:23:00Z")

</div>

Well, after checking all those things seemed to already be in order, but I made sure anyway. It seems to work now and show the custom error message. It seems to also close the popup after closing so that’s a bit of a problem, but it’s better than it was before.

As for the `ErrorStr`, the parameter is called `Text` and `ErrorStr` is the variable I’m passing into it. It’s a HTML string that gets filled with a different message depending on what is missing from the form.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 24, 2020, 3:27pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/8 "2020-01-24T15:27:13Z")

</div>

I was just letting you know that I don’t see that variable defined in your script before you use it, so I was expecting it to possibly fail.

I just tried your code (minus the params) and my Popup did not close. Consider checking that you don’t have some other code somewhere designed to close your Popup.

---

<div class="post-metadata">

**Author:** ![RadicalRumin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/radicalrumin/32/11543_2.png) [@RadicalRumin](https://forum.inductiveautomation.com/u/RadicalRumin)\
**Post date:** [January 24, 2020, 3:39pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/9 "2020-01-24T15:39:54Z")

</div>

Fair enough  
I only posted the relevant part of my code.

You’re right, another piece of code closes it. That solves that then.  
Thank you, it should all work properly now.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 24, 2020, 4:21pm UTC](https://forum.inductiveautomation.com/t/dock-wont-open-uuid-string-too-large/31590/10 "2020-01-24T16:21:06Z")

</div>

For future reference, if you’re providing stacktraces which include line numbers please include the full code. If you’re worried about private data or security, you have the option of providing code through direct message.
