<?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 Re: Insert (add) fails in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760235#M70458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that error normally corresponds to permissions issues...which is strange since you can update and delete without issue. Can you double-check that you have full permissions granted on your feature class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 23:17:27 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-05-25T23:17:27Z</dc:date>
    <item>
      <title>Insert (add) fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760234#M70457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some simple point data in an ArcSDE geodatabase, I have published the data to ArcGIS Server, and I'm getting my feet wet with the JavaScript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;samples provided&lt;/A&gt;&lt;SPAN&gt;, and substituting my FeatureServers, I can get updates and deletes to work fine, but adds (inserts) do not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The response to the applyEdits on an insert is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;{"addResults":[{"objectId":-1,"globalId" : null,"success":false,"error":{"code":-2147216100,"description":"Error while inserting populated row into Insert Cursor"}}],"updateResults":[],"deleteResults":[]}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren M&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 21:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760234#M70457</guid>
      <dc:creator>WarrenMedernach</dc:creator>
      <dc:date>2011-05-25T21:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert (add) fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760235#M70458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that error normally corresponds to permissions issues...which is strange since you can update and delete without issue. Can you double-check that you have full permissions granted on your feature class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 23:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760235#M70458</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-25T23:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert (add) fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760236#M70459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's what I suspected as well, but the ArcGISSOC user has db_datareader and db_datawriter permissions and db_datawriter is supposed to have &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ms189612.aspx"&gt;DELETE, INSERT and UPDATE&lt;/A&gt;&lt;SPAN&gt; permissions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But alas, this seems to not be the case, at least as far as ArcGIS Server is concerned...&amp;nbsp; If I give the AcrGISSOC user db_owner permission, the inserts work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So...&amp;nbsp; that confirms it is a permission issue, but now I need to figure out how to do this without giving db_owner permissions...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren M&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 03:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760236#M70459</guid>
      <dc:creator>WarrenMedernach</dc:creator>
      <dc:date>2011-05-26T03:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Insert (add) fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760237#M70460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assigning permissions via roles might be a bit of overkill in this situation...what about assigning permissions directly on the feature class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 03:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760237#M70460</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-26T03:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert (add) fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760238#M70461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting the same error but it doesn't happen every time. It also only happens when I am saving a drawn polygon and not a point or line. I can't find a consistent action that triggers it either. Could this still be a permissions thing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 17:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-add-fails/m-p/760238#M70461</guid>
      <dc:creator>AndyStewart1</dc:creator>
      <dc:date>2012-07-20T17:19:05Z</dc:date>
    </item>
  </channel>
</rss>

