<?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>How to Update CDT</title><link>https://community.appian.com/discussions/f/new-to-appian/22128/how-to-update-cdt</link><description>So I recently deleted some rows of my table from the Cloud Database and using a process model, I tried to enter user values via a form. The primary key in my table is ID and the rows that I deleted had ID&amp;#39;s = 4, 5 
 When I entered new values via a form</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Update CDT</title><link>https://community.appian.com/thread/86751?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 14:42:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b041b8f-6de7-4074-8b5e-cb6ddd98f787</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;&lt;span&gt;To add, from a design perspective, this is why we use constants for our user-facing identifiers (such as Request Number #), which we can control via Appian with the Increment Constant node, and manual updates when necessary, leaving the database ID to only be used as the primary key, thus not mattering in user interface/reporting what this value is, if it skips sections due to removals etc - since as noted it can only be reset on the DB side.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Update CDT</title><link>https://community.appian.com/thread/86715?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 03:21:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ddfd9450-3507-4b92-9b12-659b1bcb1730</guid><dc:creator>dreamyoung</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1633576882731v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hello leonclintonc,&lt;/p&gt;
&lt;p&gt;From the Cloud database, go to operation and adjust the auto_increment box to.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Update CDT</title><link>https://community.appian.com/thread/86698?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 17:55:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9da2a768-8c2c-440e-a253-2c79b447b87f</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you provide more context on why you want to do this? In general it&amp;#39;s a good idea to not reuse the same ID after you delete it because each unique identifier should only be used once. Just as an example - suppose you created another table and referred to the ID in this table with a foreign key. If you reuse the same ID, it&amp;#39;s unclear if the foreign key refers to the original value or the new value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Update CDT</title><link>https://community.appian.com/thread/86657?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 04:56:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85ffdff8-03ab-45a1-b120-abe933ff730a</guid><dc:creator>leonclintonc</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/Screenshot-_2800_382_2900_.png" /&gt;As you can see, when I created a new record here, its ID started as 11 and not as ID = 9, because I had deleted 2 records earlier, so how do I change my ID = 11 to ID = 9 so that my next entries go accordingly ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Update CDT</title><link>https://community.appian.com/thread/86656?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 04:22:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0564ac9f-9f7c-405f-8296-f6549eae595c</guid><dc:creator>Aditya</dc:creator><description>&lt;p&gt;You have to make changes in the database table itself. Reset your autoincrement to 4 using the following statement (for MariaDB):&lt;/p&gt;
&lt;p&gt;ALTER TABLE table_name AUTO_INCREMENT = 4;&lt;/p&gt;
&lt;p&gt;Make this statement part of your delete query&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>