<?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: Use JSON to set &amp;quot;nullable&amp;quot; : false in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224670#M11087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you submitting the edit? Through the rest endpoint? Can you share the specific workflow that you are following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 22:29:46 GMT</pubDate>
    <dc:creator>KellyGerrow</dc:creator>
    <dc:date>2017-02-03T22:29:46Z</dc:date>
    <item>
      <title>Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224669#M11086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set a few fields to required using JSON to update a layer in a hosted feature service. I have&lt;/P&gt;&lt;P&gt;"nullable" : false,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I update the layer it never makes the change. &amp;nbsp;I have made other changes successfully in the past, to this same service. &amp;nbsp;Is there another spot that needs to be edited for this change to stick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I published a second service to try and see the differences but was unable to glean anything from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 19:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224669#M11086</guid>
      <dc:creator>TomKearns</dc:creator>
      <dc:date>2017-02-01T19:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224670#M11087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you submitting the edit? Through the rest endpoint? Can you share the specific workflow that you are following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 22:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224670#M11087</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2017-02-03T22:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224671#M11088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks. &amp;nbsp;I am submitting the edit using the 'update definition'&amp;nbsp;the rest in rest/admin/service. &amp;nbsp;I have no problems updating domains or other items in this manner but when I try the nullable it states:&amp;nbsp;Updated Feature Service Layer: &lt;EM&gt;name&amp;nbsp;&lt;/EM&gt; but if I click through on the layer name it shows nothing was changed. &amp;nbsp;My JSON is good, I use JSONLint but it shouldn't really be necessary in this case since I am just changing a true to false. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also hosted a new featureclass with a nullable: false and cannot change its status to true. &amp;nbsp;So I cant alter the status in either direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224671#M11088</guid>
      <dc:creator>TomKearns</dc:creator>
      <dc:date>2017-02-06T16:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224672#M11089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Related, I cannot update the field name either. I can add a selection to a domain and that seems like it. &amp;nbsp;I feel like all of this should be possible with the JSON.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224672#M11089</guid>
      <dc:creator>TomKearns</dc:creator>
      <dc:date>2017-02-06T17:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224673#M11090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will research this and get back to you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224673#M11090</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2017-02-06T19:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224674#M11091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there was any progress on this issue? &amp;nbsp;It would be very helpful to not have to repost a service for every small change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 23:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224674#M11091</guid>
      <dc:creator>TomKearns</dc:creator>
      <dc:date>2017-03-06T23:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224675#M11092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for following up and I apologize for the slow reply. The update definition call only supports updates to the domain and alias fields. Modifying the nullable property and editable property for an existing field is not possible through the JSON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, you can create a new field with the desired properties, Use the&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Add_to_Definition_Feature_Layer/02r300000228000000/"&gt; add to definition &lt;/A&gt;call and specify that the field is not-nullable. You can then use the calculate API to move the values from the field with the incorrect settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample JSON for add to definition:&lt;/P&gt;&lt;P&gt;{"fields":[{"name":"testfiled","type":"esriFieldTypeString","alias":"not Nullable","nullable":false,"editable":true,"length":256,"defaultValue":"250"}]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224675#M11092</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2017-03-08T16:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224676#M11093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for chasing this down. &amp;nbsp;The workaround should be sufficient. &amp;nbsp;I have not re-ordered the fields in AGOL but I suspect it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a note on the example,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"editable":True, needs to have a lowercase true. &amp;nbsp;Straight copy paste won't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 00:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224676#M11093</guid>
      <dc:creator>TomKearns</dc:creator>
      <dc:date>2017-03-10T00:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224677#M11094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated the text in the sample I have!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 23:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224677#M11094</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2017-03-10T23:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON to set "nullable" : false</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224678#M11095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hitting the same issue. So, the Field name itself cannot be changed, either? I really need to change "nullable" from false to true for a certain field. I have a hosted feature layer being populated by a native phone app. I'm OK losing current data. Would it not work to change "PollutionCounty" to "PollutionCounty1" and then create a new nullable "PollutionCounty"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 23:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-json-to-set-quot-nullable-quot-false/m-p/224678#M11095</guid>
      <dc:creator>deleted-user-LNABNwA5CZcD</dc:creator>
      <dc:date>2017-10-02T23:33:33Z</dc:date>
    </item>
  </channel>
</rss>

