# Error running function "runAction(self, event)"

**URL:** <https://forum.inductiveautomation.com/t/error-running-function-runaction-self-event/22644>\
**Category:** Ignition Early Access\
**Created:** [February 18, 2019, 2:09pm UTC](https://forum.inductiveautomation.com/t/error-running-function-runaction-self-event/22644 "2019-02-18T14:09:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jreynolds](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jreynolds](https://forum.inductiveautomation.com/u/jreynolds)\
**Post date:** [February 18, 2019, 2:09pm UTC](https://forum.inductiveautomation.com/t/error-running-function-runaction-self-event/22644/1 "2019-02-18T14:09:42Z")

</div>

I have a simple script that is supposed to read the value from a dropdown component and print that value to the console. I get an error when I try to execute the script. This is on a view in a Perspective window.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/daafd12a376d3bb150d34212861e0d4885913d07.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5e0037ca681864d924b2e384fedadcb2f29b6693.png)

```
processNum=self.getSibling('drpProcessSel').props.value
#stepNum=self.root.custom.currentStep

print processNum
#print stepNum

```

com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File “”, line 2, in runAction AttributeError: ‘NoneType’ object has no attribute ‘props’

at org.python.core.Py.AttributeError(Py.java:207)

at org.python.core.PyObject.noAttributeError(PyObject.java:1032)

at org.python.core.PyObject. **getattr** (PyObject.java:1027)

at org.python.pycode.\_pyx0.runAction$1(:6)

at org.python.pycode.\_pyx0.call\_function()

at org.python.core.PyTableCode.call(PyTableCode.java:171)

at org.python.core.PyBaseCode.call(PyBaseCode.java:308)

at org.python.core.PyFunction.function\_\_\_call\_\_(PyFunction.java:471)

at org.python.core.PyFunction. **call** (PyFunction.java:466)

at org.python.core.PyFunction. **call** (PyFunction.java:456)

at org.python.core.PyFunction. **call** (PyFunction.java:451)

at com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:683)

at com.inductiveautomation.ignition.common.script.ScriptManager$ScriptFunctionImpl.invoke(ScriptManager.java:801)

at com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper.invoke(ScriptFunctionHelper.java:82)

at com.inductiveautomation.perspective.gateway.action.ScriptAction.runAction(ScriptAction.java:65)

at com.inductiveautomation.perspective.gateway.action.ActionDecorator.runAction(ActionDecorator.java:18)

at com.inductiveautomation.perspective.gateway.action.SecuredAction.runAction(SecuredAction.java:51)

at com.inductiveautomation.perspective.gateway.model.ActionCollection$ActionSequence$ExecuteActionsTask.lambda$call$0(ActionCollection.java:257)

at com.inductiveautomation.perspective.gateway.api.LoggingContext.mdc(LoggingContext.java:54)

at com.inductiveautomation.perspective.gateway.model.ActionCollection$ActionSequence$ExecuteActionsTask.call(ActionCollection.java:246)

at com.inductiveautomation.perspective.gateway.model.ActionCollection$ActionSequence$ExecuteActionsTask.call(ActionCollection.java:215)

at com.inductiveautomation.perspective.gateway.threading.BlockingTaskQueue$TaskWrapper.run(BlockingTaskQueue.java:154)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: org.python.core.PyException: Traceback (most recent call last): File “”, line 2, in runAction AttributeError: ‘NoneType’ object has no attribute ‘props’

---

<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:** [February 19, 2019, 3:23pm UTC](https://forum.inductiveautomation.com/t/error-running-function-runaction-self-event/22644/2 "2019-02-19T15:23:16Z")

</div>

Are you encountering this error when running in a Session, or are you encountering it in Preview mode? Did you happen to change the component name since your last save?

While running the same code (albeit with different Component names), I did not encounter your issue.

Also, I would recommend against using `print` - use `system.util.getLogger('<logger_name_here>').info('<your_text_here>')` instead.
