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

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options