HOW TO

Set a Business Analyst data source when publishing a Business Analyst script as a web tool

Last Published: April 25, 2020

Summary

A number of Business Analyst tools, such as Enrich Layer, Summary Reports, and Color Coded Layer, require business analyst data. The Business Analyst data source can be either online data or locally installed data.

When publishing a script that requires business analyst data, it is advisable to explicitly specify the data source in the script, as described below.

Procedure

To specify the business analyst data source, add the data source settings to the beginning of the script:

#Local data source example
import arcpy
arcpy.env.baDataSource = r"LOCAL;;USA_ESRI_2018"
#Online data source example
import arcpy
arcpy.env.baDataSource = r"ONLINE;US;"

Article ID: 000021925

Software:
  • ArcGIS Server
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options