laptop and a wrench

Bogue

The PortalFolder settings are not honored when publishing a map image layer from ArcGIS Pro to Portal for ArcGIS using the ArcPy MapImageSharingDraft class.

Dernière publication: July 4, 2022 ArcGIS Pro
Numéro d’ID de bogue BUG-000122626
EnvoiMay 28, 2019
Dernière modificationFebruary 18, 2025
S’applique àArcGIS Pro
Version trouvée2.3.3
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutAs Designed

Informations supplémentaires

MapImageSharingDraft honors only a folder that already exists in the portal.

Solution de contournement

Include the Python API .move() function to the script function to move the published content to an existing folder in Portal for ArcGIS 10.7:

From arcgis.gis import GIS

gis = GIS("https://supt0008374.esri.com/portal", "xxxxxx", "xxxxx")

portal_item = gis.content.search(query ='title:"TomThomson_1"')

print (portal_item)

first_item = portal_item[0]

first_item1 = portal_item[1]

itemlist = [first_item, first_item1]

for item in itemlist:

item_id = item.id;

getitem = gis.content.get(item_id);

getitem.move(folder='Layers_Test')

Refer to this documentation: https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=item%20upload#arcgis.gis.Item.move.

 

Étapes pour reproduire

ID de bogue: BUG-000122626

Logiciel:

  • ArcGIS Pro

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