Hi there, I need to clean-up my historic datas. I want to use REST APIs. Here my scenario:
Camunda 7.6.
/history/process-instance
{
"processInstanceBusinessKey": "6768811"
}
It returns me some process datas. I map “id” field of each object. At the end, I try to delete async historic data.
/history/process-instance/delete
{
"deleteReason": "you shall not pass!",
"historicProcessInstanceIds": [
"f69f1de2-fbeb-11e9-a97b-c0b6f9ad3743",
"f7886cc4-fbeb-11e9-a97b-c0b6f9ad3743",
"f7e35e1d-fbeb-11e9-a97b-c0b6f9ad3743",
"f8203f2b-fbeb-11e9-a97b-c0b6f9ad3743",
"f849723e-fbeb-11e9-a97b-c0b6f9ad3743",
"f8e42bd5-fbeb-11e9-a97b-c0b6f9ad3743",
"f99839d9-fbeb-11e9-a97b-c0b6f9ad3743",
"faf8dac1-fbeb-11e9-a97b-c0b6f9ad3743",
"fbfabac4-fbeb-11e9-a97b-c0b6f9ad3743"
],
"historicProcessInstanceQuery": {
"finished": "true",
"finishedAfter": "2019-09-01T09:25:00"
}
}
It removed my historic data from related tables but it also inserted some exception rows.
select count(*) from act_ru_job where handler_type_ = 'historic-instance-deletion'
returns 107 new rows with exception_msg_ = No historic process instances found is empty
select count(*) from act_ge_bytearray where name_ is null or name_ = 'job.exceptionByteArray'
returns 557 new rows.
AND my app console has these warnings.
Any idea what I’m doing wrong?