<?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 ArcGIS Rest Services Problem in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-problem/m-p/463641#M2180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have published a Layer Service on a self-created portal. After I have checked the service definition I saw that "Shape__Area" and "Shape__Length" fields are disabled. I am now trying to update feature service definition through the REST Url to enable them from JSON. "&lt;A class="link-titled" href="https://portal.gissolutions.ro/server/rest/admin/services/Hosted/Sector45/FeatureServer/1/addToDefinition" title="https://portal.gissolutions.ro/server/rest/admin/services/Hosted/Sector45/FeatureServer/1/addToDefinition"&gt;https://&amp;lt;myPortalUrl&amp;gt;/server/rest/admin/services/Hosted/&amp;lt;nameOfLayerService&amp;gt;/FeatureServer/1/addToDefinition&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add the following JSON configurations:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"hasGeometryProperties" : true,&lt;BR /&gt; "geometryProperties" : &lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"shapeAreaFieldName" : "Shape__Area",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"shapeLengthFieldName" : "Shape__Length"&lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No matter what I try, either updateDefinition or addToDefinition after I hit the button I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error code : 500&lt;/P&gt;&lt;P&gt;Message:&amp;nbsp;"Field '&lt;SPAN style="background-color: #f6f6f6;"&gt;hasGeometryProperties&lt;/SPAN&gt;' cannot be updated."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why is this happening and how can I solve it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, If I try to change other attributes (say for example "name") it works perfectly, but "hasGeometryProperties" is not the only field which is getting this error. Other attributes generate same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 May 2018 08:25:59 GMT</pubDate>
    <dc:creator>FlorentinBoda2</dc:creator>
    <dc:date>2018-05-05T08:25:59Z</dc:date>
    <item>
      <title>ArcGIS Rest Services Problem</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-problem/m-p/463641#M2180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have published a Layer Service on a self-created portal. After I have checked the service definition I saw that "Shape__Area" and "Shape__Length" fields are disabled. I am now trying to update feature service definition through the REST Url to enable them from JSON. "&lt;A class="link-titled" href="https://portal.gissolutions.ro/server/rest/admin/services/Hosted/Sector45/FeatureServer/1/addToDefinition" title="https://portal.gissolutions.ro/server/rest/admin/services/Hosted/Sector45/FeatureServer/1/addToDefinition"&gt;https://&amp;lt;myPortalUrl&amp;gt;/server/rest/admin/services/Hosted/&amp;lt;nameOfLayerService&amp;gt;/FeatureServer/1/addToDefinition&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add the following JSON configurations:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"hasGeometryProperties" : true,&lt;BR /&gt; "geometryProperties" : &lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"shapeAreaFieldName" : "Shape__Area",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"shapeLengthFieldName" : "Shape__Length"&lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No matter what I try, either updateDefinition or addToDefinition after I hit the button I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error code : 500&lt;/P&gt;&lt;P&gt;Message:&amp;nbsp;"Field '&lt;SPAN style="background-color: #f6f6f6;"&gt;hasGeometryProperties&lt;/SPAN&gt;' cannot be updated."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why is this happening and how can I solve it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, If I try to change other attributes (say for example "name") it works perfectly, but "hasGeometryProperties" is not the only field which is getting this error. Other attributes generate same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 08:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-problem/m-p/463641#M2180</guid>
      <dc:creator>FlorentinBoda2</dc:creator>
      <dc:date>2018-05-05T08:25:59Z</dc:date>
    </item>
  </channel>
</rss>

