ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS 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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Maintain fully qualified field names (Environment setting)

  • Usage notes
  • Dialog syntax
  • Scripting syntax

Tools that honor the Maintain fully qualified field names environment use this setting to distinguish between qualified and unqualified field names. Qualified field names are the names of fields in a feature class or table that have the name of the origin feature class or table appended to the field name. This setting is relevant when working with joined data.

Usage notes

  • The default qualified output table field naming structure is tableName.fieldName. When unqualified, the fields in the output table or feature class will always be named with the format fieldName.
  • In instances in which qualified field names may exceed the allowed field name width, set the environment to unqualified, for example, when joining shapefiles. Shapefile fields are truncated at eight characters.
  • When field mappings are included in a tool's parameters, as they are in many tools in the Conversion toolbox, field names are automatically unqualified, so it is not necessary to set this environment.

Dialog syntax

  • Checked—The output field name will include the table name. This is the default.
  • Unchecked—The output field name will not include the table name.

Scripting syntax

arcpy.env.qualifiedFieldNames = qualified_field_names

qualified_field_namesExplanation

True

The output field name includes the table name. This can also be set using the QUALIFIED keyword. This is the default.

False

The output field name will not include the table name. This can also be set using the UNQUALIFIED keyword.

qualifiedFieldNames syntax

Script example

# Name: addjoin.py
# Purpose: Join a table to a featureclass and have the output unqualified

# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/data"
arcpy.env.qualifiedFieldNames = False

# Set local variables    
inFeatures = "Habitat_Analysis.gdb/vegtype"
layerName = "veg_layer"
joinTable = "vegtable.dbf"
joinField = "HOLLAND95"
expression = "vegtable.HABITAT = 1"
outFeature = "Habitat_Analysis.gdb/vegjoin"

# Create a feature layer from the vegtype featureclass
arcpy.MakeFeatureLayer_management(inFeatures, layerName)

# Join the feature layer to a table
arcpy.AddJoin_management(layerName, joinField, joinTable, joinField)

# Copy the layer to a new permanent feature class
# Output fields are unqualified, so the field name will 
# not contain the origin table
arcpy.CopyFeatures_management(layerName, outFeature)

Related topics

  • What is a geoprocessing environment setting?
  • Setting geoprocessing environments

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal