Foreign Key Constraint Fails while activiti tries to end some execution.

Description

  1.  

    1.  

      1. Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`activiti_schema`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`))↵### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline↵### The error occurred while setting parameters↵### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ?↵### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`activiti_schema`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`)). Error Code:1502865123638"

Environment

None

Status

Assignee

Bassam Al-Sarori

Reporter

akshay_rivigo

Affects versions

5.22

Priority

Highest
Configure