<?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: Field 'syncEnabled' cannot be updated. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-syncenabled-cannot-be-updated/m-p/1415219#M9935</link>
    <description>&lt;P&gt;I recently ran into this issue as well and found your question here. I was not able to adjust the "syncEnabled" field of a hosted Feature Layer through Python, but manually it works fine. Following the documentation as described on&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-service-.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-service-.htm&lt;/A&gt;&amp;nbsp;to adjust the "syncEnabled" setting would not work:&lt;/P&gt;&lt;P&gt;Adding the JSON code &lt;STRONG&gt;{"syncEnabled": true}&lt;/STRONG&gt;&amp;nbsp;to the "updateDefinition" parameter gives me the response "Field 'syncEnabled' cannot be updated".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;The solution&lt;/H4&gt;&lt;P&gt;Fortunately, I figured out how this can be done by checking the actual request being made while changing this setting manually, through the Developer Tools Interface (Press F12). Here I found out that the "updateDefinition" field of the request contained the JSON code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{"capabilities":"Query,Sync"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Using this value instead does update this setting on the hosted Feature Layer.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 10:25:06 GMT</pubDate>
    <dc:creator>AndreasHolterman</dc:creator>
    <dc:date>2024-04-25T10:25:06Z</dc:date>
    <item>
      <title>Field 'syncEnabled' cannot be updated.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-syncenabled-cannot-be-updated/m-p/1287748#M8677</link>
      <description>&lt;P&gt;Software:&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.9.8&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 10.9.1 on a three-tiered system (ArcGIS Server and Data Store on separate server, Web Adaptor and Portal on separate servers).&amp;nbsp; IWA enabled and we are using a Net-Scaler to front the entry into Portal.&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;We have created a collaboration between our internal Portal and AGOL.&amp;nbsp; The content being shared is from a file geodatabase that resides on our ArcGIS Server.&amp;nbsp; In addition, the content must be hosted, and sync enabled because we want users to have the ability to download the content from AGOL and collaboration requires the "sync" be enabled.&lt;/P&gt;&lt;P&gt;The problem is updating the content.&amp;nbsp; In order to update the content, sync must be disabled.&amp;nbsp; I am trying to do this programmatically, however, I keep getting an error when trying to update the data dictionary: Field 'syncEnabled' cannot be updated.&lt;/P&gt;&lt;P&gt;I have administrator privileges and followed some of the online examples, yet this still does not work.&amp;nbsp; Does anyone know why?&amp;nbsp; Why can I do this manually but not via Python.&amp;nbsp; Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;JL&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 15:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/field-syncenabled-cannot-be-updated/m-p/1287748#M8677</guid>
      <dc:creator>Big-Chill</dc:creator>
      <dc:date>2023-05-10T15:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field 'syncEnabled' cannot be updated.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/field-syncenabled-cannot-be-updated/m-p/1415219#M9935</link>
      <description>&lt;P&gt;I recently ran into this issue as well and found your question here. I was not able to adjust the "syncEnabled" field of a hosted Feature Layer through Python, but manually it works fine. Following the documentation as described on&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-service-.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-service-.htm&lt;/A&gt;&amp;nbsp;to adjust the "syncEnabled" setting would not work:&lt;/P&gt;&lt;P&gt;Adding the JSON code &lt;STRONG&gt;{"syncEnabled": true}&lt;/STRONG&gt;&amp;nbsp;to the "updateDefinition" parameter gives me the response "Field 'syncEnabled' cannot be updated".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;The solution&lt;/H4&gt;&lt;P&gt;Fortunately, I figured out how this can be done by checking the actual request being made while changing this setting manually, through the Developer Tools Interface (Press F12). Here I found out that the "updateDefinition" field of the request contained the JSON code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{"capabilities":"Query,Sync"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Using this value instead does update this setting on the hosted Feature Layer.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 10:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/field-syncenabled-cannot-be-updated/m-p/1415219#M9935</guid>
      <dc:creator>AndreasHolterman</dc:creator>
      <dc:date>2024-04-25T10:25:06Z</dc:date>
    </item>
  </channel>
</rss>

