# \[Bug-13041\]executeScalarQuery not working in Exrpession tag

**URL:** <https://forum.inductiveautomation.com/t/bug-13041-executescalarquery-not-working-in-exrpession-tag/22355>\
**Category:** Ignition Early Access\
**Created:** [February 5, 2019, 6:17pm UTC](https://forum.inductiveautomation.com/t/bug-13041-executescalarquery-not-working-in-exrpession-tag/22355 "2019-02-05T18:17:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudipta.tripathy](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sudipta.tripathy](https://forum.inductiveautomation.com/u/sudipta.tripathy)\
**Post date:** [February 5, 2019, 6:17pm UTC](https://forum.inductiveautomation.com/t/bug-13041-executescalarquery-not-working-in-exrpession-tag/22355/1 "2019-02-05T18:17:00Z")

</div>

I am trying to use a expression tag with following expression and I see “Unknown function” error in diagnostic.

executeScalarQuery(“exec [SF].[uspGetSFOutputPercent] @Workstation=’{[.]MachineName}’”,“DBConnection”)

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [February 6, 2019, 5:36pm UTC](https://forum.inductiveautomation.com/t/bug-13041-executescalarquery-not-working-in-exrpession-tag/22355/2 "2019-02-06T17:36:09Z")

</div>

We are currently aware of a number of Expression functions that aren’t working correctly. This includes all of the **Database** and **Store & Forward** functions.

Garth

---

<div class="post-metadata">

**Author:** ![bseymour](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bseymour/32/9109_2.png) [@bseymour](https://forum.inductiveautomation.com/u/bseymour)\
**Post date:** [May 15, 2019, 1:22pm UTC](https://forum.inductiveautomation.com/t/bug-13041-executescalarquery-not-working-in-exrpession-tag/22355/4 "2019-05-15T13:22:00Z")

</div>

@ggross Has this bug been resolved in 8.0.1? I’m getting “Error\_Configuration” in the Quality field when I try this with an expression tag. The query I’m using works perfectly in the Database Query Browser.

---

<div class="post-metadata">

**Author:** ![tordvd](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tordvd/32/11525_2.png) [@tordvd](https://forum.inductiveautomation.com/u/tordvd)\
**Post date:** [October 1, 2019, 9:41am UTC](https://forum.inductiveautomation.com/t/bug-13041-executescalarquery-not-working-in-exrpession-tag/22355/5 "2019-10-01T09:41:41Z")

</div>

It seems like this is still a problem in 8.04x.

At least executeScalarQuery() is not working for me
