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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動