<?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 Error on applyEdits in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-on-applyedits/m-p/831297#M503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to update an attribute via a feature service, but keep getting an error 'TypeError: n.setAttributes is not a function at a._editHandler'.&amp;nbsp; I'm using JS API 3.15.&amp;nbsp; Although the error is returned, the attribute is updated successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var attr = {status: 0, OBJECTID: 1};&lt;/P&gt;&lt;P&gt;var edits = [{attributes: attr}];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var def = statusFeatureLayer.applyEdits(null, edits, null);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def.then(function(result) {&lt;/P&gt;&lt;P&gt; console.log(result);&lt;/P&gt;&lt;P&gt;}, function(error) {&lt;/P&gt;&lt;P&gt; console.log(error);&amp;nbsp; &amp;lt;-- TypeError: n.setAttributes is not a function at a._editHandler&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could be causing this error?&amp;nbsp; I've also tried using JS API version 3.14, but got the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 07:25:29 GMT</pubDate>
    <dc:creator>JerryStafurik</dc:creator>
    <dc:date>2016-01-20T07:25:29Z</dc:date>
    <item>
      <title>Error on applyEdits</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-on-applyedits/m-p/831297#M503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to update an attribute via a feature service, but keep getting an error 'TypeError: n.setAttributes is not a function at a._editHandler'.&amp;nbsp; I'm using JS API 3.15.&amp;nbsp; Although the error is returned, the attribute is updated successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var attr = {status: 0, OBJECTID: 1};&lt;/P&gt;&lt;P&gt;var edits = [{attributes: attr}];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var def = statusFeatureLayer.applyEdits(null, edits, null);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def.then(function(result) {&lt;/P&gt;&lt;P&gt; console.log(result);&lt;/P&gt;&lt;P&gt;}, function(error) {&lt;/P&gt;&lt;P&gt; console.log(error);&amp;nbsp; &amp;lt;-- TypeError: n.setAttributes is not a function at a._editHandler&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could be causing this error?&amp;nbsp; I've also tried using JS API version 3.14, but got the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-on-applyedits/m-p/831297#M503</guid>
      <dc:creator>JerryStafurik</dc:creator>
      <dc:date>2016-01-20T07:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error on applyEdits</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-on-applyedits/m-p/831298#M504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The applyEdits method is expecting a array of features, which is really an array of graphics. You are just passing an object that has an attributes property?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-on-applyedits/m-p/831298#M504</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-02-04T21:42:19Z</dc:date>
    </item>
  </channel>
</rss>

