Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
13 replies
Subscribers
6 subscribers
Views
9612 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Can't Insert Null into DB
zrizvi
over 8 years ago
I'm getting the following error when using the "Write to Data Store Entity" 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 while trying to write to the entity “TVP_App_Budget” [id=3edb9a28-551e-442b-85f2-1274ed8dc3f8@8017, type=TVP_App_Budget (id=1880)] (data store: TVP_App_Budget). Details: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update: java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("BPM_BUS_DB"."tvpappbudget"."A_ID") Data: TypedValue[it=1880,v={1.0,5.0,2.0,6.0,3.0,7.0,4.0,<null>,8.0,<null>,<null>,,,<null>,206504472,<null>,<null>,<null>,,<null>,<null>,,<null>,test4,<null>,9.0,china,2016-10-17,2016-10-13,2016-10-17,testtest,3444mm,8424,<null>,22,206508903,<null>,<null>}]
OriginalPostID-244278
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 8 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zrizvi
over 8 years ago
hi all,
i dropped the table and recreated with the new XSD that had the primary key. this time appian didn't create A_ID.
i initially created the table without a PK which is why this issue occurred.
I thank everyone for their prompt help on this issue.
Many thanks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 8 years ago
Happy to help
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<