<?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>Can&amp;#39;t Insert Null into DB</title><link>https://community.appian.com/discussions/f/process/8739/can-t-insert-null-into-db</link><description>I&amp;#39;m getting the following error when using the &amp;quot;Write to Data Store Entity&amp;quot; smart service. All my variables have nillable = true. Any suggestions? There is a problem with task “Add Budget Details to DB” in the process “TVP_App_Budget”. An error occurred</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38758?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2016 10:05:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8375fd88-e268-4c25-ab30-d87c4522445f</guid><dc:creator>aloks0189</dc:creator><description>Happy to help&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38737?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 20:49:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d0f864e-1b35-4507-95dd-b51dd6794091</guid><dc:creator>zrizvi</dc:creator><description>hi all,&lt;br /&gt;&lt;br /&gt;i dropped the table and recreated with the new XSD that had the primary key. this time appian didn&amp;#39;t create A_ID. &lt;br /&gt;&lt;br /&gt;i initially created the table without a PK which is why this issue occurred.&lt;br /&gt;&lt;br /&gt;I thank everyone for their prompt help on this issue.&lt;br /&gt;&lt;br /&gt;Many thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38730?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 16:05:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f2f0f04-e815-49df-a8be-36b94700b62e</guid><dc:creator>Stefan Helzle</dc:creator><description>Any chance you created the DB table first without the ID field? The Appian created the A_ID field on its own. Then as you added your ID field this A_ID is still left in the table and causes this error. Please check this and remove the A_ID field in the DB table.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38727?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 14:42:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28f8ccd6-686e-41a7-97bc-153ebdf6e3d4</guid><dc:creator>zrizvi</dc:creator><description>@kondetiv attached is the xsd. please let me know your thoughts. thank you.&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/14/TVP_5F00_App_5F00_Budget.xsd"&gt;TVP_App_Budget.xsd&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38722?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 10:55:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5519eae-85d0-4f1c-8a7b-0d769d68974f</guid><dc:creator>pavanik</dc:creator><description>@rizviz...&lt;br /&gt;The problem might be, one of the columns in your DB is not null constraint.You are trying to insert null into that column.Just check your DB and uncheck that not null constraint.I hope it will work fine.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38720?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 08:54:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84aa28f0-bf1c-40e6-a264-555c4efc9433</guid><dc:creator>aloks0189</dc:creator><description>@rizviz org.hibernate.exception.ConstraintViolationException always appears if you want to insert a row with a value in a column having a unique index or constraint, and the inserted value for this column already exists in an other row. And you are getting error code ORA-01400 that means you are working with Oracle database, And Oracle Database Does not support AUTO_INCREMENT Strategy. As per my understanding the column A_id is AUTO_INCREMENT Type, i recommend you drop your existing Table, try correcting your XSD, as JPA Clear mention that AUTO_INCREMENT not supported by Oracle DB but Oracle supports Sequence generation.&lt;br /&gt;&lt;br /&gt;And please have a look on Complete specification and resolution of error Code ORA-01400 at this Link:- http://www.dba-oracle.com/t_ora_01400_cannot_insert_null.htm &lt;br /&gt;&lt;br /&gt;I Hope this can help you to resolve the issue&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38719?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 07:32:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:224ad80f-dd42-4807-91a9-865f0505d1ad</guid><dc:creator>Dastagiri Dudekula</dc:creator><description>Try manually assigning empty double quotes for the variable which are assigned null in the above error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38717?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 05:36:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6649a063-620d-42c6-90dc-670f1715f11d</guid><dc:creator>kondetiv</dc:creator><description>Could you please attach xsd file here?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38713?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 01:21:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34abf2f8-1004-4730-990f-f3258ec79577</guid><dc:creator>ChristineLHutchison</dc:creator><description>A_id is different than the Id column you have here. A_id is auto. Rested by Appian when you publish a cdt to create table without identifying @ID in your xsd. Is it possible you published, then made a change? You may want to drop your table and try publishing again.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38712?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2016 23:46:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4012c4b-b444-446f-935a-5fa78ae41b2c</guid><dc:creator>zrizvi</dc:creator><description>yes it was, as follows: &lt;br /&gt;&lt;br /&gt;&amp;lt;xsd:element name=&amp;quot;id&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&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;@Id @GeneratedValue&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38711?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2016 23:35:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef7e556a-d307-43c7-be94-aa0e32d242ea</guid><dc:creator>abhinavg712</dc:creator><description>Is this A_ID  primary key was annotated with a @GenereratedValue&lt;br /&gt;&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: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38710?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2016 23:17:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d2f675f-a236-40e9-aa3d-6432bb770eef</guid><dc:creator>zrizvi</dc:creator><description>thanks.. its giving the same error when I specify an A_ID. Also, A_ID should accept null values as per the forum guide you sent says &amp;quot;You must designate a field in the CDT as your record ID (primary key) and specify an existing value, or the data written is always inserted as a new record.&amp;quot;&lt;br /&gt;&lt;br /&gt;Shouldn&amp;#39;t this data be written as a new record if the primary key is null? &lt;br /&gt;&lt;br /&gt;Thanks for your help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't Insert Null into DB</title><link>https://community.appian.com/thread/38709?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2016 23:09:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7db7672c-13c9-47ca-a6db-9473202462a5</guid><dc:creator>abhinavg712</dc:creator><description>The error occurs when you try to insert a NULL value in a column A_ID that does not accept NULL values.  &lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.10/Write_to_Data_Store_Entity_Smart_Service.html"&gt;forum.appian.com/.../Write_to_Data_Store_Entity_Smart_Service.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>