Posted: 18 Nov 2015 9:29 EST Last activity: 18 Nov 2015 11:48 EST
Different error messages on a Validate rule when tabbing vs. posting a page
I have a data class with an activity that does validation on a property of a class of the class by mapping that property to a validate rule in a step of the activity on the Property-Validate method. I have a section that has a control mapped to that propery. When I tab through the section and violate the rule I get the error message that was specified on the rule ("Enter a valid xyz"). When I post the form, the validation runs, but the error message is in the form "Invalid value specified for <property-name>. Value doesn't adhere to the validate: <validate-rule>. So it seems the post processing knows to call the validate, but doesn't have access to the error message specified on the rule. Can anyone shed light on to what's going on and how I might get post to display the right error message?
Thanks in advance!
Share this page
Moderation Team has archived post,
This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.
i have seen that error once... thought it was because of the upgrade from version 6 to 7. Turned out that the property was not optimize. It worked only after creating a new property pointing to the same property in db and then optimize it. Also in the section, point to the new property with the new validations.