Skip to main content
Solved

AttributeValidator - problems setting up Minimum Length Operator


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

Best answer by david_r

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

View original
Did this help you find an answer to your question?

7 replies

david_r
Celebrity
  • Best Answer
  • April 7, 2017

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


  • Author
  • April 7, 2017
david_r wrote:

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 :)

 

 


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • April 7, 2017

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


takashi
Influencer
  • April 8, 2017
amyn wrote:
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?

 


takashi
Influencer
  • April 8, 2017
erik_jan wrote:

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,}$

david_r
Celebrity
  • April 10, 2017
takashi wrote:
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.

  • Author
  • April 10, 2017
david_r wrote:

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 :)

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings