<?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 REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328425#M1602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no problem with empty strings if the field does not have a forein key but if it has (like in my case), it is a problem....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 16:59:27 GMT</pubDate>
    <dc:creator>MiriEshel</dc:creator>
    <dc:date>2012-12-19T16:59:27Z</dc:date>
    <item>
      <title>Can't set integer to null with Feature Service REST update</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328420#M1597</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 10.1 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;"attributes": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"OBJECTID_1": 1234,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"AnInt": null,&lt;/SPAN&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;]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 14:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328420#M1597</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-09-07T14:21:05Z</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-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328421#M1598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: miri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you ever got an answer for your question or any workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328421#M1598</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-12-19T16:22:33Z</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-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328422#M1599</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;Yes, it's been logged as a bug. See this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/66425-Can-t-set-integer-to-null-with-Feature-Service-REST-update"&gt;http://forums.arcgis.com/threads/66425-Can-t-set-integer-to-null-with-Feature-Service-REST-update&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:28:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328422#M1599</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-12-19T16:28:43Z</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-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328423#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not only integer fields but also string fields. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope they will fix it quickly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:49:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328423#M1600</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2012-12-19T16:49: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-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328424#M1601</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;At least for strings you can set the value to an empty string, which might be OK depending on your application. But there's no alternative for other types like numbers and dates. The bug currently shows a severity of Critical and was last edited on 11/20, for whatever that's worth. 10.1 didn't fix it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328424#M1601</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-12-19T16:57:07Z</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-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328425#M1602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no problem with empty strings if the field does not have a forein key but if it has (like in my case), it is a problem....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328425#M1602</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2012-12-19T16:59:27Z</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-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328426#M1603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My client is working in ESRI Collector and it appears that this issue still occurs. Is this still a known bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 20:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/can-t-set-integer-to-null-with-feature-service/m-p/328426#M1603</guid>
      <dc:creator>AndrewNeuman</dc:creator>
      <dc:date>2017-05-05T20:58:51Z</dc:date>
    </item>
  </channel>
</rss>

