AnsweredAssumed Answered

Workspace or data source is read only on create a new row

Question asked by Osaid_Alaraj_LearnArcGIS on Sep 15, 2020
Latest reply on Sep 22, 2020 by HSun-esristaff

when i try to create a new row in a many to many relational class using this code

 

ITable DuctsToCablesTable = (ITable)this.mapServerDataAccess.GetDataSource(this.mapServerInfo.Name, this.DuctsToCablesId);
IDataset mapdataset = (IDataset)DuctsToCablesTable;
IWorkspace esmap = mapdataset.Workspace;
IWorkspaceEdit eswditemap = (IWorkspaceEdit)esmap;
eswditemap.StartEditing(true);
IRow row = DuctsToCablesTable.CreateRow();

 

This error appears to me

 

System.Runtime.InteropServices.COMException
HResult=0x80040263
Message=Workspace or data source is read only.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>

 

any one can please help me ?

Outcomes