ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

00065: Layer has a definition expression

  • Solution
  • More information

Your layer has a definition query and you are publishing a service with Feature Access (feature service) enabled.

Solution

  • One way to keep the definition expression in the layer you want to publish is to create a view. A view is a stored query that selects data from specified tables.

    Learn more about views and creating a database view in ArcGIS for Desktop

  • You could also create a new geodatabase feature class based on the definition expression.
    1. Right-click the layer in the table of contents.
    2. Click Data from the context menu.
    3. Click Export Data from the pull-right menu.
  • Remove the definition expression from your layer.
    1. Open the Layer Properties dialog box.
    2. Click the Definition Query tab.
    3. Select the query in the text box if it is not already selected.
    4. Press the DELETE key on your keyboard.

More information

When you specify a dataset that you want to draw as a map layer, you often only want to draw some of the features in the dataset. In these situations, you can define a query expression to select a subset of features for the layer display. This is referred to as a definition expression or definition query.

Learn more about displaying a subset of features in a layer

Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal