English

Error: Run Time Error: Insufficient Permissions

Error Message

Editing a versioned SDE geodatabase using ArcObjects returns:

Run Time Error: Insufficient Permissions

Cause

Programmatic edits to an SDE geodatabase require at least one edit operation.

Solution or Workaround

Group your edits between the StartEditOperation and StopEditOperation methods. All edits can be made within a single edit operation.

Code:
'Start the Edit Operation
pEditor.StartEditing pWorkspace
pEditor.StartOperation

'Store the new feature
Dim pfeat As IFeature
Set pfeat = pFeatcls.CreateFeature
Set pfeat.Shape = tmpPoint
pfeat.Store

'Stop the Edit Operation
pEditor.StopOperation "StopOp"
pEditor.StopEditing True