Select to view content in your preferred language

CopyFeatures to ArcGIS Online?

319
1
02-23-2023 06:48 AM
GoWest
by
Regular Contributor

Is it possible to use the ArcToolbox functions to interact with ArcGIS Online? 
Or is ArcGIS Python API our only option?

I want to use the arcpy.management.CopyFeatures function to copy features from a local FGDB to AGOL.

arcpy.management.CopyFeatures("PROJECTS", r"https:\\services6.arcgis.com\X2SVGCoWmow4xMI3\arcgis\rest\services\PROJECTS\FeatureServer\PROJECTS", '', None, None, None)

when I execute this command in ArcGIS Pro I get this error:

GoWest_0-1677163617489.png

 

Does the ArcToolbox work with ArcGIS Online?
 

Tags (2)
0 Kudos
1 Reply
Richard_Purkis
Esri Contributor

Hi @GoWest 

The Copy Features (Data Management) can only output to either a  local shapefile or geodatabase.

I do not believe there is a tool in the ArcToolbox to publish but you can use the ArcGIS Python API as you mentioned.

Hope this helps

 

 

0 Kudos