# Chartpath in gateway startup script

**URL:** <https://forum.inductiveautomation.com/t/chartpath-in-gateway-startup-script/14999>\
**Category:** Ignition\
**Created:** [August 7, 2017, 9:58am UTC](https://forum.inductiveautomation.com/t/chartpath-in-gateway-startup-script/14999 "2017-08-07T09:58:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanixu](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nanixu](https://forum.inductiveautomation.com/u/nanixu)\
**Post date:** [August 7, 2017, 9:58am UTC](https://forum.inductiveautomation.com/t/chartpath-in-gateway-startup-script/14999/1 "2017-08-07T09:58:11Z")

</div>

When I tried to start some charts manually during gateway restarting, something strange happened.  
the " Batch logic" chart was placed in the global of Sequential Function Charts without any folders.

```auto
Traceback (most recent call last):
  File "<[IADemo] Startup Script>", line 14, in <module>
	at com.inductiveautomation.sfc.ChartManager.startChart(ChartManager.java:355)
	at com.inductiveautomation.sfc.ChartManager.startChart(ChartManager.java:292)
	at com.inductiveautomation.sfc.scripting.GatewayScriptingFunctions.startChart(GatewayScriptingFunctions.java:19)
	at com.inductiveautomation.sfc.scripting.SfcScriptingFunctionsPyWrapper.startChart(SfcScriptingFunctionsPyWrapper.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)

java.lang.Exception: java.lang.Exception: no chart defined at path: Batch logic

7.9.0 (b2016101208)
Oracle Corporation 1.8.0_111

```

Actually this script has no issues when it is executed in a button “action performed” script.  
Any clues?
