FEEL/SCALA-01008 Error while evaluating expression JSON

Hi all!
I got error:

FEEL/SCALA-01008 Error while evaluating expression: failed to evaluate expression 'person.country': No property found with name 'country' of value 'ValNull'. Available properties:  [ start-instance-error ]

When try to start process with configuration:

{"person": { "country" : "USA"}}

And this tables configuration:

Thank you in advance!

Hey @Yakiv_Stoikov,

how exactly are you instantiating the decision evaluation? When using the REST API you’ll need to pass a “variables” object.

For me it works to send the following JSON payload

{
  "variables": {
    "person": { "value": { "country": "USA" } }
  }
}

to this REST endpoint of my local Camunda Run engine:

http://localhost:8080/engine-rest/decision-definition/key/{DecisionDefinitionKey}/evaluate

Best,
Hendrik

1 Like

@hendrik Thanks for your reply!
Could you give a few more pieces of advice?
I have BPMN process (in attachments). And I send a request with the body:

{
 "variables":{
    "person": 
        {
            "country":"USA",
            "businessId":"BUS111",
            "age":15,
            "state":"Alabama",
            "major":false    
        },
    "businessPartner": {
            "businessId":"BP1111",
            "businessUnit":"JPN",     
            "servicingUnit":"servicingUnit",
            "bookingCenterCurrency":"USD"
  }
  },
  "withVariablesInReturn": true
}

I expect to get some boolean as a result, but I get Null.

{
    "links": [
        {
            "method": "GET",
            "href": "http://localhost:8080/engine-rest/process-instance/a2f61f12-69d6-11ed-bd91-00ff16c8b626",
            "rel": "self"
        }
    ],
    "id": "a2f61f12-69d6-11ed-bd91-00ff16c8b626",
    "definitionId": "PersonData:13:014ed29f-69c5-11ed-bd91-00ff16c8b626",
    "businessKey": null,
    "caseInstanceId": null,
    "ended": true,
    "suspended": false,
    "tenantId": null,
    "variables": {
        "passiveCountryFlag": {
            "type": "Boolean",
            "value": false,
            "valueInfo": {}
        },
        "major": {
            "type": "Null",
            "value": null,
            "valueInfo": {}
        },
        "businessPartner": {
            "type": "Null",
            "value": null,
            "valueInfo": {}
        },
        "person": {
            "type": "Null",
            "value": null,
            "valueInfo": {}
        }
    }
}

What is wrong?
Thank you in advance!
MajorityRule.dmn (7.1 KB)
PassiveCountry.dmn (4.5 KB)
PersonsData.bpmn (3.8 KB)

@hendrik thank you! I find the solution. The problem was in the request body.

1 Like