ERROR

Run Time Error: Insufficient Permissions

Last Published: April 25, 2020

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

Article ID:000002720

Software:
  • ArcMap 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic