<?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>Fetch Data From View Using Query Rule</title><link>https://community.appian.com/discussions/f/general/9598/fetch-data-from-view-using-query-rule</link><description>Hi, I am fetching employee data from view using query rule .. I am facing fallowing error. ----------------------------------------- Expression evaluation error in rule &amp;#39;kp_ial_getempdetailsfromview&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetch Data From View Using Query Rule</title><link>https://community.appian.com/thread/42587?ContentTypeID=1</link><pubDate>Sun, 29 Jan 2017 18:24:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28ad27ac-ec95-4e15-8460-c1926ac91a06</guid><dc:creator>pavanik</dc:creator><description>@chetany, Thanks for your response..I removed the view and wrote it again now its working..the problem might be mapping between CDT and view..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch Data From View Using Query Rule</title><link>https://community.appian.com/thread/42080?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 16:53:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e19dd357-e4a2-4d9b-a46e-8b87f1d717e0</guid><dc:creator>chetany</dc:creator><description>I think you have a View based on some table(s). The primary key in a table cannot be null. But, in the  CDT used for the view - you have mapped some column as @Id. And somehow a row for that column (which is annotated with @Id) turned out to be null.. You will need some more time to debug why that happened&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch Data From View Using Query Rule</title><link>https://community.appian.com/thread/42077?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 16:12:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:05ed8f2c-155a-49a1-beae-231c5149d0a3</guid><dc:creator>pavanik</dc:creator><description>Thanks everyone. It was view contain null value as a primary key causing the issue. Corrected it and the error is gone.&lt;br /&gt;&lt;br /&gt; I want to know, why query entity works in the same scenario when view contain null as a primary key ? &lt;br /&gt;Glad to know your solutions and thoughts!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch Data From View Using Query Rule</title><link>https://community.appian.com/thread/42073?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 15:27:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca5e3f6b-36c4-48e7-871b-b3817b74eed0</guid><dc:creator>priyankasabankar</dc:creator><description>Sometimes there is problem in &amp;quot;queryruleexec&amp;quot; because of JDBC server connection issues, may be,you need to check that.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch Data From View Using Query Rule</title><link>https://community.appian.com/thread/42071?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 15:18:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:acb50637-53ba-49bc-aa4a-43b9c62f6b3c</guid><dc:creator>Sathya Srinivasan</dc:creator><description>In addition to Margaret&amp;#39;s comment, you may also want to make sure that your Data types are up to date.  the DT8936 that&amp;#39;s I see here indicates that its an older version of the Data Type.  Was the type recently changed? Is the Rule input or output still mapped to the correct version of the CDT? Check this as well.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch Data From View Using Query Rule</title><link>https://community.appian.com/thread/42065?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 14:30:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2e6efe3-38d4-4c61-9d73-12eac4f528d6</guid><dc:creator>Margaret Haymann</dc:creator><description>3 things to review&lt;br /&gt;a) the log files to see if they offer more information&lt;br /&gt;b) the cdt relationships in the view to ensure they are defined correctly&lt;br /&gt;c) how much data is being returned&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>