Decision Table return string error

I’m trying do a multiple if-else statement in an activity.

It checks the string value of a property then returns the corresponding description.

E.g.

When .Type == “OBJECT” , Property-Set .Description = .ObjectDetail
When .Type == “PERSON” , Property-Set .Description = .PersonDetail

A colleague suggested using Decision Tables to make it look neater.

However, if the return string property starts with the value “Call …” , it creates an error :

Failed to find a 'RULE-DECLARE-DECISIONTABLE' with the name '...' that applies to 'This-Class'; no rules with this name were found in the rulebase. 

Is there a way to resolve this?

Hi @BrynH567: Can you try to select evaluate all rows in the decision table and set the required property in the decision table itself instead of returning the value. This should solve your issue.

In the results tab, select evaluate all rows. Now in the decision table you can click the header to set the required property.

Please let us know if this helps.

Thanks.

@BrynH567 On the “result(s)” tab uncheck “Allowed to return values” and on the “Table” under Actions columns set the property to which the return value needs to be assigned.