Validate Rule Failure

Hi Team,

I have applied the validate rule in below properties and These properties I have used in the section and this section I have called in flow action.

  1. Last Name

  2. Date of Birth

  3. Age

  4. Zip Code

I have enter the value in First Name and Last Name : Pega and PEGA and other fields like Date of Birth, Age and Zip Code I didn’t the enter the values, the validation working fine for Last Name, Age and Zip Code, Validation failure in Date of Birth..Even I didn’t enter the value also not showing validation error. in other fields like Age and Zip code showing the validation error.

Note: I didn’t make it mandatory/required as : DOB, AGE and ZIP code, I made it mandatory/required only for First and Last Name.

Note: I didn’t set the breakpoint in Validate rule under ZIP Code Property

Sequence of Steps called the properties

1.Last Name 2. Age 3. Zip code and 4. Date Of Birth

Is this OOTB Working like that only ?

PEGA Personal Edition 8.7

In the above 4 properties, Date of Birth validation not working and Other remaining 3 working fine

Please help me on this?

Thanks,

Ashok

Hi @Bhumireddy

In your Scenario based on your conditions you have mentioned

1.If Age is less than or greater than particular value you are displaying the error message .So here the age is null which is not between those two values.

If you dont want to show error then add Age!=“” & then check this flag

2.ZipCode - Here you are checking whether ZipCode!=6 .So here the ZipCode is having value as Null “”.Which is not equal to 6 so here it is throwing the validation

So if you don’t want to validate this conditions then add the values are not null condition Then execute your Validation like A AND B

@Bhumireddy Hi Can you please check if there is any value that is getting set for DOB in clipboard? probably the value of DOB is set to the pega default value

Hi @SrinidhiM

There is no Value in Clipboard for DOB

@HarikaU9

I am worry about DOB Validation failure, not the other properties in UI/Section

Thanks,

Ashok

@Bhumireddy Please add or conditionin the Validate Rule for the date of Birth in the following way

A DateOfBirth=“”

OR

B Date Of Birth Is future Date

Hi @HarikaU9

Thank you :), it is working fine.

Thanks,

Ashok

Hi @Bhumireddy ,

You gave a validation message when DOB is in future only. So it shows validation message when DOB value is in future only since you didn’t give any value i.e ‘null’.

So it’s not a past value or future value that’s why it didn’t show a error message for DOB. If you want to show a error message for DOB then you have to write a condition for “DOB is empty”.

Hope you got my point.

Regards,

M.Deepak

@Bhumireddy good problem-solving skills brother