Logic block validation is missing for the missing data item on table. I am able to see the message (Not Valid), but this does not prevent me from saving. Nor is this caught in the Validation Workbench.
Hey Pablo!
Thanks for pointing this out. I have a few questions for you.
- Are you editing that Logic Block Definition in the same lifecycle as the Data Item Definition that is displaying as
(Not Valid)in that screenshot? - When you say that it doesn’t prevent you from saving, are you referring to saving the Logic Block Definition? Or saving the Table Definition that the field is missing from?
There may be some lifecycle-management reasons for this occurring, and would like to rule those out.
-
Are you editing that Logic Block Definition in the same lifecycle as the Data Item Definition that is displaying as
(Not Valid)in that screenshot?
I am editing the logic block in an environment where that data item is not present. -
When you say that it doesn’t prevent you from saving, are you referring to saving the Logic Block Definition? Or saving the Table Definition that the field is missing from?
I am referring to the logic block definition.
Hi Pablo, this is expected behavior. At design time we don’t currently validate that the data items being accessed exist on the associated table. I expect that if you cleared that filter and recreated it you would not be able to select that field again, but we do not prevent you from saving the logic block with a mapping like this.
@pablo.porras The Validation Workbench and associated validation rule Valid References picks up this type of issue. I’m working through and discussing internally the mechanics of how that feature works but, for now, it might make sense to do the following in a non-sandbox environment:
- create a
Validation Scopeof typeFILTERwhoseMetadata Filter Setincludes a row forLogicBlockswhose name starts withns - in the
Validation Workbenchgo to theAll Rulesprofile and choose theRun Validation Profilerow action. Specify theValidation Scopecreated previously - review the
Rule Violationsto catch this type of issue
