<?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>Column definition mapping &amp;#39;uniqueidentifier &amp;#39;</title><link>https://community.appian.com/discussions/f/general/8784/column-definition-mapping-uniqueidentifier</link><description>Is there any by which I can map Sql server database row with data type &amp;#39;uniqueidentifier &amp;#39; with appian column. OriginalPostID-245193</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/128812?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 17:05:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13288ec4-9e5e-4f17-8fab-ccc798da7445</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;I think &lt;span&gt;@GeneratedValue must be an INTEGER. Having GUID&amp;nbsp;as auto generated value is logically incorrect. DB won&amp;#39;t be able to generate next value on it&amp;#39;s own.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/128368?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 11:18:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9ed999c-f0be-4680-824a-9ca162188a37</guid><dc:creator>Eman Alaradi</dc:creator><description>&lt;p&gt;I have just created a stored procedure actually; I am about to test it. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/128361?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 09:14:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f496a7c4-bc71-4e24-9d8d-f742d9356519</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;This can be over-engineering but did you consider creating a Stored Procedure that does it for you? You just pass your inputs to it and leave the rest to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/128355?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 08:17:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7185bad1-c925-4d07-ad1c-45bccd55de65</guid><dc:creator>Eman Alaradi</dc:creator><description>&lt;p&gt;I couldn&amp;#39;t try this solution because the function &amp;quot;executequery&amp;quot; doesn&amp;#39;t exist. Is there an alternative to resolve this error?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/39014?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 15:57:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2bc8658b-9563-4932-b86b-e8ffe6ed4e83</guid><dc:creator>vinitl522</dc:creator><description>Hello Ajinkya, Below is the code snippet, I was able to insert value from Appian to Unique Identifier of MS SQL:&lt;br /&gt;&lt;br /&gt;executequery(cons!DATABASE, &amp;quot;INSERT INTO Employoee (&lt;br /&gt;                    AttachmentId,&lt;br /&gt;                    RequestId,&lt;br /&gt;                    CustomerId,&lt;br /&gt;                )&lt;br /&gt;                           VALUES (&lt;br /&gt;                    NEWID(),&lt;br /&gt;                    CONVERT(uniqueidentifier,&amp;#39;&amp;quot;&amp;amp;ri!RequestId&amp;amp;&amp;quot;&amp;#39;),&lt;br /&gt;                    CONVERT(uniqueidentifier,&amp;#39;&amp;quot;&amp;amp;ri!CustomerId&amp;amp;&amp;quot;&amp;#39;)&lt;br /&gt;                )&amp;quot;)&lt;br /&gt;Where both rule inputs are of type text, passed from a process model to this rule.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/39003?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 12:49:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7df9b624-4ff1-4552-8f4b-7ea1347f0c7c</guid><dc:creator>sahithip</dc:creator><description>Hi ajinkyab277,&lt;br /&gt;please refer to the forum link. This may help you.&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.3/Custom_Data_Types_from_XSD.html#Using_JPA_to_Map_to_an_RDBMS"&gt;forum.appian.com/.../Custom_Data_Types_from_XSD.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/38998?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 11:11:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:849d7c4c-bbb9-4c44-b84b-e22492c1e50f</guid><dc:creator>vinitl522</dc:creator><description>Ajinkya, If the column is autogenerated, then i believe we cannot insert in that column. But if the column is not auto generated, then i believe we can insert data, i have done it before using executesql function. Let me check if i have that code snippet,,,,, I will share it with you shortly.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/38997?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 11:04:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e46d281c-b891-431b-a834-b920278aed82</guid><dc:creator>aloks0189</dc:creator><description>@Ajinkya Bendre, as per my Understanding You can define String Data Type as uniqueIdentifier as i already have used it earlier, as shown below:-&lt;br /&gt;===========================================================================&lt;br /&gt;&lt;xsd:element name="EmployeeID" nillable="true" type="xsd:string"&gt;&lt;br /&gt;        &lt;xsd:annotation&gt;&lt;br /&gt;              &lt;xsd:appinfo source="appian.jpa"&gt;&lt;br /&gt;@Id &lt;br /&gt;@Column(name="EmployeeID",columnDefinition="VARCHAR(255)")&lt;/xsd:appinfo&gt;&lt;br /&gt;            &lt;/xsd:annotation&gt;&lt;br /&gt;   &lt;/xsd:element&gt;&lt;br /&gt;===========================================================================&lt;br /&gt;&lt;br /&gt;But in this case we cannot treat this column to be Auto Generated (i.e. @GeneratedValue), as Integer Type, in Such Cases you need to provide Unique values for that column such as Email ID, Organization Employee ID etc....&lt;br /&gt;&lt;br /&gt;Hope this will Help You&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/38995?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 10:31:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36417708-343c-4eca-96bb-dc0843b4abf9</guid><dc:creator>sridevik7401</dc:creator><description>@Ajinkya Bendre....AFAIK We cannot make string datatype as uniqueidentifier...&lt;br /&gt;&lt;br /&gt;As for the above error i could understand that you are using a string datatype as a unique identifier..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/38994?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 10:12:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36205732-29bf-4972-a488-10d420c4af34</guid><dc:creator>ajinkyab277</dc:creator><description>Hi Vinit ,&lt;br /&gt;I am trying to insert data  in Session table. In Session table, we have many columns out of which GuId is one of the column with the data type uniqueidentifier . This column gets auto-populated from a database.&lt;br /&gt;I am able to verify mapping successfully with above changes that you suggested . But when I try to write session data in database &amp;#39;Wtite to data store&amp;#39; smart service throws below error.&lt;br /&gt;&lt;br /&gt;could not load an entity: [DsReportSessionDT37737#]: &lt;br /&gt;com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when &lt;br /&gt;converting from a character string to uniqueidentifier.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/38992?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 09:19:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c1be6fd-cd2f-40c1-9744-11c00d528b0d</guid><dc:creator>vinitl522</dc:creator><description>Hello Ajinkya, If you are fetching the data from SQL Server DB, then can use string as shown in below format: &amp;lt;xsd:element name=&amp;quot;ProjectId&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Column(name = &amp;quot;ProjectId&amp;quot; columnDefinition=&amp;quot;uniqueidentifier&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;        &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Vinit.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column definition mapping 'uniqueidentifier '</title><link>https://community.appian.com/thread/38988?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 08:50:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a42e29e-bab1-4fca-9714-6d070cf1c14a</guid><dc:creator>ajinkyab277</dc:creator><description>SQL server database column (not row in above post)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>