AnsweredAssumed Answered

Cannot insert duplicate key

Question asked by al_lv on Jul 14, 2011
Latest reply on Aug 5, 2011 by jbarrez
Hallo,
I get this message afte runing my workflow.

Cannot insert duplicate key row in object 'ACT_RU_EXECUTION' with unique index 'ACT_UNIQ_RU_BUS_KEY'.

this a part of a staktrace:

INFO: Email task was succesfully completed.
14.07.2011 15:41:09 org.activiti.engine.impl.interceptor.CommandContext close
SCHWERWIEGEND: Error while closing command context
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database.  Cause: java.sql.SQLException: Cannot insert duplicate key row in object 'ACT_RU_EXECUTION' with unique index 'ACT_UNIQ_RU_BUS_KEY'.
### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.insertExecution-Inline
### The error occurred while setting parameters
### Cause: java.sql.SQLException: Cannot insert duplicate key row in object 'ACT_RU_EXECUTION' with unique index 'ACT_UNIQ_RU_BUS_KEY'.
   at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
   at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:100)


I cann't understand what it wants and how can I fix it.
It happend with fresh builded database also.
I use activiti 5.6 and MsSQL.
Please help

Thanks

Alexej

Outcomes