24172: <value> attribute rule <value> in layer <value> is referencing a table <value> which is not in the map.

When you are sharing a feature layer that contains immediate calculation or constraint attribute rules that are configured to be evaluated locally (configured with the Exclude from application evaluation property unchecked), this analyzer warning is returned if the map does not contain all tables referenced by the attribute rules.

It is recommended that you include any tables referenced by the attribute rule in the map as a layer. This avoids potential errors during editing when attribute rules are evaluated locally.

The analyzer warning text includes the following information to help determine the specific rule, the layer containing the attribute rule, and the table that is missing from the map:

  • The first <value> parameter refers to the type of attribute rule.
  • The second <value> parameter refers to the attribute rule name.
  • The third <value> parameter refers to the layer name that contains an attribute rule referencing a table that is not included in the map.
  • The fourth <value> parameter refers to the table name that's missing from the map.

An example: Constraint attribute rule 'Poles cannot have more than 10 inspections' in layer 'Structure Junction' is referencing table 'OWNER.Locations' which is not in the map.

Solutions

Do one of the following:

  • Ensure that all tables that are referenced by layers with attribute rules are included in the map.
    • To manually add the missing tables to the map, locate the table referenced by the attribute rule and add it to the map. Review the fully qualified name in the analyzer or inspect the script expression of the attribute rule for more detailed information.
    • To automatically add the missing tables to the map, right-click the analyzer warning and click Add To Map. The missing layer or table is added to the map.
  • Modify the attribute rule to have Exclude from application evaluation property checked. You can use the Attribute Rules view to modify existing rule properties.

Additional information

For additional information, see Share datasets with attribute rules and Analyze your GIS resource.