Select to view content in your preferred language

Data Structure Changes and Overwriting Feature Services

3306
10
07-01-2013 04:51 PM
PeterTimmers
Frequent Contributor
I have the situation where when I delete two fields off a feature class and overwrite the hosted feature service the fields are not removed.

What am I doing wrong?

Do I have to delete the feature service and republish using the service definition that's hosted?

At this stage I'm creating a new version and not overwriting because I can't seem to do it seamlessly.
Tags (2)
0 Kudos
10 Replies
MikeMinami
Esri Notable Contributor
Can you tell me the exact steps you are doing? How are you republishing? If you created a web map with the feature service in it, the web map would have a copy of the attribute fields, so you would need to remove/add the layer again.

Thanks,

Mike
0 Kudos
PeterTimmers
Frequent Contributor
Feature class stored in SDE has two fields removed, reopen MXD to be republished to arcgis.com, do an overwrite and view the published feature class REST interface and the fields will still be there.

It looks like the service definition has been updated - ie. the datetime stamp has changed but the feature service isn't. 

I'm probably missing something in the workflow.

Does it matter that the service definition and feature service are moved to a subdirectory in arcgis.com and then overwritten?
0 Kudos
JasonBalmut
Frequent Contributor
I seem to be having a similar issue since I switched to 10.2.  I've tried to overwrite an existing service and nothing seems to happen. After the warning message about losing data that has been edited in the service, I press next and the window goes away with no further messages. I tried removing the feature service from the web map and re-adding it but it doesn't matter; the service was never updated.
0 Kudos
PeterTimmers
Frequent Contributor
You're not posting to feature services in sub-directories are you?

10.2 appears to have removed that ability.
0 Kudos
JasonBalmut
Frequent Contributor
You're not posting to feature services in sub-directories are you?

10.2 appears to have removed that ability.


You mean the Feature Service has to be at the root of the person's AGOL account, not in a folder???  I hope you're joking.
0 Kudos
PeterTimmers
Frequent Contributor
As far as I can see yes only to the root.  But you can move after.... though if you've got a scheduled task to update I wouldn't move it out of the root.

Please someone at ESRI inc prove me wrong.
0 Kudos
JasonBalmut
Frequent Contributor
It's in my root folder so that must be a different problem.  I'm running out of ideas on how to handle updates.  Deleting the FS and re-serving it is an option in this case, but with services that other people have built maps with it would pose problems because the service would have a new ID.

ESRI, is there another way to do overwrites in AGOL?
0 Kudos
PeterTimmers
Frequent Contributor
I find if I change the data structure I have to rename the service.  It's been the only sure fire way, though I'm sure someone at ESRI told me you have to delete it from the map and readd it and it will have the modifications.. 

I've got some feature services with the number 5 or 6 or bigger after them.

Yes I hope someone at ESRI proves us wrong.
0 Kudos
DonPritt
Frequent Contributor
I've not had any luck in AGOL overwriting or updating an existing service from 10.1, I delete the service, then upload the updates using the same name and all my maps seem to pick it up.
I've just upgraded to 10.2 and was hoping this has improved...
0 Kudos