Select to view content in your preferred language

SDE feature class edits do not render in Dynamic Map Service

1873
10
09-24-2012 02:34 PM
DaveHighness
Deactivated User
I am testing ArcServer 10.1 and SDE on SQL Express on the Amazon E2C. I have deployed our app that we built on 10.0. In the app we use Python GeoProcessing tasks to update SDE feature classes by updating attributes, adding and removing features. Sometimes we use cursors and sometimes we use GeoProcessing tools. In 10.0 this all works as we expect. In 10.1 we do the same GP task and it runs through without error but the results are not rendered in the Dynamic Service. If we open the feature class in ArcMap the changes are there.

Why is this not working? I think it must be related to either caching of map images or versioning in the SDE feature class. We do not have caching or versioning turned on, we only have the DEFAULT version.

Thanks, Dave
Tags (2)
0 Kudos
10 Replies
RobertBeckler
Emerging Contributor
Ok, I finally got back to this problem and have now resolved it.  My geoprocessing script was overwriting my existing file-based geodb feature class with a new updated feature class with the same name.  This is what I wanted it to do.  Problem is that apparently the rest service caching mechanism does not recoognize when you simply overwrite a file, and thus does not display the updated data.  I rewrote my geoprocessing script so that it truncates all rows (records) from the existing feature class and then appends the newly created feature class to the exisiting data set where the rows were dropped.  The rest service now recognizes that the original feature class has been altered/edited/changed and will now show the updated data set. 
🙂
Robert
0 Kudos