# \#dynamic-queries

**URL:** https://community.cdata.com/tag/dynamic-queries/434.md

[Latest](https://community.cdata.com/latest.md) · [Categories](https://community.cdata.com/categories.md) · [Tags](https://community.cdata.com/tags.md)

---

## [Building Dynamic Queries in the Expression Builder – The data types "DT\_WSTR" and "DT\_I4" are incompatible for binary operator "+".](https://community.cdata.com/t/building-dynamic-queries-in-the-expression-builder-the-data-types-dt-wstr-and-dt-i4-are-incompatible-for-binary-operator/692)

<div class="topic-metadata">

**Author:** [@IrdiD](https://community.cdata.com/u/IrdiD)\
**Replies:** 0\
**Last updated:** [April 9, 2024, 8:50pm UTC](https://community.cdata.com/t/building-dynamic-queries-in-the-expression-builder-the-data-types-dt-wstr-and-dt-i4-are-incompatible-for-binary-operator/692 "2024-04-09T20:50:46Z")

</div>

The issue arises when trying to Evaluate an expression that contains a normal SQL Query and attempting to use a UserDefined Variable in the Expressions that have a data type other than WSTR (string). The error tells us t…
