Bulk Attribute Updation issues

737
1
09-12-2012 04:00 AM
janardhangangineni
New Contributor
Hi,

I am facing problems in updating attributes of features with my custom code.
My data is inside sde (Arc SDE 9.3.1,DB2 9.5.). Below are the steps

1) Selecting features and getting them into selectionset.
2) Creating update cursor from selectionset.
3) Looping through cursor
4) Start Editing
5) Start Edit Operation
6) Cursor.UpdateFeature(Feature).
7) Stop Operation
😎 Stop Editing (true)

All steps are executing fine and updating data successfully when selectionset contains less no of features.
If selectionset contain more no of features  Cursor.UpdateFeature(Feature) throwing below exception.

" System.Runtime.InteropServices.COMException (0x800415C0): Function requires a state to be set for stream
   at ESRI.ArcGIS.Geodatabase.IFeatureCursor.UpdateFeature(IFeature Object) "


Please suggest me any one what is wrong in my flow?
Or any settings need to do at sde level ?

Thanks & Regards
Janardhan Gangineni
Tags (2)
0 Kudos
1 Reply
janardhangangineni
New Contributor
Hi,

Any one looking this forum?
I am eagerly waiting for any small suggestion.Any way providing environmental details of the same.

ArcSDE 9.3.1
ArcGIS 9.3.1
IBM DB2 9.5

Any help would be greatly appreciated.

Thanks & Regards
Janardhan Gangineni
0 Kudos