Cannot instantiate process definition: no decision definition deployed with key and tenant-id: decisionDefinition is null [ start-instance-error ]

I created a simple BPMN and DMN about users and password login. If both username and password are correct, assign the role based on the Then column DMN. In the BPMN, move forward to the Exclusive Gateway and then follow the Sequence Flow based on the role assigned after the DMN task.

I try to deploy the BPMN linked with the DMN and I get this error message:
Cannot instantiate process definition User_Process:8:3756967d-dc5b-11ee-b8a4-0a0027000008: no decision definition deployed with key ‘dmn_user’ and tenant-id ‘dmn_user’: decisionDefinition is null [ start-instance-error ]
Filenames:
BPMN: diagram_user.bpmn
DMN: dmn_user.bpmn

How do I fix this error?

Hi @Fadhil_Mulyono and welcome to the forum.
On first view I find it strange, that your DMN is looked up with tenant-id ‘dmn_user’.
Did you really deploy it that way (with this tenant id)?
And please otherwise show the xml content of the DMN and the BPMN (is the key correctly set?).

This is my XML of the BPMN

<?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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1wxxgzv" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0">
  <bpmn:collaboration id="Collaboration_1meoeyr">
    <bpmn:participant id="Participant_09zucju" name="Login User" processRef="login_user" />
  </bpmn:collaboration>
  <bpmn:process id="login_user" isExecutable="true" camunda:historyTimeToLive="180">
    <bpmn:startEvent id="StartEvent_1" name="Login" camunda:formRef="login_user" camunda:formRefBinding="latest">
      <bpmn:outgoing>Flow_0oz6b5h</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:businessRuleTask id="user_login" name="User Login" camunda:resultVariable="Role" camunda:decisionRef="user_login" camunda:mapDecisionResult="singleEntry">
      <bpmn:incoming>Flow_0oz6b5h</bpmn:incoming>
      <bpmn:outgoing>Flow_110awrc</bpmn:outgoing>
    </bpmn:businessRuleTask>
    <bpmn:exclusiveGateway id="Gateway_0v9hnjz" name="Assign Roles">
      <bpmn:incoming>Flow_110awrc</bpmn:incoming>
      <bpmn:outgoing>Flow_gudang</bpmn:outgoing>
      <bpmn:outgoing>Flow_toko</bpmn:outgoing>
      <bpmn:outgoing>Flow_14ms1pe</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:userTask id="Activity_0c6sjew" name="Toko">
      <bpmn:incoming>Flow_toko</bpmn:incoming>
      <bpmn:outgoing>Flow_1ju95ej</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:userTask id="Activity_0cao2bh" name="Gudang">
      <bpmn:incoming>Flow_gudang</bpmn:incoming>
      <bpmn:outgoing>Flow_1ofocw7</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:sequenceFlow id="Flow_0oz6b5h" sourceRef="StartEvent_1" targetRef="user_login" />
    <bpmn:sequenceFlow id="Flow_110awrc" sourceRef="user_login" targetRef="Gateway_0v9hnjz" />
    <bpmn:sequenceFlow id="Flow_gudang" name="Role = Gudang" sourceRef="Gateway_0v9hnjz" targetRef="Activity_0cao2bh">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${role == "gudang"}</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="Flow_toko" name="Role = Toko" sourceRef="Gateway_0v9hnjz" targetRef="Activity_0c6sjew">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${role == "toko"}</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="Flow_14ms1pe" sourceRef="Gateway_0v9hnjz" targetRef="Event_18bpc8z" />
    <bpmn:sequenceFlow id="Flow_1ofocw7" sourceRef="Activity_0cao2bh" targetRef="Event_18bpc8z" />
    <bpmn:sequenceFlow id="Flow_1ju95ej" sourceRef="Activity_0c6sjew" targetRef="Event_18bpc8z" />
    <bpmn:endEvent id="Event_18bpc8z">
      <bpmn:incoming>Flow_1ofocw7</bpmn:incoming>
      <bpmn:incoming>Flow_1ju95ej</bpmn:incoming>
      <bpmn:incoming>Flow_14ms1pe</bpmn:incoming>
    </bpmn:endEvent>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1meoeyr">
      <bpmndi:BPMNShape id="Participant_09zucju_di" bpmnElement="Participant_09zucju" isHorizontal="true">
        <dc:Bounds x="129" y="60" width="591" height="360" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="179" y="219" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="184" y="262" width="27" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0kuma7b_di" bpmnElement="user_login">
        <dc:Bounds x="310" y="197" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_0v9hnjz_di" bpmnElement="Gateway_0v9hnjz" isMarkerVisible="true">
        <dc:Bounds x="485" y="212" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="438" y="203" width="64" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_13qff1y_di" bpmnElement="Activity_0c6sjew">
        <dc:Bounds x="590" y="80" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0kf5t7h" bpmnElement="Activity_0cao2bh">
        <dc:Bounds x="590" y="320" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_18bpc8z_di" bpmnElement="Event_18bpc8z">
        <dc:Bounds x="622" y="219" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0oz6b5h_di" bpmnElement="Flow_0oz6b5h">
        <di:waypoint x="215" y="237" />
        <di:waypoint x="310" y="237" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_110awrc_di" bpmnElement="Flow_110awrc">
        <di:waypoint x="410" y="237" />
        <di:waypoint x="485" y="237" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1h4qg3h_di" bpmnElement="Flow_gudang">
        <di:waypoint x="510" y="262" />
        <di:waypoint x="510" y="360" />
        <di:waypoint x="590" y="360" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="502" y="373" width="75" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0cl5ku4_di" bpmnElement="Flow_toko">
        <di:waypoint x="510" y="212" />
        <di:waypoint x="510" y="120" />
        <di:waypoint x="590" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="520" y="103" width="59" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_14ms1pe_di" bpmnElement="Flow_14ms1pe">
        <di:waypoint x="535" y="237" />
        <di:waypoint x="622" y="237" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1ofocw7_di" bpmnElement="Flow_1ofocw7">
        <di:waypoint x="640" y="320" />
        <di:waypoint x="640" y="255" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1ju95ej_di" bpmnElement="Flow_1ju95ej">
        <di:waypoint x="640" y="160" />
        <di:waypoint x="640" y="219" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

This is the XML of my DMN

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="dmn_user" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0">
  <decision id="user_login" name="Get User Login">
    <decisionTable id="DecisionTable_1al1udv">
      <input id="Input_1" label="Username" camunda:inputVariable="username">
        <inputExpression id="InputExpression_1" typeRef="string">
          <text></text>
        </inputExpression>
        <inputValues id="UnaryTests_0znfcxi">
          <text>"gudang","supergudang","toko","supertoko"</text>
        </inputValues>
      </input>
      <input id="InputClause_0j42fdr" label="Password" camunda:inputVariable="password">
        <inputExpression id="LiteralExpression_039t277" typeRef="string">
          <text></text>
        </inputExpression>
        <inputValues id="UnaryTests_156sr2f">
          <text>"gudang","supergudang","toko","supertoko"</text>
        </inputValues>
      </input>
      <output id="Output_1" label="Role" name="role" typeRef="string">
        <outputValues id="UnaryTests_0cksdv4">
          <text>"gudang","toko"</text>
        </outputValues>
      </output>
      <rule id="DecisionRule_1gu0guy">
        <inputEntry id="UnaryTests_1fejjga">
          <text>"gudang"</text>
        </inputEntry>
        <inputEntry id="UnaryTests_1s7hy5r">
          <text>"gudang"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0mlaexu">
          <text>"gudang"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1u96bfy">
        <inputEntry id="UnaryTests_1kzprm7">
          <text>"supergudang"</text>
        </inputEntry>
        <inputEntry id="UnaryTests_0kd95ln">
          <text>"supergudang"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0ywtbzj">
          <text>"gudang"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1ef2aib">
        <inputEntry id="UnaryTests_1h9zxb5">
          <text>"toko"</text>
        </inputEntry>
        <inputEntry id="UnaryTests_09vlmsx">
          <text>"toko"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0li049u">
          <text>"toko"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_0j7jrc1">
        <inputEntry id="UnaryTests_0bz76oz">
          <text>"supertoko"</text>
        </inputEntry>
        <inputEntry id="UnaryTests_0n2oxci">
          <text>"supertoko"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_1ckjb8m">
          <text>"toko"</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI>
    <dmndi:DMNDiagram>
      <dmndi:DMNShape dmnElementRef="user_login">
        <dc:Bounds height="80" width="180" x="160" y="100" />
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </dmndi:DMNDI>
</definitions>

The naming and referencing looks correct.
How do you deploy the BPMN and DMN?
Can you see that both are deployed correctly (e.g. via the cockpit or database)?

I deployed the BPMN and DMN into a running REST Camunda API. When trying to run I get this error message. I provided the needed files that caused the problem. Please check the files and try to investigate the cause of my error.
bpmn_user.bpmn (6.4 KB)
dmn_user.dmn (3.2 KB)

Hi @Fadhil_Mulyono.

Don’t know if you still have the problem.
I deployed your process and decision definition and was able to start it without a problem (had to change the result variable on the decision call in the BPMN from “Role” to “role” but otherwise it worked).
So I’m pretty sure there is something in the way you deploy or start the process.
As I said before, for me it looks strange that it’s trying to look up the DMN under the tenant dmn_user as that is the key of the decision definition and doesn’t look like a tenant id.