<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Getting no parent SYS_FK_720 when trying to save business case data</title><link>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data</link><description>&lt;p&gt;Hi guys&lt;/p&gt;
&lt;p&gt;I am trying to save business case data inside a "script step" after a user dialog and I get the following error:&lt;/p&gt;
&lt;p&gt;Caused by: java.sql.SQLException: Integrity constraint violation - no parent SYS_FK_720 table: IWA_CASE in statement [INSERT INTO IWA_BusinessCaseData (BUSINESSDATAID, OBJECTTYPE, BUSINESSCASEID) VALUES (?, ?, ?)]&lt;/p&gt;
&lt;p&gt;Funny thing is, if I save the same data after resp. in a user task, there is no error.&lt;/p&gt;
&lt;p&gt;Thanks
John&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 11 Apr 2019 09:54:47 -0400</lastBuildDate><item><title>Answer by Stelt0</title><link>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data/3768</link><description>&lt;p&gt;Hi Ivy Team !&lt;/p&gt;
&lt;p&gt;It is the same on my side.
Those tasks that are generated every time on process start, can we somehow get rid of them? i.e. assign them to SYSTEM ?&lt;/p&gt;
&lt;p&gt;Best Regards,
Yordan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stelt0</dc:creator><pubDate>Thu, 11 Apr 2019 09:54:47 -0400</pubDate><guid>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data/3768</guid></item><item><title>Answer by xchatter</title><link>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data/3766</link><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I came across the same problem and checking the Only Wf + Persist task on the start element works, but this leads to a "Developer user" to be created which I don't need and it stays there.
Can you elaborate a bit more on the other options to avoid the error? 
My setup is that I Start the process, then I have a User Dialog, then after this I save the business case data with script(so no user tasks in between).&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xchatter</dc:creator><pubDate>Tue, 09 Apr 2019 08:30:05 -0400</pubDate><guid>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data/3766</guid></item><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data/3554</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You have first to persist your case. Just use the &lt;a href="https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-casemap"&gt;Case Map feature&lt;/a&gt; or create a task switch before your script step or set "persist task on creation" and first "Only WF users" in the start request:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Persist task on creation" src="https://answers.axonivy.com/upfiles/Screenshot_20181119_143849_AKIIH1e.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Mon, 19 Nov 2018 08:41:27 -0500</pubDate><guid>https://answers.axonivy.com/questions/3553/getting-no-parent-sys_fk_720-when-trying-to-save-business-case-data/3554</guid></item></channel></rss>