00399: <value>'s definition query uses a field that is not visible: <value>

You are sharing a web feature layer that copies all data, but a field used in the definition query of the layer or stand-alone table is not visible. The field must be visible for the web layer to draw properly and to support querying.

The first <value> parameter is either layer or standalone table.

The second <value> parameter refers to the field name.

Solutions

Do one of the following:

  • Make the field visible.

    Hover over the analyzer message. Click the Options button Options that appears and click Open Fields View. In the Visible column, check the check box that corresponds to the field used in the definition query. On the Fields tab, in the Manage Edits group, click Save Save.

  • Modify the existing query.

    Hover over the analyzer message. Click the Options button Options that appears and click Change Layer Definition Query or Change Table Definition Query. On the Layer Properties or Standalone Table Properties dialog box, click Edit in the cell of the active query. Change the query to use a field other than the hidden field.

  • Clear or switch the active query.

    Hover over the analyzer message. Click the Options button Options that appears and click Change Layer Definition Query or Change Table Definition Query. On the Layer Properties or Standalone Table Properties dialog box, click Clear Active Query Clear Active Query. If more than one query is defined, you can switch the active query instead. Click Set as Active Set as Active to apply a different query that doesn't use the hidden field.

Additional information

For more information, see Filter features with definition queries and Analyze your GIS resource.