ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

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

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Batch Reports

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Allows you to batch reports and run them at a later time.

Usage

  • Batch one or more reports to be processed in the order that the reports are added.

  • In ArcMap, reports will only be created for features that are within the active study area or analysis extent.

  • This tool should primarily be used to create reports for Business Analyst trade areas.

  • The layer to summarize is usually Esri data that comes standard with Business Analyst but can be any boundary layer that contains quantifiable data that has been set up using the Analysis Layer Setup function.

  • If selecting a Business Analyst dataset to aggregate data, choose the smallest level of geography to improve accuracy. For example, selecting the block group data will provide the greatest amount of accuracy for creating reports for trade areas.

  • Use the Stitch Reports parameter to combine two or more reports for each feature in the input polygon.

Syntax

BatchReports_ba (Boundaries, BDSFeatureClass, ReportTemplates, OutputFolder, {StitchReports}, {InsertMap}, {ReportStyle}, {ReportFormats})
ParameterExplanationData Type
Boundaries
[[Layer, {ID field}, {Store ID field}, {Ring ID field}, {Use selected}],...]

The input feature class that defines the boundary layers for which the reports will be generated.

Value Table
BDSFeatureClass

The input feature class that contains the data from which the reports will be generated.

Feature Layer
ReportTemplates
[ReportTemplates,...]

Selects from a list of predefined or custom report templates in Business Analyst.

String
OutputFolder

The output directory that will contain the reports.

Folder
StitchReports
(Optional)

Takes the report templates selected in the Create Reports parameter and stitches them into a single report based on the order they are added.

  • True —Generates stitched reports.
  • False —Generates individual reports for each boundary layer.
Boolean
InsertMap
(Optional)

Determine if map image will be inserted if supported by selected report(s).

  • True —Inserts map image into report based on the current view in ArcMap.
  • False —Will not insert map image into report based on the current view in ArcMap.
Boolean
ReportStyle
(Optional)

The report style for your reports.

  • Screen —This report format will display a modern look and feel using a more visually pleasing format.
  • Paper —This report format will display a classic look and feel using a more generic style.
String
ReportFormats
(Optional)

The report output format.

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSV
  • Stripped XLSX
String

Code Sample

BatchReports Example (Stand-alone Script)
# Name: BatchReports.py
# Description: Places an Age report in the batch queue.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.3\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
    
# Define input and output parameters for the Batch Reports tool

  TAs = "C:\\temp\\TradeArea.shp' AREA_ID STORE_ID RING false"
  InputGeo = "C:/ArcGIS/Business Analyst/US_2014/Data/Demographic Data/esri_bg.bds"
  Rpts = "Age"
  OutPath = "C:/temp"
 
# Create batch reports

  arcpy.BatchReports_ba(TAs, InputGeo, Rpts, OutPath, "REPORT_PER_BOUNDARY")

# Release extension license 

  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An overview of the Business Analyst Reports toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal