<?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 Insufficient Permissions when using IFeatureClass.CreateFeature in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384621#M10196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have connected successfully to an sde database using an IFeatureWorkspace, and have an IFeatureClass object for the feature class I want to work with.&amp;nbsp; When connected as a user that is NOT the owner of any feature classes, but that does have SELECT, INSERT, UPDATE, and DELETE permissions (using ISQLPrivilege) on the feature class, I am able to update existing features, but not create new ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To update, I use the IFeatureClass.GetFeature method to return an IFeature, I update the appropriate field values, and I call IFeature.Store, which updates the feature in the feature class successfully.&amp;nbsp; However, if I use IFeatureClass.CreateFeature to create a new feature to store in the feature class, I get an 'Insufficient Permissions' error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried wrapping the operations in an IWorkspaceEdit edit session and edit operation, but that doesn't have any effect in this case.&amp;nbsp; If I connect as the feature class owner, this all works fine, so it would seem that the approach is ok, minus this permission issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 14:03:11 GMT</pubDate>
    <dc:creator>TravisSparks</dc:creator>
    <dc:date>2011-10-27T14:03:11Z</dc:date>
    <item>
      <title>Insufficient Permissions when using IFeatureClass.CreateFeature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384621#M10196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have connected successfully to an sde database using an IFeatureWorkspace, and have an IFeatureClass object for the feature class I want to work with.&amp;nbsp; When connected as a user that is NOT the owner of any feature classes, but that does have SELECT, INSERT, UPDATE, and DELETE permissions (using ISQLPrivilege) on the feature class, I am able to update existing features, but not create new ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To update, I use the IFeatureClass.GetFeature method to return an IFeature, I update the appropriate field values, and I call IFeature.Store, which updates the feature in the feature class successfully.&amp;nbsp; However, if I use IFeatureClass.CreateFeature to create a new feature to store in the feature class, I get an 'Insufficient Permissions' error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried wrapping the operations in an IWorkspaceEdit edit session and edit operation, but that doesn't have any effect in this case.&amp;nbsp; If I connect as the feature class owner, this all works fine, so it would seem that the approach is ok, minus this permission issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384621#M10196</guid>
      <dc:creator>TravisSparks</dc:creator>
      <dc:date>2011-10-27T14:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Permissions when using IFeatureClass.CreateFeature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384622#M10197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens when you try creating a new feature in this feature class using ArcMap?&amp;nbsp; If you get a similar error then the problem is probably on the database side rather than in your code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 19:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384622#M10197</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-10-27T19:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Permissions when using IFeatureClass.CreateFeature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384623#M10198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turns out I hadn't set the user privileges on the feature class inside ArcCatalog.&amp;nbsp; Is there some way to determine these feature class permissions via code?&amp;nbsp; I've been using the following, where PrimaryCPFeatureClass is a populated feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDataset dataset = (IDataset)PrimaryCPFeatureClass;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDatasetName datasetName = (IDatasetName)dataset.FullName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISQLPrivilege sqlPriv = (ISQLPrivilege)datasetName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sqlPriv object was providing the privileges as they exist on the underlying SQL table, but apparently not the privileges of the sde feature class itself, which is what I need access to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 19:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/insufficient-permissions-when-using-ifeatureclass/m-p/384623#M10198</guid>
      <dc:creator>TravisSparks</dc:creator>
      <dc:date>2011-10-28T19:55:36Z</dc:date>
    </item>
  </channel>
</rss>

