HOW TO
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.
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;"
Get help from ArcGIS experts
Download the Esri Support App