<?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>PostGre SQL Data fetching issue</title><link>https://community.appian.com/discussions/f/rules/21879/postgre-sql-data-fetching-issue</link><description>Hi All, 
 We have a Postgre SQL DB connected to Appian system, and we are trying to fetching the data from respective table. 
 i created CDT, entity mapping verified &amp;amp; Data store published successfully. In Rule Expression, when we tried the query entity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/122874?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 03:21:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ada1d249-c8d9-422d-8138-c1caa582d109</guid><dc:creator>kinjalb</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please tell us how you migrated from Appian Cloud DB(Mysql) to Postgre?&lt;/p&gt;
&lt;p&gt;Did you rewrite all the xsd&amp;#39;s using python scripts?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please reply back!&lt;/p&gt;
&lt;p&gt;Thanks in advance!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/86449?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 05:42:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4c02cab-25d6-4bcf-9e88-26cf83a6c738</guid><dc:creator>Aditya</dc:creator><description>&lt;p&gt;Change the default search path for the user which you are using to connect to the PostgreSQL database from public to your_schema using the following command:&lt;/p&gt;
&lt;p&gt;&lt;span class="hljs-keyword"&gt;ALTER&lt;/span&gt; ROLE &lt;span class="hljs-operator"&gt;&amp;lt;user_name&lt;/span&gt;&lt;span class="hljs-operator"&gt;&amp;gt;&lt;/span&gt; &lt;span class="hljs-keyword"&gt;IN&lt;/span&gt; DATABASE &lt;span class="hljs-operator"&gt;&amp;lt;&lt;/span&gt;db_name&lt;span class="hljs-operator"&gt;&amp;gt;&lt;/span&gt; &lt;span class="hljs-keyword"&gt;SET&lt;/span&gt; search_path &lt;span class="hljs-keyword"&gt;TO&lt;/span&gt; &amp;quot;$user&amp;quot;,your_schema_name;&lt;/p&gt;
&lt;p&gt;After this, refresh your db once and then re-open your query entity rule and test. It will work for schemas other than public schema as well.&lt;code class="hljs language-sql"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85923?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 15:28:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57694130-e14a-4350-827f-da7d172136c7</guid><dc:creator>kishoren0003</dc:creator><description>&lt;p&gt;Vimalkumar,&lt;/p&gt;
&lt;p&gt;Yes, issue got fixed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but, while using Postgre SQL DB i found 2 issues.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1 Issue:-&lt;/strong&gt; In Postgre SQL by default schema is Public whatever we created tables under public schema those table&amp;#39;s records are fetching in Applian expression rule with out any issues.&lt;/p&gt;
&lt;p&gt;if we created manually our own schema(Test-Schema) that is not working. not sure, whether this is postgre DB issue or something else. during the trail and errors i found this.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2 Issue:-&amp;nbsp; &lt;/strong&gt;Actually, we created CDT using Appain cloud DB and later we changed to PostGreSQL. the datatyp&amp;#39;s are changed as per DB column datatype DSE entity mapped verified successfully.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;post DSE verification, we were trying to read data from in expression rule getting unexpected error which i mentioned above chain conversation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:#00ff00;"&gt;Resolution:- &lt;/span&gt;&lt;/strong&gt;&lt;span style="color:#000000;"&gt;post data source test connection successful, i created one more CDT using existing DB for same table and&amp;nbsp;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&amp;nbsp;copied new XSD file content and pasted existing CDT XSD file. after it was working fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;i am not sure why this did not worked before which we initially created CDT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85914?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 14:30:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16d2ff28-c15b-4616-952c-0f2452570f97</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Kishore,&lt;/p&gt;
&lt;p&gt;Is this fixed? if not, can you ensure the table name you have in CDT XSD has the same case like the one you have in the database?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85746?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 15:48:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5884e18b-efc5-45eb-a7b6-c73619ddc33b</guid><dc:creator>kishoren0003</dc:creator><description>&lt;p&gt;I gone through the link which you shared and followed few steps which is given. but, still getting same issue.&lt;/p&gt;
&lt;p&gt;even i have given my schema as default&amp;nbsp; search path in Postgre SQL for searching data from table. this is also did not worked.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85744?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 13:46:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8d922bf-e50b-4ef2-a4ef-c5d2d3afdac9</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Can you check the below link to see if that helps?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/695289/cannot-simply-use-postgresql-table-name-relation-does-not-exist"&gt;stackoverflow.com/.../cannot-simply-use-postgresql-table-name-relation-does-not-exist&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85743?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 13:40:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bb949b1-fe4a-458d-b4ae-75d50f35a4d6</guid><dc:creator>kishoren0003</dc:creator><description>&lt;p&gt;Here the Log.... i could see below error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2021-09-14 12:07:30,865 [http-nio-8080-exec-18] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;AAF_Asset&amp;quot; does not exist&lt;br /&gt; Position: 639&lt;br /&gt;2021-09-14 12:07:33,527 [http-nio-8080-exec-6] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;AAF_Asset&amp;quot; does not exist&lt;br /&gt; Position: 639&lt;br /&gt;2021-09-14 12:18:25,250 [http-nio-8080-exec-18] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;AAF_Asset&amp;quot; does not exist&lt;br /&gt; Position: 639&lt;br /&gt;2021-09-14 12:20:08,730 [http-nio-8080-exec-57] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;AAF_Asset&amp;quot; does not exist&lt;br /&gt; Position: 639&lt;br /&gt;2021-09-14 12:34:50,416 [http-nio-8080-exec-42] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;AAF_Asset&amp;quot; does not exist&lt;br /&gt; Position: 639&lt;br /&gt;2021-09-14 13:04:43,227 [Timer-4] INFO com.appiancorp.cache.DatabaseAuxiliaryCache - Removing expired entries from db cache: uiState-auxiliary&lt;br /&gt;2021-09-14 13:09:18,034 [http-nio-8080-exec-50] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;AAF_Asset&amp;quot; does not exist&lt;br /&gt; Position: 639&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85740?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:58:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f10a874-f3c8-45aa-bab4-f763f04db370</guid><dc:creator>kishoren0003</dc:creator><description>&lt;p&gt;Thank you.. Vimalkumars, for responding.&lt;/p&gt;
&lt;p&gt;yes, i will check logs and share here to debug more. below is data store published. PFA.&lt;/p&gt;
&lt;p&gt;this may helps to find more.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1631624259845v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1631624274424v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PostGre SQL Data fetching issue</title><link>https://community.appian.com/thread/85736?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:47:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a4f127c-2c95-4f75-8445-b37053ac4017</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;&lt;span&gt;kishoren0003,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error Message you shared doesn&amp;#39;t have&amp;nbsp;enough information to debug. Check your Tomcat Server Log for more information and share here?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A possible reason could be your data store entity is not&amp;nbsp;published properly.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>