laptop and a wrench

漏洞

When running the exact codes provided by this documentation: https://developers.arcgis.com/python/guide/part5-generate-reports/#:~:text=Report%20for%20a%20Point,%27reports/esri_poly_business_profile.pdf%27, both "report for a point feature" and "report for a polygon study area" run but do not generate readable files. When launching the generated Excel files, the error message "Excel cannot open the file xxx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file." is returned.

ArcGIS API for Python
漏洞 ID 编号 BUG-000161921
已提交October 6, 2023
上次修改时间June 23, 2025
适用范围ArcGIS API for Python
找到的版本2.1.1
操作系统N/A
操作系统版本N/A
修正版本Planned Release Date: Q1 2025
状态Fixed

附加信息

The documentation has been updated to remove XLSX file as a supported format for the Business Locator report as it is only supported in PDF format. https://developers.arcgis.com/python/latest/guide/part5-generate-reports/#available-reports

解决办法

According to the example in the ArcGIS REST API documentation on the ArcGIS GeoEnrichment Service with the Create report method, when passing a geometry as a study area, it must have a format as shown in the following example: "geometry":{"x":-117.1956,"y":34.0572}}. For example, when passing in this [{"geometry":{"rings":[[[-117.185412,34.063170],[-122.81,37.81],[-117.200570,34.057196],[-117.185412,34.063170]]],"spatialReference":{"wkid":4326}},"attributes":{"id":"1","name":"optional polygon area name"}}] to study areas in the create_report() function, the excel file generated is readable.

重现步骤

漏洞 ID: BUG-000161921

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项