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

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options