<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206962#M160092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Activiti Team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Today, we faced this problem in production for the first time and not get repeating. There are 2 ASync usertasks as part of my process. When userTask1 is completed, and during userTask2 creation time, got the exception as below and hence userTask2 is not persisted in database. Surprisingly, though parent execution is still persists in database, I got this exception. Generally parent execution entity(in ACT_RU_EXECUTION) row don't hold ACT_ID_ data. But surprisingly during debug, what I observed with parent execution record consists of userTask2 taskDefId in ACT_ID_ column. Can someone throw some light to debug further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I am using activiti version 5.17 and ORACLE database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Log messages goes here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:blue;"&gt;&lt;BR /&gt;15-Jun-2015[14:05:28.241]::ERROR:&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ool-1-thread-103:&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable:96 - exception during job execution:&lt;BR /&gt;### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found&lt;BR /&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.insertExecution-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: insert into ACT_RU_EXECUTION (ID_, REV_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_, ACT_ID_, IS_ACTIVE_, IS_CONCURRENT_, IS_SCOPE_,IS_EVENT_SCOPE_, PARENT_ID_, SUPER_EXEC_, SUSPENSION_STATE_, CACHED_ENT_STATE_, TENANT_ID_, NAME_) values ( ?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )&lt;BR /&gt;### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found&lt;BR /&gt;org.apache.ibatis.exceptions.PersistenceException:&lt;BR /&gt;### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found&lt;BR /&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.insertExecution-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: insert into ACT_RU_EXECUTION (ID_, REV_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_, ACT_ID_, IS_ACTIVE_, IS_CONCURRENT_, IS_SCOPE_,IS_EVENT_SCOPE_, PARENT_ID_, SUPER_EXEC_, SUSPENSION_STATE_, CACHED_ENT_STATE_, TENANT_ID_, NAME_) values ( ?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )&lt;BR /&gt;### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found&lt;BR /&gt;at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)&lt;BR /&gt;at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:147)&lt;BR /&gt;at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:134)&lt;BR /&gt;at org.activiti.engine.impl.db.DbSqlSession.flushInserts(DbSqlSession.java:761)&lt;BR /&gt;at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:593)&lt;BR /&gt;at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:211)&lt;BR /&gt;at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:137)&lt;BR /&gt;at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)&lt;BR /&gt;at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;BR /&gt;at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)&lt;BR /&gt;at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;BR /&gt;at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;BR /&gt;at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;BR /&gt;at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)&lt;BR /&gt;at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.handleMultipleJobs(ExecuteJobsRunnable.java:94)&lt;BR /&gt;at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:49)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt;Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found&lt;BR /&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)&lt;BR /&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)&lt;BR /&gt;at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)&lt;BR /&gt;at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)&lt;BR /&gt;at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)&lt;BR /&gt;at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)&lt;BR /&gt;at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)&lt;BR /&gt;at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1044)&lt;BR /&gt;at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1329)&lt;BR /&gt;at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3584)&lt;BR /&gt;at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3685)&lt;BR /&gt;at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1376)&lt;BR /&gt;at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;BR /&gt;at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:230)&lt;BR /&gt;at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)&lt;BR /&gt;at com.sun.proxy.$Proxy52.execute(Unknown Source)&lt;BR /&gt;at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:41)&lt;BR /&gt;at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:66)&lt;BR /&gt;at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:45)&lt;BR /&gt;at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:108)&lt;BR /&gt;at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75)&lt;BR /&gt;at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:145)&lt;BR /&gt;… 17 more &lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Swamy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 14:19:11 GMT</pubDate>
    <dc:creator>swamy2156</dc:creator>
    <dc:date>2015-06-16T14:19:11Z</dc:date>
    <item>
      <title>integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206962#M160092</link>
      <description>Hello Activiti Team,Today, we faced this problem in production for the first time and not get repeating. There are 2 ASync usertasks as part of my process. When userTask1 is completed, and during userTask2 creation time, got the exception as below and hence userTask2 is not persisted in database. Su</description>
      <pubDate>Tue, 16 Jun 2015 14:19:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206962#M160092</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2015-06-16T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206963#M160093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ACT_RU_EXECUTION table entry for parent execution as follows.(in CSV) for failed execution creation for the above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"ID_","REV_","PROC_INST_ID_","BUSINESS_KEY_","PARENT_ID_","PROC_DEF_ID_","SUPER_EXEC_","ACT_ID_","IS_ACTIVE_","IS_CONCURRENT_","IS_SCOPE_","IS_EVENT_SCOPE_","SUSPENSION_STATE_","CACHED_ENT_STATE_","TENANT_ID_","NAME_","LOCK_TIME_"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"67c0eb05-1391-11e5-b698-020030001d11","3","67c0eb05-1391-11e5-b698-020030001d11","","","activiti_process:3:39d5e0f6-0479-11e5-aad9-020030001c46","","userTask2Def","1","0","1","0","1","0","","",""&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:24:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206963#M160093</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2015-06-16T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: integrity constraint (ACT_FK_EXE_PARENT) violated - parent key not found</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206964#M160094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reporting the issue. But if it's not reproducible it's really hard to be able to solve this issue. If you know how to reproduce the issue or have more information about the context in which it happens we can look into it in more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:43:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrity-constraint-act-fk-exe-parent-violated-parent-key-not/m-p/206964#M160094</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-06-17T10:43:00Z</dc:date>
    </item>
  </channel>
</rss>

