Skip to main content
Solved

AttributeValidator - problems setting up Minimum Length Operator

  • April 7, 2017
  • 7 replies
  • 32 views

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:

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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

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+23
  • Contributor
  • April 7, 2017

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


takashi
Celebrity
  • April 8, 2017
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
Celebrity
  • April 8, 2017

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

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