Data Structure Changes and Overwriting Feature Services

2936
10
07-01-2013 04:51 PM
PeterTimmers
Occasional Contributor III
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
Occasional Contributor III
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
Occasional Contributor III
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
Occasional Contributor III
You're not posting to feature services in sub-directories are you?

10.2 appears to have removed that ability.
0 Kudos
JasonBalmut
Occasional Contributor III
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
Occasional Contributor III
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
Occasional Contributor III
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
Occasional Contributor III
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
Occasional Contributor II
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