<?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>Error when trying to save a CDT to DB</title><link>https://community.appian.com/discussions/f/general/8216/error-when-trying-to-save-a-cdt-to-db</link><description>I am getting the following error when trying to save a CDT to DB: There is a problem with task “Write to Request Detail” in the process “WMG GBL Save Request Details”. An error occurred while trying to write to the entity “WMG_GBL_FEE_SETUP” [id=566906b6</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34478?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 05:19:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d4bdca7-638b-4530-8040-57e9955ff638</guid><dc:creator>mohamedb</dc:creator><description>A resolution for this is to delete the row; then to re-insert it again. If the database generated primary key does not matter.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34475?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 04:01:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2cdc0fac-5ade-480b-ab2b-1e3e2efd22fe</guid><dc:creator>mohamedb</dc:creator><description>Well, it seems like those columns are autogenerated by appian for nested CDTs inside the main CDT. When we try to *update* the main CDT it throws that error. Not sure if the same will happen on an *Insert*.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34474?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:59:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28f60298-dc99-4854-8ea9-0966408afeaf</guid><dc:creator>narasimhaadityac</dc:creator><description>One more reason I am suspecting could be that.. there might be any trigger that is present on your table which might be trying to insert to the other table and which was causing an issue, can you please verify that aspect as well, if there are any triggers present on your entity you are trying to update in Oracle?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34473?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:56:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b8925dd-4fe2-4232-9260-451be8f7332a</guid><dc:creator>narasimhaadityac</dc:creator><description>Could you please verify if these two columns are defined as not null able ?&lt;br /&gt;SELECT  *   FROM    ALL_TAB_COLUMNS WHERE   COLUMN_NAME IN ()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34471?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:48:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03938050-3305-4c84-a8ea-1e3ee7d2f534</guid><dc:creator>mohamedb</dc:creator><description>Not at all, those columns are not in the CDT.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34470?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:44:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4aae4ab-cf0f-4bfa-b31c-0ae3d8ef30c1</guid><dc:creator>narasimhaadityac</dc:creator><description>Could you please check your CDT if these two columns are used. if yes then whether the data provided for those columns already exists in the database table?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34469?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:42:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9dc232e4-dd01-456a-967a-20a35cca4438</guid><dc:creator>mohamedb</dc:creator><description>Hi narasimhaadityac, thanks for your help. This is the output. It is automatically generated I guess. Do you know how to resolve this problem?&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/2313.Capture.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/2313.Capture.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34468?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:33:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bdd84fd4-7b7b-48ea-85b2-a74ed53ed850</guid><dc:creator>narasimhaadityac</dc:creator><description>Hi Mohamed, Please try to execute the below query in your oracle database &lt;br /&gt;SELECT  *   FROM    ALL_CONS_COLUMNS WHERE   CONSTRAINT_NAME = &amp;#39;SYS_C0084174&amp;#39;&lt;br /&gt;This should give you the exact column which is throwing the error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34467?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 03:16:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ec429b7-d8c6-4ab2-8610-953fd57f9e8a</guid><dc:creator>sonalk</dc:creator><description>Hi Mohamed,&lt;br /&gt;It looks like you are inserting a new record instead of overwriting the existing one, due to which the error occurs. &lt;br /&gt;Are you using the stored values of the &amp;quot;Write to database&amp;quot; node and storing into the CDT to get the latest primary key  ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to save a CDT to DB</title><link>https://community.appian.com/thread/34464?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 02:51:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4747b6d5-7fd9-419b-a453-1047d996ef7b</guid><dc:creator>mohamedb</dc:creator><description>...nd then resume.  &lt;br /&gt;Priority of this problem: High Priority&lt;br /&gt;&lt;br /&gt;The CDT allows all fields to be Nillable except for the primary key.&lt;br /&gt;&lt;br /&gt;It also has two columns:&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;insAllocationIncome_int&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element maxOccurs=&amp;quot;unbounded&amp;quot; minOccurs=&amp;quot;0&amp;quot; name=&amp;quot;methodOfChargingFee_txt&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;Not sure if they are causing the problem.&lt;br /&gt;&lt;br /&gt;Have anyone encountered the same problem?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>