Skip to main content


Hi ,


I’m having problems configuring the ‘Minimum Length’
Operator in the AttributeValidator Transformer. Ideally, I would like it to
test that the minimum length of characters is greater than 8. When I run the
Translation I get the following message:


An error was encountered evaluating
a TestFactory test: Illegal operator `MINIMUM_LENGTH'

supplied for test
evaluation -- operator must be one of < > <= >= != = ==

 


I believe the issue is with my incorrect settings in ‘Rule
Configuration’ column. Does anyone have
a working example of how to configure the ‘Rule Configuration’ using the ‘Minimum
Length’ Operator?



Many thanks

What did you type into the rule configuration? This should be enough to check for length >= 8:


What did you type into the rule configuration? This should be enough to check for length >= 8:

I used the Arithmetic Editor typing in the equation: @Value(Start)

 

length >= 8.

 

Using your method I still appear to be getting an error

 

The input is numeric, could that be a possible issue?

 

 

Many thanks :)

 

 


If the value is numeric you could use the test shown in the image below:


I used the Arithmetic Editor typing in the equation: @Value(Start)

 

length >= 8.

 

Using your method I still appear to be getting an error

 

The input is numeric, could that be a possible issue?

 

 

Many thanks :)

 

 

Why not just type 8 into the Rule Configuration column, like shown in @david_r's screenshot?

 


If the value is numeric you could use the test shown in the image below:

0684Q00000ArL0dQAF.png

If you intend to validate if the input is 8 or more figures (never containing non-figure), this regex might be better.

 

^\d{8,}$

Why not just type 8 into the Rule Configuration column, like shown in @david_r's screenshot?

 

As Takashi suggests, just type "8" and nothing more.

What did you type into the rule configuration? This should be enough to check for length >= 8:

As you and Takashi suggested, simply typing 8 into the Rule Configuration column was all that was needed.

 

Cheers :)

 

 


Reply