Select to view content in your preferred language

SummaryReports in ArcPy - Broken after recent update

152
0
06-27-2024 01:44 PM
Labels (1)
AdamBowen
New Contributor III

I tried running a script I've been using in ArcPy (AGIS Pro) since last year. Up until the recent update, it has never had an issue. 

I've run the auto-updater on all of my reports to the new 2024 data in ArcGIS online.

I've also replaced the report template ID in my script from the new 2024 report.

I'm not sure why this isn't working though. Here is what I have:

arcpy.ba.SummaryReports(
   in_features='PMA',
   report_templates="0196e30a44e9452ca25f6dfa9f5f0ddf",
   reports_folder='Z:\\PROJECTS\\' + projectPath + '\\demos\\EsriReports\\',
   summarization_options="INDIVIDUAL_FEATURES",
   single_report="CREATE_REPORT_PER_TEMPLATE",
   formats="xlsx",
   store_id_field="OBJECTID",
   store_name_field="NAME",
   store_address_field="AREA",
   store_latitude_field=None,
   store_longitude_field=None,
   ring_id_field=None,
   area_description_field=None,
   title="",
   subtitle="Prepared By Business Analyst for ArcGIS Pro",
   report_per_feature="CREATE_SINGLE_REPORT",
   add_infographic_header="ENABLE_INFOGRAPHIC_HEADER",
   add_infographic_footer="ENABLE_INFOGRAPHIC_FOOTER",
   add_infographic_data_source="ENABLE_INFOGRAPHIC_DATA_SOURCE")

And here is the error I'm getting:

ExecuteError                              Traceback (most recent call last)
In  [3]:
Line 87:    arcpy.ba.SummaryReports(

File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ba.py, in SummaryReports:
Line 767:   raise e

File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ba.py, in SummaryReports:
Line 764:   retval = convertArcObjectToPythonObject(gp.SummaryReports_ba(*gp_fixargs((in_features, report_templates, reports_folder, summarization_options, single_report, formats, store_id_field, store_name_field, store_address_field, store_latitude_field, store_longitude_field, ring_id_field, area_description_field, title, subtitle, report_per_feature, add_infographic_header, add_infographic_footer, add_infographic_data_source), True)))

File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py, in <lambda>:
Line 520:   return lambda *args: val(*gp_fixargs(args, True))

ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of 55plus | acs_housing | acs_keyfacts | acs_population | agedet | agesex | agesexrace | business_loc | business_summary | census2010_profile | census2020_profile | cex_auto | cex_budget | cex_financial | cex_home | cex_medical | cex_recreation | cex_retail | community_profile | crime_summary | Custom_Map_Landscape | Custom_Map_Portrait | dandi | dandicomparison | dispinc | execsummary | graphic | hh_income | housing | laborforce_profile | market_profile | mpi_health | mpi_investment | mpi_pc | mpi_pet | mpi_restaurant | mpi_retail | mpi_sports | networth | retail_demand | retail_demand_industry | site_details_map | site_map | site_map_imagery04 | site_map_imagery08 | site_map_imagery16 | tapestry_map | tapestry_profileNEW | time_series | traffic | traffic_map | traffic_map08 | 2020-census-summary | at-risk-population | childhood-and-female-equity | community-change-snapshot | community-summary | commute-profile | demographic-profile | demographic-summary | dominant-tapestry-profile | eating-places | economic-development-profile | emergency-information | employment-overview | executive-summary-call-outs | health-care-and-insurance | housing-market-characteristics | key-facts | multi-area-comparison | nonprofit-charitable-profile | office-market-profile | population-trends | property-details | retail-demand-by-industry-tabular | shopping-and-spending | skyscraper | tapestry-profile | target-market-summary | whats-in-my-community.
Failed to execute (SummaryReports).

I'm hoping someone has some advice/suggestions. I can't rely on Business Analyst Online because I have several other steps through the rest of my automation that can only be accomplished in AGIS Pro.

0 Kudos
0 Replies