# Help: Getting java.lang.ClassCastException in runNamedQuery on the script console

**URL:** <https://forum.inductiveautomation.com/t/help-getting-java-lang-classcastexception-in-runnamedquery-on-the-script-console/23789>\
**Category:** Ignition Early Access\
**Created:** [April 2, 2019, 3:42pm UTC](https://forum.inductiveautomation.com/t/help-getting-java-lang-classcastexception-in-runnamedquery-on-the-script-console/23789 "2019-04-02T15:42:59Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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 2, 2019, 5:33pm UTC](https://forum.inductiveautomation.com/t/help-getting-java-lang-classcastexception-in-runnamedquery-on-the-script-console/23789/9 "2019-04-02T17:33:49Z")

</div>

See posts like this:

> [@\[Bug-13088,13252\]Popup Views Fail To Interpret Parameters Which Are Objects Or Arrays](http://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247/7):
>
> Yah, but my recommendation for passing the queryPath won’t work because we haven’t implemented a “property picker” for the queryPath input, so… You might just need to pass those two properties (project and queryPath), create a custom property (on the View, or Table Component) named whatever (“data” would be good though), bind the value of this new property to view.params.project, then use a script transform to run a named query where you also grab the value of self.view.params.queryPath. Somethi…

Or just look for runNamedQuery in the v8 beta category.

---

_[View the full topic](https://forum.inductiveautomation.com/t/help-getting-java-lang-classcastexception-in-runnamedquery-on-the-script-console/23789)._
