<?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>I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/discussions/f/integrations/6403/i-am-passing-an-activity-class-to-a-query-database-smart-service-and-am-receivin</link><description>I am passing an activity class to a Query Database Smart Service and am receiving the following error: There was a problem executing the SQL query: SQL Message: ORA-01722: invalid number. I am using the “IN” operator to update multiple values. When I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/89667?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 10:51:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6920bed0-c01a-4dbc-a979-ae0753c8ea05</guid><dc:creator>harshav</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/mahipalc"&gt;mahipalc&lt;/a&gt; &lt;a href="/members/mahipalc"&gt;mahipalc&lt;/a&gt; we tried this but i am still getting an error saying truncated double error could you please help on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/75766?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 03:09:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60137f4b-74e0-48a4-8d27-ae882bebf8a7</guid><dc:creator>karthip0001</dc:creator><description>&lt;p&gt;I am going to try this.  Been getting the same error.  Can&amp;#39;t believe they haven&amp;#39;t improved this in 5 freaking years.  Come on, Appian!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25150?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2015 18:26:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9857918-004e-4b8e-bf4a-c0568e3c2f92</guid><dc:creator>matthewz433</dc:creator><description>It looks like this is working now.  mahipalc and ammireddys, thank you!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25033?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2015 06:55:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:509bb83e-07a7-43b7-a067-aed2b3a1085e</guid><dc:creator>mahipalc</dc:creator><description>&lt;br /&gt;This should work :&lt;br /&gt;&lt;br /&gt;UPDATE PVCR_CASE SET STATUS = ac!status WHERE INSTR(&amp;#39;,&amp;#39;||ac!IDs||&amp;#39;,&amp;#39;, &amp;#39;,&amp;#39;||PVCR_CASE.CASEID||&amp;#39;,&amp;#39;)=0&lt;br /&gt;where ac!IDs is TEXT, single type. And ac!IDs is configured as =joinarray(pv!temp,&amp;quot;,&amp;quot;)&lt;br /&gt;where temp is a process variable of number, multiple type (for example {100,200})&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25026?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2015 04:47:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0fcbfb2e-f9b6-4d18-92fc-5df5eb494098</guid><dc:creator>ammireddys</dc:creator><description>Have you tried wrapping of search field (CASEID) with Grave accent symbol (`) its like `CASEID`.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25016?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 20:13:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53215abb-9060-4080-8fd4-471468138de0</guid><dc:creator>matthewz433</dc:creator><description>sql: Update PVCR_CASE set status = ac!status where INSTR(ac!IDs, &amp;#39;CASEID&amp;#39;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25015?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 20:11:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0fdaab80-8ca8-4c20-99e0-2dd21d7eea64</guid><dc:creator>matthewz433</dc:creator><description>I did try the INSTR function but did not have any more luck, received the error message: ORA-00920: invalid relational operator&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25011?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 11:06:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83a02473-eefd-4099-89f8-d295206a7722</guid><dc:creator>ammireddys</dc:creator><description>Hi Matthew,&lt;br /&gt;Using INSTR will do your work,&lt;br /&gt;Try this : Update sample set status = ac!status where INSTR(ac!IDs,`aid`)&lt;br /&gt;/* aid is the field that you are searching */ and the formula joinarray(pv!selectedCaseIDs ,&amp;quot;,&amp;quot;)&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25010?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 10:42:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec79e06f-8823-4f78-9a67-2a80065e0e0d</guid><dc:creator>ammireddys</dc:creator><description>Am afraid we cannot pass multiple values to the acp,&lt;br /&gt;@bhanu: Thanks for your input.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25009?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 10:32:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bac5ee1-8fbb-4273-92cc-58e8eee914cd</guid><dc:creator>bhanuprakashm</dc:creator><description>Hi Matthew, approach what your are using is correct.instead of &amp;#39;IN&amp;#39; better to use &amp;#39;INSTR&amp;#39; operator..&lt;br /&gt;it will work..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I am passing an activity class to a Query Database Smart Service and am receivin</title><link>https://community.appian.com/thread/25005?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2015 09:55:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae822b8a-dc45-471f-a195-44b29f33106f</guid><dc:creator>ammireddys</dc:creator><description>Hi matthew,&lt;br /&gt;Try converting type of ac!id to number(integer) and make it multiple then map the pv!selectedCaseIDs to Value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/18/sample.png"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/18/sample.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>