<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Workspace or data source is read only on create a new row in ArcGIS Enterprise Extensibility Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/workspace-or-data-source-is-read-only-on-create-a/m-p/877901#M213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i try to create a new row in a many to many relational class using this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITable DuctsToCablesTable = (ITable)this.mapServerDataAccess.GetDataSource(this.mapServerInfo.Name, this.DuctsToCablesId);&lt;BR /&gt; IDataset mapdataset = (IDataset)DuctsToCablesTable;&lt;BR /&gt; IWorkspace esmap = mapdataset.Workspace;&lt;BR /&gt; IWorkspaceEdit eswditemap = (IWorkspaceEdit)esmap;&lt;BR /&gt; eswditemap.StartEditing(true);&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;IRow row = DuctsToCablesTable.CreateRow();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error appears to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.Runtime.InteropServices.COMException&lt;BR /&gt; HResult=0x80040263&lt;BR /&gt; Message=Workspace or data source is read only.&lt;BR /&gt; Source=&amp;lt;Cannot evaluate the exception source&amp;gt;&lt;BR /&gt; StackTrace:&lt;BR /&gt;&amp;lt;Cannot evaluate the exception stack trace&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one can please help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2020 23:13:56 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-09-15T23:13:56Z</dc:date>
    <item>
      <title>Workspace or data source is read only on create a new row</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/workspace-or-data-source-is-read-only-on-create-a/m-p/877901#M213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i try to create a new row in a many to many relational class using this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITable DuctsToCablesTable = (ITable)this.mapServerDataAccess.GetDataSource(this.mapServerInfo.Name, this.DuctsToCablesId);&lt;BR /&gt; IDataset mapdataset = (IDataset)DuctsToCablesTable;&lt;BR /&gt; IWorkspace esmap = mapdataset.Workspace;&lt;BR /&gt; IWorkspaceEdit eswditemap = (IWorkspaceEdit)esmap;&lt;BR /&gt; eswditemap.StartEditing(true);&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;IRow row = DuctsToCablesTable.CreateRow();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error appears to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.Runtime.InteropServices.COMException&lt;BR /&gt; HResult=0x80040263&lt;BR /&gt; Message=Workspace or data source is read only.&lt;BR /&gt; Source=&amp;lt;Cannot evaluate the exception source&amp;gt;&lt;BR /&gt; StackTrace:&lt;BR /&gt;&amp;lt;Cannot evaluate the exception stack trace&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one can please help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 23:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/workspace-or-data-source-is-read-only-on-create-a/m-p/877901#M213</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-15T23:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace or data source is read only on create a new row</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/workspace-or-data-source-is-read-only-on-create-a/m-p/877902#M214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to edit the map service's data source using IM&lt;SPAN style="background-color: #ffffff;"&gt;apServerDataAccess.GetDataSource, y&lt;/SPAN&gt;our&amp;nbsp;map service's data source needs to be in a registered enterprise geodatabase (you don't have to check the Feature Access capability though)&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If your map service's data source is from a file geodatabase, registered folder, or copied to server, then the service's data is not editable via SOE/SOI, because the service itself in this case is read-only and not editable, and so is the service's data source/workspace.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;However, you can edit data (such as a file gdb feature class) in SOE/SOI via direct access to the data through&amp;nbsp;WorkspaceFactory (such as IWorkspaceFactory.OpenFromFile), instead of the service access (&lt;SPAN&gt;IM&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;apServerDataAccess.GetDataSource&lt;/SPAN&gt;). In this scenario, your arcgis server account must have permission to access the data (such as the .gdb), in other words, the data must be at a location where server account has permission to access.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2020 19:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/workspace-or-data-source-is-read-only-on-create-a/m-p/877902#M214</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-22T19:09:15Z</dc:date>
    </item>
  </channel>
</rss>

