DMN - Null Key for a map not allowed in Json Error

Hi,
My DMN input is integer and output is String.

When I hit with below payload. I am getting below error. Can someone help me on this ?
Payload:
{
“variables” : {
“inputValue” : { “value” : 20, “type” : “integer” }
}
}
Error:
Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) (through reference chain: java.util.ArrayList[0]->java.util.HashMap[“null”])

Reference Link: Evaluate Decision | docs.camunda.org

Can you share the DMN file?

This is the one loading in app.

adult-check.dmn (1.5 KB)

Hi @Alex_Voloshyn ,
Here I attached the file

Hi @vinothkumar
I’ve updated your DMN. Please review.adult-check-updated.dmn (1.5 KB)
The input variable should be in the expression field.
image

I would suggest you review the guide - Create a DMN Decision Table | docs.camunda.org

POST http://localhost:8080/engine-rest/engine/default/decision-definition/DefinitionID/evaluate

[
    {
        "outputValue": {
            "type": "String",
            "value": "adult",
            "valueInfo": {}
        }
    }
]
1 Like

adult-check.dmn (1.6 KB)

It is working without changing anything. Just deleted the dmn and saved the same dmn again and deployed. its is working fine. Not sure What caused issue.
Anyway thanks a lot for the update @Alex_Voloshyn