<?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>Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/discussions/f/data/21815/postgres-sql-insertion-of-data-and-fetching-the-data</link><description>Hi All, 
 We have a postgre SQL DB connected to Appian system. And one of the column is a primary Key and the type of the Primary Key is UUID. However the Type of the UUID column is not compatible with Appian. 
 
 In such scenario how to insert the data</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85493?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 08:11:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b198f63-a5d4-4e33-bf61-75fea4c758f4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not have any experience in using UUID fields with Appian.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://vladmihalcea.com/hibernate-and-uuid-identifiers/"&gt;https://vladmihalcea.com/hibernate-and-uuid-identifiers/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think you will need to modify the XSD file and add some JPA annotations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85487?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 06:58:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbd21bd1-dd16-4525-87cf-0212ad85391f</guid><dc:creator>harshav</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here are the things which we did.&lt;/p&gt;
&lt;p&gt;1. Create a table with UUID column and created a CDT and DSE.&lt;/p&gt;
&lt;p&gt;2.Created a Expression RUle and i was able to fetch the data from the table.&lt;/p&gt;
&lt;p&gt;3. Created a PM to update the row, where i did try to insert.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Action&amp;quot; set &amp;quot;ActionName&amp;quot;=&amp;#39;test&amp;#39;, &amp;quot;ActionDescription&amp;quot;=&amp;#39;test1&amp;#39;, &amp;quot;ActionUId&amp;quot;=&amp;#39;006ba1e4-666f-4b88-9e6e-ddaa8890c0e9&amp;#39;, &amp;quot;TeamSize&amp;quot;=7 where &amp;quot;ActionId&amp;quot;=4 was aborted: ERROR: column &amp;quot;ActionUId&amp;quot; is of type uuid but expression is of type character varying&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;Hint: You will need to rewrite or cast the expression.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;Position: 74 &amp;nbsp;Call getNextException to see other errors in the batch.: org.postgresql.util.PSQLException: ERROR: column &amp;quot;ActionUId&amp;quot; is of type uuid but expression is of type character varying&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;Hint: You will need to rewrite or cast the expression.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;Position: 74 Data: TypedValue[it=28902,v={4,test,test1,006ba1e4-666f-4b88-9e6e-ddaa8890c0e9,7}]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the error which i am getting. My doubt is that with what i need to cast this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also one more thing is we have tables where the UUID is the primary of the tables in Postgre where we need to try that as i am not sure how this works.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85485?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 05:57:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a1b1565-2b70-4175-b069-935b234664d5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think we need to divide and conquer.&lt;/p&gt;
&lt;p&gt;Please create a simple table with a UUID field, map it to text in the XSD and check whether this works.&lt;/p&gt;
&lt;p&gt;Next, there seems to be an issue with your JPA annotations. How did your create the DB schema? How did you create the CDTs? Which JPA annotations do you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85481?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 05:02:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7fb1f684-9423-449b-b2bf-6d2eb9921188</guid><dc:creator>harshav420</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here are the logs&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;2021-09-04 16:53:42,950 [ajp-nio-0.0.0.0-8009-exec-7436] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;Challenge&amp;quot; does not exist
  Position: 311
2021-09-04 16:56:12,964 [ajp-nio-0.0.0.0-8009-exec-7438] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: relation &amp;quot;Asset&amp;quot; does not exist
  Position: 611
&lt;br /&gt;&lt;br /&gt;However we do have the tables which are showing as doest not exist. please help.&lt;/pre&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85472?ContentTypeID=1</link><pubDate>Sat, 04 Sep 2021 13:22:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e54319bc-811b-4ad0-bd1f-9adbb52e2842</guid><dc:creator>harshav420</dc:creator><description>&lt;p&gt;Not really, May be will check on Monday and will let you know  , any thoughts in the meantime pls&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85470?ContentTypeID=1</link><pubDate>Sat, 04 Sep 2021 10:59:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87115eec-00fe-4bc5-a81e-fa400bd311ab</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you check the logfile tomcat stdout? It might show more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85469?ContentTypeID=1</link><pubDate>Sat, 04 Sep 2021 06:11:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b24faf88-2df4-4a98-87ab-39fe075204d5</guid><dc:creator>harshav420</dc:creator><description>&lt;p&gt; , &lt;/p&gt;
&lt;p&gt;Yes we did. The entity mapping verified. However when we tried the query entity for this DSE, we were getting unexpected error. The error itself is saying unexpected error. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Postgres SQL Insertion of data and fetching the data</title><link>https://community.appian.com/thread/85464?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 13:46:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e418886-f171-4e74-bb0f-0aedb77ce304</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you try to map the UUID field to text in the XSD file using JPA annotations?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>