# Warning in log - Channel is not set

**URL:** <https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 11, 2024, 5:53am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678 "2024-04-11T05:53:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin.johansson](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@martin.johansson](https://forum.inductiveautomation.com/u/martin.johansson)\
**Post date:** [April 11, 2024, 5:53am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/1 "2024-04-11T05:53:00Z")

</div>

Hi,

I have a warning in the Ignition-log that has increased in frequency the last couple of weeks/months to around 5-10 times a day. The number of clients on the related project has increased and many of them use an Android Pad (with MobiConnect / SOTI Surf). The problem with this warning is that I can't even figure out what it means, and I haven't been able to replicate it so I don't really know where to start. I have searched the forums and the internet and it's only really one single post on here that even mentions it.

So, warning is this:

> com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File "", line 4, in valueChanged File "", line 241, in getProcessorder at com.inductiveautomation.perspective.gateway.model.PageModel.send(PageModel.java:384) at com.inductiveautomation.perspective.gateway.model.PageModel.send(PageModel.java:365) at com.inductiveautomation.perspective.gateway.script.PerspectiveScriptingFunctions.lambda$navigate$5(PerspectiveScriptingFunctions.java:198) at com.inductiveautomation.perspective.gateway.script.AbstractScriptingFunctions.lambda$operateOnPage$0(AbstractScriptingFunctions.java:82) at com.inductiveautomation.perspective.gateway.script.AbstractScriptingFunctions.operateOnSession(AbstractScriptingFunctions.java:120) at com.inductiveautomation.perspective.gateway.script.AbstractScriptingFunctions.operateOnPage(AbstractScriptingFunctions.java:47) at com.inductiveautomation.perspective.gateway.script.PerspectiveScriptingFunctions.navigate(PerspectiveScriptingFunctions.java:191) at jdk.internal.reflect.GeneratedMethodAccessor1071.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) java.io.IOException: java.io.IOException: Channel is not set.

It has something to do with a system.perspective.navigate command. I have looked at this and tried to manually add sessionId and pageId to see if that helps, but I still get the same warnings (the view takes a parameter in the url and "processorder" is a 7-digit number (converted to string)).

```auto
system.perspective.navigate("/Inmatning/" + processorder)

```

I also have another "Channel is not set"-warning pointing to an alterDock-command:

```auto
system.perspective.alterDock("header", {"size": 90})

```

Any help to understand what this means and if possible how to solve it is highly appreciated. As of now I don't even know how this effect the clients. I should add that this doesn't happen everytime these commands are supposed to run as I'm not able to replicate it. I have also tried on said Android Pad with the same configuration as the clients use and everything seems to work just like expected for me.

---

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [April 11, 2024, 5:54am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/2 "2024-04-11T05:54:09Z")

</div>

Are you triggering this navigation based on any condition?  
Also have a look on,

> [@Error when using 'system.perspective.openPopup'](https://forum.inductiveautomation.com/t/error-when-using-system-perspective-openpopup/74990):
>
> In Perspective, I use this methodology of configuring my params from my main view and passing them into a global popup view to get a response back from the end user, which then is fed back into the main view via message handlers. I have a list of param templates that I use for standard popups. Things like "Please Wait". "Cancel Confirm", "Submit Data", "Scrap Unit", etc. def BadInput(sLotName): sPrimaryMsg = 'Material Lot ' + str(sLotName) + ' Not Found, has already been Used or Scrapped.' …

---

<div class="post-metadata">

**Author:** ![martin.johansson](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@martin.johansson](https://forum.inductiveautomation.com/u/martin.johansson)\
**Post date:** [April 11, 2024, 6:12am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/3 "2024-04-11T06:12:07Z")

</div>

It's the last line in a bigger script that can be interupted earlier with return. But the navigation it self is not based on a condition. The reason for the nagivation is to get the parameter to the url so when the session reloads (if its lost) it reloads with the correct "processorder".

I have seen that post and thought about it. It can very well have something to to with the same thing. But when the session is lost the perpsective-page is reloaded (typically when the Pad hasn't been used for half an hour or so) so if the clients are able to see the page the session should be open, right?

I have tried to disable the Battery Optimization and that does seem to help keeping the session open for a little longer, but not "forever". I have only tried that in the Pad that I have on my desk as IT couldn't find a way to change this setting on all Pads remotely.

---

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [April 11, 2024, 6:28am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/4 "2024-04-11T06:28:20Z")

</div>

Have u configured Perspective Inactivity in project property?

---

<div class="post-metadata">

**Author:** ![martin.johansson](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@martin.johansson](https://forum.inductiveautomation.com/u/martin.johansson)\
**Post date:** [April 11, 2024, 6:37am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/5 "2024-04-11T06:37:28Z")

</div>

I don't have that enabled at all.

---

<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:** [April 11, 2024, 11:40am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/6 "2024-04-11T11:40:26Z")

</div>

> [@martin.johansson](#):
>
> Channel is not set.

That's a lost tab (closed, or websocket broken). It can also happen when navigation to a new page/view happens while a script referencing the prior page/view is running and trying to send something there. You'll have to share more of that `valueChanged` script.

---

<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:** [April 11, 2024, 3:54pm UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/7 "2024-04-11T15:54:11Z")

</div>

I'm inclined to agree with the other recommendations here; this really seems like something where the script is running in a page but the page is essentially pulled out from under the script, resulting in a situation where you request navigation but the page no longer exists. This would most likely be the result of other navigation being performed (URL, because that would change the Page ID), or the tab itself being closed. This could also potentially occur if the View the script lives in is removed from the page while the script is executing.

---

<div class="post-metadata">

**Author:** ![martin.johansson](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@martin.johansson](https://forum.inductiveautomation.com/u/martin.johansson)\
**Post date:** [April 12, 2024, 5:34am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/8 "2024-04-12T05:34:52Z")

</div>

First of all, thanks for the help so far. Seems like you all agree that the current page is somehow "gone". This will help me sort this out.

Regarding posting more of the valueChanged script, there is potentially more scripts running at the same time. I have to really sort things out to see what is happening and when. The script that this navigation is in does mostly consist of `system.db.runNamedQuery` and handling of that data. Though I should add that I'm a novice at python and use google + trial and error to get things running 😉

The only thing I have found so far that is a small question mark is if changing the page title with `self.page.props.title = processorder + " - Inmatning"` could have any effect on this. It does this slightly before the navigation occurs.

---

<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:** [April 12, 2024, 3:07pm UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/9 "2024-04-12T15:07:17Z")

</div>

The problem could also be that something _else_ is causing the navigation, or it could even be a user closing the tab. My point is it might not even be a script which lives in the page. Consider looking at Navigation components on the page, or scripts in other areas (session property change scripts, and Session Message Handlers) for potential navigation invocations.

---

<div class="post-metadata">

**Author:** ![martin.johansson](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@martin.johansson](https://forum.inductiveautomation.com/u/martin.johansson)\
**Post date:** [April 15, 2024, 12:16pm UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/10 "2024-04-15T12:16:54Z")

</div>

I think I might have found what was causing it now. This script containing the navigation might have been triggered twice. Made a change to stop that from happening and hopefully this was it. I will find out tomorrow 😉

This thread really helped me figure out what it meant and where to start looking. Thanks!

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [September 11, 2025, 7:46pm UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/11 "2025-09-11T19:46:03Z")

</div>

what did you find was the issue?

---

<div class="post-metadata">

**Author:** ![martin.johansson](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@martin.johansson](https://forum.inductiveautomation.com/u/martin.johansson)\
**Post date:** [September 12, 2025, 5:18am UTC](https://forum.inductiveautomation.com/t/warning-in-log-channel-is-not-set/88678/12 "2025-09-12T05:18:46Z")

</div>

I’m not 100% sure what the final solution was, my memory is too short 😉

But I remember I had something that potentially triggered the script doing this navigation twice. So I would look into that. And I know that I added a simple try/except to remove the error in the log all together. We have lots of tablets that can give some errors when the loose connection back and forth due to sleeping.

```
try:
	system.perspective.navigate(navigateTo)

except:
	pass

```

This try/except won't solve any issues you have, just skip the navigation if it would result in an error.
