SAE Solution 8 Build: Unable to validate 'CUSTOMER AGE AS 25' : ERROR: "(This Record) is not a Valid Entry" in Validate Rule
I am fresh to Pega as i started to take up course on System Architect Essentials and working on the final SAE 8 Solution Build exercise. At moment i am stuck in US-107 part of the excerise where i need to validate the customer age. The technical approach that i followed is as below.
Use the following date function in a validation rule to check for customer age: @DateTimeDifference(.RentalCustomer.DateOfBirth+"T000000.000 GMT",@(Pega-RULES:DateTime).CurrentDateTime(),"Y")<25
But when i try to provide the function in the Validation rule i am being prompted with error as "(This Record) is not a Valid Entry" and it prevents me to SUBMIT. I am not sure as what i am missing in the function. Can anyone suggest as what would be the issue & how can i fix it please?