My users would like to enter a value in the NAME attribute of an entity in SQL Server Master Data Services. The valid values must contain zero to six characters. NULL is a valid value.
I have written a validation rule with a action containing a regex to ensure that the value is six or less characters (Name must contain the pattern ^.{0,6}$
), but the NULL values get flagged with a "Validation Failed" status. I would like the NULL values to pass the validation test.
Is there a way to do this?
Thanks for your time. I appreciate your help.