<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Character/Numeric Issues Query Entity Rules</title><link>https://community.appian.com/discussions/f/rules/8344/character-numeric-issues-query-entity-rules</link><description>Hi Team, We have query entity rule(say QREntity) which gets rows from table based on the input passed. It&amp;#39;s like fieldA = ri!input. (fieldA in db is defined as Numeric) ri!input is defined as numeric. I am invoking this rule from another rule as below</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Character/Numeric Issues Query Entity Rules</title><link>https://community.appian.com/thread/36520?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 19:31:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32c1c492-7412-42c5-ab94-c5cc836c7271</guid><dc:creator>PhilB</dc:creator><description>I think this is probably more of a database question than query entity, as ultimately your query entity will eventually end up as a SQL query. Try running the following one at a time, and I think you&amp;#39;ll have the answer to your question:&lt;br /&gt;&lt;br /&gt;select 1 !=1; -- should be 0 (ie false)&lt;br /&gt;select 8 = 8; -- should be 1 (ie true)&lt;br /&gt;select &amp;#39;8&amp;#39; = 8; -- should be 1 (ie true)&lt;br /&gt;&lt;br /&gt;Out of interest, are you converting the primary key field to text, and/or doing the same with a field that you use as a way of finding rows? If so you may want to consider the effects that converting to text will have on the table indexes, as well as how you&amp;#39;re going to ensure that column is unique.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Character/Numeric Issues Query Entity Rules</title><link>https://community.appian.com/thread/36519?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 19:29:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:594d480e-f190-4d1d-b33b-57b3cbe231f1</guid><dc:creator>georgej</dc:creator><description>Certainly, but we would like to have more insight into the behavior highlighted in the question. How APPIAN is interpreting the data type ,though it is defined as numeric but is accepting both text/numeric&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Character/Numeric Issues Query Entity Rules</title><link>https://community.appian.com/thread/36518?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 19:27:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a731382-9713-4e6b-b4b0-a7e86e632b04</guid><dc:creator>aayusha</dc:creator><description>I should say It is a good practice to change and keep this consistent.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Character/Numeric Issues Query Entity Rules</title><link>https://community.appian.com/thread/36517?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 19:26:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01c09aee-3127-485e-aaae-1f973b053335</guid><dc:creator>aayusha</dc:creator><description>As far as I have seen till now, it should not create any issues as you are converting a integer column to text but ideally all the dependencies should be changed.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>