laptop and a wrench

不具合

Using manager.overwrite() in a notebook for ArcGIS Online does not overwrite the data.

最後に公開された状態: July 20, 2021 ArcGIS Online
不具合 ID 番号 BUG-000139388
送信されましたApril 26, 2021
最終更新日April 14, 2025
適用対象ArcGIS Online
見つかったバージョン9.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスWill Not Be Addressed

参考情報

Refer to this documentation for information on working with local files inside ArcGIS Notebooks in Online: https://doc.arcgis.com/en/arcgis-online/create-maps/work-with-content-in-a-user-workspace.htm The issue is with this line: flayer_collection.manager.overwrite(r"C:\Overwrite_Test\TestData.csv") Unlike ArcGIS Pro, notebooks in ArcGIS Online does not have a line of sight to the local machine, so local file paths cannot be referenced in ArcGIS Notebooks in ArcGIS Online. To overwrite the feature layer, upload the CSV file to the notebook's files workspace and reference this new path in the manager.overwrite() function. Example steps: 1. Upload the original .csv to ArcGIS Online Content and publish it as feature layer. 2. Open a new (or existing) notebook. 3. Click the Files tab at the top of the open notebook page. 4. In the Files panel, click the home folder. 5. At the bottom of the Files panel, click Choose File, and navigate to the .csv to be used for the overwrite (or drag the .csv over the Choose File button). Click Upload. 6. This file is listed in the /arcgis/home/ directory, and can be referenced as such. Click the plus sign to the right of the file and a cell is inserted into the notebook with a path to that file (e.g. dataset = '/arcgis/home/TestData.csv'). 7. Edit the overwrite function to reference this file path and run the cell. 8. Navigate to feature service and click the Data tab. The feature service reflects the changes. Refer to the example Python script below: code: import arcgis from arcgis.gis import GIS gis= GIS("home") # get feature service item feature_table_item = gis.content.get("3ce7164706d24abb8dba8a844d4783a9") print (feature_table_item) # get feature service flayer_collection = arcgis.features.FeatureLayerCollection.fromitem(feature_table_item) print (flayer_collection.layers) # overwrite feature service with csv stored in Files workspace flayer_collection.manager.overwrite('/arcgis/home/TestData_upd.csv')

対処法

  • Run overwrite scripts containing manager.overwrite() in ArcGIS Pro.
  • Manually overwrite data in the Overwrite graphical user interface (GUI) tool in the item details page of the feature layer in ArcGIS Online.

再現の手順

不具合 ID: BUG-000139388

ソフトウェア:

  • ArcGIS Online

バグのステータスが変更されたときに通知を受け取る

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

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

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

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

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

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