<?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: Can't set integer to null with Feature Service REST update in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419359#M16274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: oppedahl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help ESRI!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2012 13:29:08 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-09-20T13:29:08Z</dc:date>
    <item>
      <title>Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419356#M16271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: oppedahl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a feature class published to a Feature Service with one of its attributes a nullable integer with no default value defined. I'm trying to edit the attribute with the REST API's Update operation. It works if I set it to a number, but saving null doesn't work. There's no error--the call goes through fine--but the value remains unchanged. Is it not allowed to set a numeric field to null once it's been set to something else? I can set it to null just fine in ArcMap. Here's a snippet of the JSON I'm sending to the update: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "attributes": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OBJECTID_1": 1234,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "AnInt": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 14:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419356#M16271</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-09-07T14:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419357#M16272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: oppedahl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bump. Anyone from ESRI? I can blank out a string field by setting it to an empty string, but how do I blank out other data types since null appears to be ignored?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:06:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419357#M16272</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-09-11T18:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419358#M16273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ditto.&amp;nbsp; I am unable to set integers to null since null parameters appear to be ignored.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is my json (captured directly by Fiddler), and I am unable to update the fields HabitGroup and PlantCount to null.&amp;nbsp; As you can see, they are included in the json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;updates=[{"geometry":null,"attributes":{"OBJECTID":78433,"PlantingNumber":"2012-0698-1","TaxonName":"Boltonia asteroides 'Pink Beauty' ","PrimaryCommonName":"false aster","GridCoordinates":null,"HabitGroup":null,"Honoree":null,"PlantCount":null,"GardenArea":"KCLA","GardenBed":"","created_user":null,"last_edited_user":null,"created_date":null,"last_edited_date":null}}]&amp;amp;f=json&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 20:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419358#M16273</guid>
      <dc:creator>JayPaige</dc:creator>
      <dc:date>2012-09-13T20:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419359#M16274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: oppedahl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help ESRI!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 13:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419359#M16274</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-09-20T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419360#M16275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same problem with fields of the type 'date'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I send this JSON:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"Systime_from": 1195826644000,
"Systime_to": null&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;These are the field definitions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Systime_from ( type: esriFieldTypeDate , alias: Systime_from , editable: true , nullable: false , length: 36 )
Systime_to ( type: esriFieldTypeDate , alias: Systime_to , editable: true , nullable: true , length: 36 )&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'Systime_to' will be set to the Jan 1, 1970 in the database, so it seems like it is treated as '0' and then parsed to a date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I omit this attribute in the request, the attribute is not updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the same issue, as the datetime here is also an integer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug, or what is the correct way to update an attribute to NULL?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419360#M16275</guid>
      <dc:creator>NilsRydh</dc:creator>
      <dc:date>2021-12-11T18:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419361#M16276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: KG22&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am experiencing similar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419361#M16276</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-01T12:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419362#M16277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: oppedahl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is still a breaking issue for our application, and there doesn't seem to be a workaround. Are we missing something or is this a bug in the REST service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:40:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419362#M16277</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-02T14:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419363#M16278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anybody know if this has been reported to the secret Esri bug database?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 18:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419363#M16278</guid>
      <dc:creator>NilsRydh</dc:creator>
      <dc:date>2012-10-02T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419364#M16279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: kpeter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be best if you contacted Esri Support.&amp;nbsp; One of our engineers in development just tried this and was not able to replicate the problem.&amp;nbsp; We'd need to know all the details (versions of software used, database...) to truly replicate and debug, so Support is the place to collect this information and get the ball rolling.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 19:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419364#M16279</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-02T19:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419365#M16280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing to check is the server log. It may have more detailed information on why you are getting an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 22:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419365#M16280</guid>
      <dc:creator>GaryMacDougall</dc:creator>
      <dc:date>2012-10-02T22:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419366#M16281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: oppedahl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has been confirmed as a bug by ESRI: #NIM085862 Using REST to setting a feature service feature value to null returns success message but does not modify value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 11:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419366#M16281</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-23T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419367#M16282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ugh. Not good news. I wonder if they stuck the fix in the next sp. which is supposed to be released in October although we only have one week left.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/419367#M16282</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-10-23T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/1381500#M38596</link>
      <description>&lt;P&gt;Massive stretch here given the time passed... Has anyone seen this issue reappear since? We're seeing the exact same thing in our application currently in development, but can't be certain when it started occurring.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/can-t-set-integer-to-null-with-feature-service/m-p/1381500#M38596</guid>
      <dc:creator>DaleGeo24</dc:creator>
      <dc:date>2024-02-13T11:02:44Z</dc:date>
    </item>
  </channel>
</rss>

