cancel
Showing results for 
Search instead for 
Did you mean: 

Exception on deleting historic entries with history level 3

mdond
Champ in-the-making
Champ in-the-making
I have changed the history level to 3 (full).
Now when I delete a historic process instance with:

actHistoryService.deleteHistoricProcessInstance(process.getWfeProcessId());

I get the following error:
### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for org.activiti.engine.impl.persistence.entity.HistoricDetailEntity.selectByteArrayById_postgres
        at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:77
)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:69


Is there anything I can do about this?

The used version is activiti 5.5

cheers,
Maarten
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
What version of activiti are you using? I remember fixing such a bug in 5.5…

mdond
Champ in-the-making
Champ in-the-making
Ah, I just added the version in my previous post. It's 5.5.

So I should check 5.6?

frederikherema1
Star Contributor
Star Contributor
Found the commit:

*2768 5/18/11 9:43 AM 1 frederikheremans Fixing error when full history is enabled on postgres

So indeed, use the 5.6 release Smiley Wink

mdond
Champ in-the-making
Champ in-the-making
Sounds good. I'll give it a try.