Numéro d’ID de bogue |
BUG-000171602 |
Envoi | October 18, 2024 |
Dernière modification | June 19, 2025 |
S’applique à | ArcGIS Online |
Version trouvée | June 2024 |
Système d’exploitation | N/A |
Version du système d’exploitation | N/A |
Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
The map service causing the error requires an ArcGIS Online login, so ArcPy must be signed in to access it. This can be done by calling `arcpy.SignInToPortal("notebook")` before running `arcpy.management.CopyRaster()`.
The code works in ArcGIS Pro without an explicit sign-in because ArcGIS Pro Notebooks automatically sign in to the active portal, which, in this case, is ArcGIS Online.
Please also note that map services are not officially supported by the Copy Raster tool. Typically, you would use an image service instead. For more details, refer to the Copy Raster (Data Management) documentation: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/copy-raster.htm.
Étapes pour reproduire
ID de bogue: BUG-000171602
Logiciel: