Historic process instance does not exist - REST request exception

Hi together!
We are using Camunda in Version 7.7. and having problems with the deleting of historic process instances via REST.
In the first Screenshot you can see the get request, so the the id of the historic process instance is aa17b0a6-7e97-11e7-86cc-00505680f190.

Now, I want to delete the historic process instance with id aa17b0a6-7e97-11e7-86cc-00505680f190.
But the response says, that the historic process instance does not exist.

That happens with most of the historic process instances, only a few can be deleted and I don’t know where the difference is.

Have you any ideas and can describe, why that Exception appears?

Thank you so far!

Hi,

The error message returned is misleading (=> https://github.com/camunda/camunda-bpm-platform/blob/7.8.0/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/sub/history/impl/HistoricProcessInstanceResourceImpl.java#L56). The instance most likely still exists, but there is another problem. You can check the server log for stacktraces that should tell the actual issue.

Cheers,
Thorben

1 Like

Hi,

the problem was a foreign key on a table.

Thanks!
Tim