laptop and a wrench

Bogue

The clone_items() function with the item_mapping parameter incorrectly updates the vector tile layer styleUrl when cloning web maps between ArcGIS Enterprise portal 11.5 instances.

ArcGIS API for Python
Numéro d’ID de bogue BUG-000178647
EnvoiAugust 12, 2025
Dernière modificationJanuary 4, 2026
S’applique àArcGIS API for Python
Version trouvée2.4.1
Système d’exploitationWindows Server
Version du système d’exploitation2022
Version de correction2.4.2
StatutFixed

Informations supplémentaires

In product plan

Solution de contournement

# paste the following code into the code within steps to reproduce at the appropriate place

# Get the target Vector Tile Layer item from the target GIS

tgt_vtl_item = tgt_gis.content.get(tgt_vtl_item_id)

 

# Get the service URL from the item properties (usually .url)

vt_service_url = tgt_vtl_item.url # e.g. "https://support04.esri.de/server/rest/services/Hosted/Tile_Layer_Copy/VectorTileServer"

 

wm_data = cloned_webmap_item.get_data()

 

for lyr in wm_data.get("operationalLayers", []):

   if lyr.get("layerType") == "VectorTileLayer" and lyr.get("itemId") == tgt_vtl_item_id:

       correct_style_url = f"{vt_service_url}/resources/styles/root.json"

       if lyr.get("styleUrl") != correct_style_url:

           print(f"Updating styleUrl for: {lyr.get('title')}")

           lyr["styleUrl"] = correct_style_url

 

cloned_webmap_item.update(data=wm_data)

print("WebMap updated with correct Vector Tile Layer styleUrl.")

 

# --- Optional: Verify ---

wm_data_updated = cloned_webmap_item.get_data()

for lyr in wm_data_updated.get("operationalLayers", []):

   if lyr.get("layerType") == "VectorTileLayer":

       print(f"Title: {lyr.get('title')}")

       print(f"ItemID: {lyr.get('itemId')}")

       print(f"StyleURL: {lyr.get('styleUrl')}\n")

Étapes pour reproduire

ID de bogue: BUG-000178647

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement