Skip to main content

I'm trying to update some feature service layers in AGOL from a file gdb, but I'm having some issues with the change detector. Many of the layers are working fine, and some that didn't work at first could be fixed by unchecking the "check geometry" option. Unfortunately, some of my change detectors are still processing many of the features as "updated" (I have made no changes to the layers), even with the geometry option unchecked. I have also tried to use a coordinate rounder with no success, and now I'm not sure what else I can do. If I try to continue with the update, I get an error 1019. Any help would be appreciated!

Hi @viewseeker

 

For UPDATING Arcgis Online feature service, I would recommend using FeatureMerger transformer instead as described in this article https://knowledge.safe.com/articles/19302/how-do-i-write-updates-to-an-existing-arcgis-onlin.html

Hi @viewseeker

 

For UPDATING Arcgis Online feature service, I would recommend using FeatureMerger transformer instead as described in this article https://knowledge.safe.com/articles/19302/how-do-i-write-updates-to-an-existing-arcgis-onlin.html

I just gave that a try, unfortunately I had even less success with that method.


I just gave that a try, unfortunately I had even less success with that method.

As per my testing, it should work without any issues, but I will have to investigate a bit more.

Are you using OBJECTID to compare or GLOABALID?

 

Can you try to compare the data based on an different attribute that is UNIQUE?

 

Can you submit a support ticket along with logfile and if possible a small sample dataset ? https://www.safe.com/support/report-a-problem/

 

 


As per my testing, it should work without any issues, but I will have to investigate a bit more.

Are you using OBJECTID to compare or GLOABALID?

 

Can you try to compare the data based on an different attribute that is UNIQUE?

 

Can you submit a support ticket along with logfile and if possible a small sample dataset ? https://www.safe.com/support/report-a-problem/

 

 

I tried again (with change detector) after overwriting my AGOL feature service, and it now works for the most part.

I used objectid as the key attribute, and for the matching 'assetid' and 'objectid'. If I put too many attributes it sends it all to the update category, which causes the translation to fail. My issue now is that I would ideally have it be able to detect changes to the schema (i.e. if I add a new field to the layer), but even if i use an attribute creator for the new field it doesn't register the change.

 

I should maybe add that my end goal is speed up the process of doing weekly updates to a large number of hosted feature layers from a GDB, so maybe there is a better way of going about that?


I tried again (with change detector) after overwriting my AGOL feature service, and it now works for the most part.

I used objectid as the key attribute, and for the matching 'assetid' and 'objectid'. If I put too many attributes it sends it all to the update category, which causes the translation to fail. My issue now is that I would ideally have it be able to detect changes to the schema (i.e. if I add a new field to the layer), but even if i use an attribute creator for the new field it doesn't register the change.

 

I should maybe add that my end goal is speed up the process of doing weekly updates to a large number of hosted feature layers from a GDB, so maybe there is a better way of going about that?

Hi @viewseeker, Thanks for explaining your scenario.

 

To Clarify AGOL Feature Service UPDATE function does not edit existing schemas(as per my understanding). Using REST APIs calls it may be possible, https://developers.arcgis.com/rest/services-reference/update-definition-feature-layer-.htm.Get the JSON for the entire service by adding ?f=pjson to the end of the service URL.

Example: https://server/webadaptor/rest/admin/services/Hosted/AEDs/FeatureServer?f=pjson

NOTE:

You have to use the admin URL to get the full definition.

 

I have not tested this and can not verify if it is possible to add attributes.

 

 

 


Reply