<?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>Default value in database not populating</title><link>https://community.appian.com/discussions/f/general/35042/default-value-in-database-not-populating</link><description>Hi there, 
 
 I have created a table in the DB with a default value of current timestamp for a dateTime column. However when i try to write to it using a CDT the default column is null. 
 Table structure. 
 
 
 CDT definition. 
 
 
 Any help would be</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Default value in database not populating</title><link>https://community.appian.com/thread/135691?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 16:26:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7b92482-518c-42c7-bbc0-9af531edbb8f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;ooh, nice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default value in database not populating</title><link>https://community.appian.com/thread/135689?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 16:19:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d8f9bd3-368e-47c7-8a4b-6f817212c8a2</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;It&amp;#39;s probably of no consolation but this *does* work if you use the modern Write Records smart service i.e. the default value (for the &amp;#39;MODIFIED_ON&amp;#39; column in my test example) is set to the value of &amp;#39;&lt;span&gt;current_timestamp(6)&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default value in database not populating</title><link>https://community.appian.com/thread/135688?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 16:01:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0534bc2f-a571-4418-a836-b2879d1a9dcf</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;AFAIK the &amp;quot;default value&amp;quot; for a column (when we&amp;#39;re talking about the SQL table definition) only applies when adding that column to an existing table with existing entries - and perhaps some other aspects of directly adding new rows to the table directly via SQL commands and/or in the PHPMyAdmin interface - but it has no bearing on what happens when you create new rows in a process (nor does Appian have any insight into what the SQL &amp;quot;default&amp;quot; setting is set to).&lt;/p&gt;
&lt;p&gt;Long story short: you&amp;#39;ll need to manually populate that value when creating rows in Appian, as always.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>