DMN Table error

I generated the DMN file by the Camunda Modeler. After, I test my file in DMN Simulator (Camunda DMN-Simulator).


It displays this error:

I don’t understand this error. Can you help me ?

You DMN table has hit policy set to ‘U’ = ‘Unique’. That means only one rule can be valid.
But for input value of 10.000 two rules are valid, rules 2 and 3.
That’s a violation of your DMN table definiton.
Either check your rules or use a different hit policy.

See https://docs.camunda.org/manual/7.6/reference/dmn11/decision-table/hit-policy/ for more about this.

2 Likes

I changed the hit policy to ‘F’ = ‘FIRST’ and I modified the inputs values by Camunda Modeler.
This is th code:

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

< definitions xmlns=“http://www.omg.org/spec/DMN/20151101/dmn.xsd” id=“definitions_04pql92” name=“definitions” namespace=“http://camunda.org/schema/1.0/dmn”>
< decision id=“decision” name=“Amount Decision”>
< decisionTable id=“decisionTable” hitPolicy=“FIRST”>
< input id=“input1” label=“amout”>
< inputExpression id=“inputExpression1” typeRef=“long” />
< /input>
< output id=“output1” label=“decision” name=“” typeRef=“string”>
< outputValues id=“UnaryTests_1nyfelw”>< text>< ![CDATA[“good”,“normal”,“excellent”]]>< /text>< /outputValues>
< /output>
< rule id=“row-664529691-1”>
< inputEntry id=“UnaryTests_0tlt8o9”>< text>< ![CDATA[<= 6000]]>< /text>< /inputEntry>
< outputEntry id=“LiteralExpression_1pinjho”>< text>< ![CDATA[“normal”]]>< /text>< /outputEntry>
< /rule>
< rule id=“row-664529691-2”>
< inputEntry id=“UnaryTests_03dehex”>< text>[6001…9999]< /text>< /inputEntry>
< outputEntry id=“LiteralExpression_029w4xg”>< text>< ![CDATA[“good”]]>< /text>< /outputEntry>
< /rule>
< rule id=“row-664529691-3”>
< inputEntry id=“UnaryTests_0s1vtqa”>< text>10000< /text>< /inputEntry>
< outputEntry id=“LiteralExpression_0fgmfhc”>< text>< ![CDATA[“excellent”]]>< /text>< /outputEntry>
< /rule>
< /decisionTable>
< /decision>
< /definitions>

In the simulator, I verified my table:


It displays this error:

I don’t undetstand the error.

Hi @fatma_wings
I am able to execute your table within the DMN Simulator without issues.
This was maybe a temporary issue with the online DMN Simulator, can you retry?

Best
Felix

Hi @felix-mueller,
Thank you so much, it works very good in private navigator (Chrome).

Best,
fatrma_wings

1 Like