Rule Engine (Dictionary) error message "expected a number, boolean..."

Hello,

I try to use the Rule Engine (Dictionary) node to exchange strings based on rules.

I have two .csv files.

One with the rules

KNIME_translate

and one where the value in the column “PROD” should be replaced according to the rules.

KNIME_Target

For this I like to use the Rule Engine (Dictionary) node like this

KNIME_Workflow

But this generates errors

I wonder why, as all values used are strings. Why does the node still “expected a … string,”

Hi there!

Your A column in rule file should be in this format $PROD$ MATCHES "A0001" :wink:

Br,
Ivan

Like this?

KNIME_ColumnA

Doesn’t help either. :frowning:

See the way you need to add double quotes.

2 Likes

Hi,

exactly. But CSV Reader node removes quotes when he reads your data. Change Quote Char to blank in configuration menu.

CSVRC

I guess it should do the trick if you want to use CSV file to store rules.

Br,
Ivan

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.