Error when delete instance

Hello, I recently decommissioned a plugin, and I now find myself wanting to also remove instances that have fallen into incident. When I want to delete the instances, I have the error:

code :

            runtimeService.deleteProcessInstances(processInstance, "Error parse", false, true);

error :

RuntimeException stackTrace: org.camunda.bpm.engine.ParseException: ENGINE-09005 Could not parse BPMN process. Errors: 
* One of the attributes 'class', 'delegateExpression', 'type', or 'expression' is mandatory on serviceTask. If you are using a connector, make sure theconnect process engine plugin is registered with the process engine.

and same problem from cockpit :
image

I tried differents ways to force the removal by skipping all attributes, nothing to do.
It is inconceivable for me to put back this plugin not knowing which I used on these instances.

Is there a way to force the deletion of these instances in error using a decommisioned plugin?

@Mavraudas can you share the bpmn file? Looks like the service task was configured wrongly

Hello, thx for you time.

Here is the XML file resulting from the deployment

<?xml version="1.0" encoding="UTF-8"?>

<bpmn:definitions xmlns:bpmn=“http://www.omg.org/spec/BPMN/20100524/MODEL” xmlns:bpmndi=“http://www.omg.org/spec/BPMN/20100524/DI” xmlns:dc=“http://www.omg.org/spec/DD/20100524/DC” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” xmlns:camunda=“http://camunda.org/schema/1.0/bpmn” xmlns:modeler=“http://camunda.org/schema/modeler/1.0” id=“Definitions_10cxnzg” targetNamespace=“http://bpmn.io/schema/bpmn” exporter=“Camunda Modeler” exporterVersion=“5.7.0” modeler:executionPlatform=“Camunda Platform” modeler:executionPlatformVersion=“7.18.0”>
<bpmn:process id=“Process_1pkp9ud” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_1”>
bpmn:outgoingFlow_1xlglp4</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id=“Event_1yt4heu”>
bpmn:incomingFlow_04mrger</bpmn:incoming>
bpmn:incomingFlow_0uf9od8</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id=“Flow_1xlglp4” sourceRef=“StartEvent_1” targetRef=“GetCase” />
<bpmn:serviceTask id=“GetCase” name=“GetCase” camunda:asyncBefore=“true”>
bpmn:extensionElements
camunda:inputOutput
<camunda:inputParameter name=“headers”>
camunda:map
<camunda:entry key=“Harmonie-SS-API-Key”>HARMONIE_SS_CASE</camunda:entry>
<camunda:entry key=“Accept”>application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name=“url”>
<camunda:script scriptFormat=“javascript”>“http://10.0.11.132:31080/ss-case/rest/case/”+ 123
+“?withCaseFamily=false&withCaseMarketList=false&withCaseThirdParties=true&withCaseParticipants=true&withAttachmentTypes=false”</camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name=“method”>get</camunda:inputParameter>
</camunda:inputOutput>
camunda:connector
camunda:connectorIdhttp-connector-case</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
bpmn:incomingFlow_1xlglp4</bpmn:incoming>
bpmn:outgoingFlow_04mrger</bpmn:outgoing><?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn=“http://www.omg.org/spec/BPMN/20100524/MODEL” xmlns:bpmndi=“http://www.omg.org/spec/BPMN/20100524/DI” xmlns:dc=“http://www.omg.org/spec/DD/20100524/DC” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” xmlns:camunda=“http://camunda.org/schema/1.0/bpmn” xmlns:modeler=“http://camunda.org/schema/modeler/1.0” id=“Definitions_10cxnzg” targetNamespace=“http://bpmn.io/schema/bpmn” exporter=“Camunda Modeler” exporterVersion=“5.7.0” modeler:executionPlatform=“Camunda Platform” modeler:executionPlatformVersion=“7.18.0”>
<bpmn:process id=“Process_1pkp9ud” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_1”>
bpmn:outgoingFlow_1xlglp4</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id=“Event_1yt4heu”>
bpmn:incomingFlow_04mrger</bpmn:incoming>
bpmn:incomingFlow_0uf9od8</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id=“Flow_1xlglp4” sourceRef=“StartEvent_1” targetRef=“GetCase” />
<bpmn:serviceTask id=“GetCase” name=“GetCase” camunda:asyncBefore=“true”>
bpmn:extensionElements
camunda:inputOutput
<camunda:inputParameter name=“headers”>
camunda:map
<camunda:entry key=“Harmonie-SS-API-Key”>HARMONIE_SS_CASE</camunda:entry>
<camunda:entry key=“Accept”>application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name=“url”>
<camunda:script scriptFormat=“javascript”>“http://10.0.11.132:31080/ss-case/rest/case/”+ 123
+“?withCaseFamily=false&withCaseMarketList=false&withCaseThirdParties=true&withCaseParticipants=true&withAttachmentTypes=false”</camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name=“method”>get</camunda:inputParameter>
</camunda:inputOutput>
camunda:connector
camunda:connectorIdhttp-connector-case</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
bpmn:incomingFlow_1xlglp4</bpmn:incoming>
bpmn:outgoingFlow_04mrger</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id=“Flow_04mrger” sourceRef=“GetCase” targetRef=“Event_1yt4heu” />
<bpmn:boundaryEvent id=“Event_0xja1nh” attachedToRef=“GetCase”>
bpmn:outgoingFlow_1yow409</bpmn:outgoing>
<bpmn:errorEventDefinition id=“ErrorEventDefinition_1eczs32” errorRef=“Error_0k8xzhk” camunda:errorCodeVariable=“Eooro” camunda:errorMessageVariable=“Eooromessage” />
</bpmn:boundaryEvent>
<bpmn:intermediateCatchEvent id=“Event_1r46dm7”>
bpmn:incomingFlow_1yow409</bpmn:incoming>
bpmn:outgoingFlow_0uf9od8</bpmn:outgoing>
<bpmn:timerEventDefinition id=“TimerEventDefinition_14o62kj”>
<bpmn:timeDuration xsi:type=“bpmn:tFormalExpression”>PT5M</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id=“Flow_1yow409” sourceRef=“Event_0xja1nh” targetRef=“Event_1r46dm7” />
<bpmn:sequenceFlow id=“Flow_0uf9od8” sourceRef=“Event_1r46dm7” targetRef=“Event_1yt4heu” />
</bpmn:process>
<bpmn:error id=“Error_0k8xzhk” name=“Error_2u4hfko” errorCode=“404” />
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“Process_1pkp9ud”>
<bpmndi:BPMNShape id=“_BPMNShape_StartEvent_2” bpmnElement=“StartEvent_1”>
<dc:Bounds x=“179” y=“79” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_1yt4heu_di” bpmnElement=“Event_1yt4heu”>
<dc:Bounds x=“842” y=“79” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“BPMNShape_0rpk82y” bpmnElement=“GetCase”>
<dc:Bounds x=“440” y=“57” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_0v2mxas_di” bpmnElement=“Event_1r46dm7”>
<dc:Bounds x=“482” y=“212” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_1g4f5bd_di” bpmnElement=“Event_0xja1nh”>
<dc:Bounds x=“482” y=“119” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“Flow_1xlglp4_di” bpmnElement=“Flow_1xlglp4”>
<di:waypoint x=“215” y=“97” />
<di:waypoint x=“440” y=“97” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_04mrger_di” bpmnElement=“Flow_04mrger”>
<di:waypoint x=“540” y=“97” />
<di:waypoint x=“842” y=“97” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_1yow409_di” bpmnElement=“Flow_1yow409”>
<di:waypoint x=“500” y=“155” />
<di:waypoint x=“500” y=“212” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0uf9od8_di” bpmnElement=“Flow_0uf9od8”>
<di:waypoint x=“518” y=“230” />
<di:waypoint x=“680” y=“230” />
<di:waypoint x=“680” y=“97” />
<di:waypoint x=“842” y=“97” />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
</bpmn:serviceTask>
<bpmn:sequenceFlow id=“Flow_04mrger” sourceRef=“GetCase” targetRef=“Event_1yt4heu” />
<bpmn:boundaryEvent id=“Event_0xja1nh” attachedToRef=“GetCase”>
bpmn:outgoingFlow_1yow409</bpmn:outgoing>
<bpmn:errorEventDefinition id=“ErrorEventDefinition_1eczs32” errorRef=“Error_0k8xzhk” camunda:errorCodeVariable=“Eooro” camunda:errorMessageVariable=“Eooromessage” />
</bpmn:boundaryEvent>
<bpmn:intermediateCatchEvent id=“Event_1r46dm7”>
bpmn:incomingFlow_1yow409</bpmn:incoming>
bpmn:outgoingFlow_0uf9od8</bpmn:outgoing>
<bpmn:timerEventDefinition id=“TimerEventDefinition_14o62kj”>
<bpmn:timeDuration xsi:type=“bpmn:tFormalExpression”>PT5M</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id=“Flow_1yow409” sourceRef=“Event_0xja1nh” targetRef=“Event_1r46dm7” />
<bpmn:sequenceFlow id=“Flow_0uf9od8” sourceRef=“Event_1r46dm7” targetRef=“Event_1yt4heu” />
</bpmn:process>
<bpmn:error id=“Error_0k8xzhk” name=“Error_2u4hfko” errorCode=“404” />
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“Process_1pkp9ud”>
<bpmndi:BPMNShape id=“_BPMNShape_StartEvent_2” bpmnElement=“StartEvent_1”>
<dc:Bounds x=“179” y=“79” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_1yt4heu_di” bpmnElement=“Event_1yt4heu”>
<dc:Bounds x=“842” y=“79” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“BPMNShape_0rpk82y” bpmnElement=“GetCase”>
<dc:Bounds x=“440” y=“57” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_0v2mxas_di” bpmnElement=“Event_1r46dm7”>
<dc:Bounds x=“482” y=“212” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_1g4f5bd_di” bpmnElement=“Event_0xja1nh”>
<dc:Bounds x=“482” y=“119” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“Flow_1xlglp4_di” bpmnElement=“Flow_1xlglp4”>
<di:waypoint x=“215” y=“97” />
<di:waypoint x=“440” y=“97” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_04mrger_di” bpmnElement=“Flow_04mrger”>
<di:waypoint x=“540” y=“97” />
<di:waypoint x=“842” y=“97” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_1yow409_di” bpmnElement=“Flow_1yow409”>
<di:waypoint x=“500” y=“155” />
<di:waypoint x=“500” y=“212” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0uf9od8_di” bpmnElement=“Flow_0uf9od8”>
<di:waypoint x=“518” y=“230” />
<di:waypoint x=“680” y=“230” />
<di:waypoint x=“680” y=“97” />
<di:waypoint x=“842” y=“97” />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

I use

image

I decommissioned this plugin.

How could I force the removal of instances using the old version of this plugin without having to go back?