laptop and a wrench

不具合

When creating and publishing a vector tile package to ArcGIS Online from a Notebook in ArcGIS Pro, an attribute error occurs if a feature class has a label class expression with .upper() Python function applied to it.

最後に公開された状態: October 12, 2022 ArcGIS Pro
不具合 ID 番号 BUG-000151711
送信されましたAugust 19, 2022
最終更新日April 29, 2025
適用対象ArcGIS Pro
見つかったバージョン2.9.2
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスUnder Consideration

対処法

Remove the .upper() Python function from two label class expressions and re-run the Notebook code to successfully create and publish the Vector Tile Package to ArcGIS Online with the following steps:

  1. In the same ArcGIS Pro project for reproducing the error, navigate to the 'TxDOT_Vector_Tile_Basemap' Map tab.
  2. Select the 'TxDOT_Roadways' feature layer.
  3. On the Ribbon, under the Feature Layer section that appears at the top, select the Labeling tab.
  4. In the Label Class category, change the Class dropdown to 'FC Streets' and click the Expression icon next to the Field dropdown for the Label Class pane to appear.
  5. In the pane, in the Expression box, note the expression [MAP_LBL].upper().
  6. Remove the .upper() Python function from the Expression and click Apply.
  7. Re-run steps 4-6 for the 'City Streets' class and save the project.
  8. Navigate to the 'Vector Tile_1' Notebook tab.
  9. Select the Cell tab at the top of the Notebook, go to All Output, and select Clear.
  10. Run cells 1-7 again.

No error is generated now after running Cell 7, and the code successfully creates and publishes the Vector Tile Package to ArcGIS Online.

Another workaround is to instead use geoprocessing tools to create and share the Vector Tile Package to ArcGIS Online. In this workflow, no AttributeError occurs with the .upper() Python function applied to label class expression(s) to feature layers included in the map being packaged. Run the following steps:

  1. In the Geoprocessing pane, search for the Create Vector Tile Package tool and run it.
  2. Search for the Share Package tool and run it to share the package to ArcGIS Online.

Another option is to open the above mentioned geoprocessing tools and instead of running the tools as is after filling out all of the parameters:

  1. Navigate to the dropdown for Run and select Copy Python Command.
  2. Paste the code into a Python window and run the Vector Tile Package tool as a script.
  3. Do the same for running the Share Package tool as a script.

Again note that in this workflow as well, no AttributeError occurs with the .upper() Python function applied to label class expression(s) to feature layers included in the map being packaged.

再現の手順

不具合 ID: BUG-000151711

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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