<?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>Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/discussions/f/new-to-appian/34826/unable-to-retrieve-my-data-from-a-view-in-database-into-appian-rt-er</link><description>Hi Experts, 
 Need your help in the following issue: 
 I have created one view that is getting data from a table in a DB. 
 Then I created the CDT for the same from that DB and then the DS is also verified and published with no error. 
 But on retrieving</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134527?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:56:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7095db01-94b1-4418-9b36-7ca6bf4ddae0</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;How long does the query takes to execute and what&amp;#39;s the size of the datasubset received? YOu can check it directly in the database......&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134526?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:51:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1acbac03-9ea7-4d64-9b68-c266977a2c4b</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;One thing I always like to rule out when a DS is published successfully, but cannot access data, is that this is not an Oracle database with the view residing in a different schema than the home schema of the user account.&amp;nbsp; In this case, we need to create a synonym to the view, in the home schema of the database account.&amp;nbsp; This may not be the case, but for a while there has been a discrepancy with Oracle DBs and the different Java libraries that Appian uses for database validation, vs connection at runtime (Teneo vs Hibernate).&amp;nbsp; One can access objects in a different schema and one cannot.&lt;/p&gt;
&lt;p&gt;However the memory and timeout error do not tend to this situation, typically we would see &amp;quot;table does not exist&amp;quot; or something of the sort.&amp;nbsp; Just to note.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134524?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:44:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6354be60-ec39-4c39-9252-5978926316a7</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;Can you share the CDT and XSD details of view?&amp;nbsp;Specifically, primary key information.&lt;/p&gt;
&lt;p&gt;It appears to&amp;nbsp;me a silly mistake around primary key configuration.&lt;/p&gt;
&lt;p&gt;I am ruling out the threshold or memory issue as QE not retrieving a single row with primary key only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134523?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eafb817d-af30-4d80-ad2c-b111a11a0b7a</guid><dc:creator>MaryamLNU</dc:creator><description>&lt;p&gt;Yes, it is working fine. The only problem is in only when I am retrieving. Even though the Data Store is not showing any error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134522?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:26:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:abcec94b-1d2d-4059-8b83-6acec3d65607</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;is your view loading fine at database side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134520?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 15:25:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a2b7069-8d34-42c8-9524-2dff6cc5a346</guid><dc:creator>MaryamLNU</dc:creator><description>&lt;p&gt;Sure &lt;a href="/members/harshk1671"&gt;Harsh Kumar Agarwal&lt;/a&gt;&amp;nbsp;, &lt;br /&gt;&lt;br /&gt;Output of the above code:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1714490704050v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134507?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 12:24:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d99246f0-252b-4706-8963-cb0521ba76ef</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;Can you share the output of following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!queryEntity(
  entity: cons!Test_DSE_VW_MULT_TARGET,
  query: a!query(
    selection: a!querySelection(columns: { a!queryColumn(field: &amp;quot;vwid&amp;quot;) }),
    pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 1)
  ),
  fetchTotalCount: false()
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134506?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 12:16:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d758a0bc-cd92-4e5d-94d6-3717659e3271</guid><dc:creator>MaryamLNU</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;, let me&amp;nbsp;work on the two things you mentioned.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134503?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 12:08:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96147c17-91be-489c-89d1-f3c0d2781c3c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In the first line, it just repeats the error message you already have.&lt;/p&gt;
&lt;p&gt;My first guess is a timeout issue. And you can only solve that by speeding up that database view.&lt;/p&gt;
&lt;p&gt;My second guess is a memory issue. The query returns too many rows with too many fields. Paging ist the solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134502?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 12:07:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a15b126-a9e8-441e-b0a0-5ac6fc2ec75f</guid><dc:creator>MaryamLNU</dc:creator><description>&lt;p&gt;Sure &lt;a href="/members/harshk1671"&gt;Harsh Kumar Agarwal&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Up on selecting the constant of the Entity, I am getting this error in Query Editor:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1714478742301v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Yes I created a Unique identifier column for my view which we are using as a PK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134501?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 12:03:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e24e0750-528f-49cf-a2b1-987d702d0e4e</guid><dc:creator>MaryamLNU</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;, I am attaching a stdout log file. Kindly help me to identify what is wrong. I am unable to find.&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/62/TOMCAT-Log.txt"&gt;community.appian.com/.../TOMCAT-Log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134500?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 11:52:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c4c9ee94-9147-44a0-a941-4f98ab97f2a5</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;Can you share the code&amp;nbsp;of QE?&lt;/p&gt;
&lt;p&gt;Also, did you check that your view has a column with unique identifier which you are using as a primary key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to retrieve my data from a View in Database into Appian RT/ ER</title><link>https://community.appian.com/thread/134487?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 09:12:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a396d93-8359-4c3d-9b4c-ed3e61b5422f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you see any details in the tomcat stdout log file? For me, this looks like a timeout issue. DB views are known for this kind of issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>