AGOL Feature Service Updates

1053
4
Jump to solution
12-06-2016 12:51 PM
DaveTenney
Occasional Contributor III

All,

   I have a feature service that i am publishing out to AGOL directly and was hoping that edits made in Desktop to said feature service would be reflected automatically on the AGOL service (i was hoping i wouldn't have to overwrite the service every time there were changes). This does not seem to be the case

   Does anyone know if the functionality is there at this point in time for feature services to automatically update on AGOL when edits are made to it in Desktop?

thanks

Dave (using desktop 10.4.1) 

0 Kudos
1 Solution

Accepted Solutions
AdamZiegler1
Esri Contributor

Dave - Okay, got ya. There are some sample Python scripts out there that could be used as guidance for the overwrite. This blog is a bit old, but should lead you in the correct direction. Updating your hosted feature service for 10.2 | ArcGIS Blog 

Or, you could ask your client to use this tool (Download ArcGIS Online Feature Service or ArcGIS Server Feature/Map Service ) to pool the QC data from your ArcGIS Server instance. It would need a Feature service with query capabilities I believe. I tested it and it works well. This might be ideal if your clients have Desktop software. The service feeds AGOL and serves as a download point for clients.

-Adam Z

View solution in original post

0 Kudos
4 Replies
AdamZiegler1
Esri Contributor

Hi Dave - Just to clarify what you are looking for. You are creating a hosted feature service in AGOL from data stored locally. Then you are editing the local data again and wanting those changes reflected in AGOL.

Other than the overwirite workflow you've already uncovered I think there are really only two ways to see changes automatically in AGOL; either via an on-premises service or directly stored and editied in AGOL.

  1. Use ArcGIS Enterprise: specifically ArcGIS Server with an Enterprise Geodatabase. Your editable content is in the enterprise geodatabase (available for you to edit via desktop), it is served out via ArcGIS Server, consumed in AGOL as a feature service that will reflect edits made on premises.
  2. Add the AGOL feature layer to ArcGIS Pro and edit the web layer directly. (Use AGOL as your data source)

You could automate the overwrite process if you need to edit local data and don't have access to ArcGIS Enterprise. ArcGIS Pro also makes it pretty easy to overwrite feature layers as well.

-Adam Z

0 Kudos
DaveTenney
Occasional Contributor III

Sorry if i wasnt as clear in my original post...

      1) SQL db is created from data

            a) this db has a spatial component of QC errors

            b) we create an esri view of the db so we can see the errors spatially in desktop

      2) We want to serve this QC layer out as a hosted service in AGOL

            a) client would like to be able to see/share errors spatially

            b) client would like to be able to download errors as a shapefile or gdb

      3) The SQL db is updated daily behind the scenes and we would like these changes reflected automatically.

We did test this with publishing the view as a feature service to our Server first and then pushed it to our AGOL account. We were able to see changes to the data live, but we lost the functionality of being able to download the errors as a shapefile and/or gdb in doing that. It isnt a horrible option to automate the overwrite process from desktop to the hosted AGOL service.

    is there any documentation on automating that process?

thanks for your help.

Dave

0 Kudos
AdamZiegler1
Esri Contributor

Dave - Okay, got ya. There are some sample Python scripts out there that could be used as guidance for the overwrite. This blog is a bit old, but should lead you in the correct direction. Updating your hosted feature service for 10.2 | ArcGIS Blog 

Or, you could ask your client to use this tool (Download ArcGIS Online Feature Service or ArcGIS Server Feature/Map Service ) to pool the QC data from your ArcGIS Server instance. It would need a Feature service with query capabilities I believe. I tested it and it works well. This might be ideal if your clients have Desktop software. The service feeds AGOL and serves as a download point for clients.

-Adam Z

0 Kudos
DaveTenney
Occasional Contributor III

   we are going to approach the scripting option first. i have a few reservations about the Download Service tool as of right now, we have tested it and have mixed results.

thanks again for the help

dave