How to delete Camunda Incident


#1

Hello Dear Camunders,

I would like to ask I hope a very trivial question, how to handle incidents which doesn’t belong to any process instance nor definition.

E.G.
My database shows 2 incidents:


Cockpit shows 0 incidents

How am I supposed to delete these incidents?

Thank you for any support

M.


#2

Hi,

You can resolve the incidents by RuntimeService#resolveIncident or Rest API:
https://docs.camunda.org/manual/7.10/reference/rest/incident/resolve-incident/


#3

Hello Yana,

First of all thank you for the response

I have tried the rest Rest API solution and unfortunately got the following


#4

Hi,

This means that the incident was create due to failing job, which I assume is from a batch execution.
You can verify that in Batch view in Cockpit:
https://docs.camunda.org/manual/7.10/webapps/cockpit/batch/monitoring/
In case you no longer need this failed batches and the respective jobs you can delete them and the incidents will be deleted with them.


#5

Thank you @Yana