Data Source (Environment setting)

Tools that honor the Data Source environment use variables and network data from the Business Analyst dataset specified during analysis. This environment is used by Business Analyst tools only.

Usage notes

  • This environment enables selection of a Business Analyst dataset for use in geoprocessing.
  • The specified Business Analyst dataset can be installed locally or accessed by signing in to a portal, such as ArcGIS.com.
  • Changes made to this environmental override the global data source setting for the duration of in-tool processing. Once processing completes or is cancelled, the data source reverts to the value in the global setting.

Dialog syntax

Browse to the location of the local or online Business Analyst dataset to be used in the analysis.

Scripting syntax

arcpy.env.baDataSource = DataSource

parametersExplanation

DataSource

This is the location of the source data, either local or online. Summarized data can reside locally by installing a dataset or be set to your organization through ArcGIS Enterprise or ArcGIS Online. ArcGIS Online data consumes credits. The default value is online.

baDataSource syntax

Script example

Note:

To set the online data source in another country or area, the 2- and 3-digit country codes are listed in GeoEnrichment coverage.

import arcpy

# Access data locally
arcpy.env.baDataSource = "LOCAL;;USA_ESRI_2024"

# Access data online
arcpy.env.baDataSource = "ONLINE;US;"

Related topics