Missing Validation in Save and Stay Logic for Missing Data Item

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.

  1. 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?
  2. 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.

1 Like
  1. 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.

  2. 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.

1 Like

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.

2 Likes

@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 Scope of type FILTER whose Metadata Filter Set includes a row for LogicBlocks whose name starts with ns
  • in the Validation Workbench go to the All Rules profile and choose theRun Validation Profile row action. Specify the Validation Scope created previously
  • review the Rule Violations to catch this type of issue
2 Likes