Select to view content in your preferred language

Transfer attributes to existing ArcGIS Online Feature Service

339
2
2 weeks ago
Labels (3)
TD1
by
Frequent Contributor

I need to transfer attributes from overlapping polygons to an existing ArcGIS Online Feature Service. The key here is that I cannot create a new output feature class or a new feature service so can't use a spatial join.

I also don't want to do it manually.

0 Kudos
2 Replies
CodyPatterson
MVP Regular Contributor

Hey @TD1 

An option you could use is the ArcGIS API for Python and do this within a Python notebook, I would bring both feature services into a notebook, and perform an intersection check, if they fit the criteria and intersect properly, then you could transfer the attributes using that, if you would like I can send over the documentation for that if it's an option you'd want to follow!

Cody

0 Kudos
DougGreen
Frequent Contributor

@TD1 , forgive me for what you may already know here. But here is a possible solution.

  • Run the spatial join to create the new output in a local file GDB.
  • add the hosted feature layer to a map with the new layer created from the spatial join.
  • Use the "Join Field" tool to "Add" the new fields with their values to the hosted feature layer
  • in the "Transfer Method" input, select "Use Field Mapping". This will allow you to only add the specified fields to your hosted layer

DougGreen_0-1757985585722.png

 

NOTE: This might not work great if you don't have a unique id column that isn't managed by the database. Sometimes GP tools have an option to preserve GlobalID in the Environment Settings but I don't see it on "Spatial Join". You can't use OBJECTID either because that will have been lost when you run the spatial join.

0 Kudos