cancel
Showing results for 
Search instead for 
Did you mean: 

duplicated key in act_ru_variable_pkey

aachkar
Champ in-the-making
Champ in-the-making
We are using activiti engine in a singleton Ejb, running in Glassfish3 against PostgreSQL. Sometimes we get an error when completing a task.

### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: llave duplicada viola restricción de unicidad «act_ru_variable_pkey»
### The error may involve org.activiti.persistence.insertVariableInstance-Inline
### The error occurred while setting parameters
### Cause: org.postgresql.util.PSQLException: ERROR: llave duplicada viola restricción de unicidad «act_ru_variable_pkey»

This error appears in differents tables every time and seems to be a problem with the field next.dbid in act_ge_property.

We solve this by restarting the server. This time we had to increment next.dbid manually besides restarting the server, to keep working,.

We'd like to know if there is a permanent solution to this problem.

Thanks
8 REPLIES 8

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Activiti 1.9 is not supported anymore…

aachkar
Champ in-the-making
Champ in-the-making
We are using Activiti 5.3

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
can you try with 5.7?

aachkar
Champ in-the-making
Champ in-the-making
I'll try it and let you know.

Thanks

aachkar
Champ in-the-making
Champ in-the-making
Same problem with 5.7, any ideas?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
did you also use a new config? afaik, 5.7. can use a new way of generating id's but not sure how/when it is used

aachkar
Champ in-the-making
Champ in-the-making
What do you mean with a new config?

If you mean to the activiti.cfg.xml, the answer is no, I've used the same config.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Yep, that is what I meant.

http://jira.codehaus.org/browse/ACT-789