<?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 supportsTruncate flag in AGOL hosted feature service not respected in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/supportstruncate-flag-in-agol-hosted-feature/m-p/414253#M20736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have discovered that the supportsTruncate flag in the admin layer definition is not being respected as it is possible to use&amp;nbsp;an admin REST truncate call to truncate data that has that flag set to false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="supportsTruncate flag in admin layer definition" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/496016_supportsTruncate.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, it is possible to use the admin REST truncate call on an AGOL hosted feature service&amp;nbsp;with sync enabled despite the REST documentation saying otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="REST truncate documentation" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/496017_rest_truncate.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also discovered that FME has an option in the AGOL writer that enables truncate and insert that seems to use the admin REST truncate call as the OBJECTIDs are reset to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is extremely concerning as in a database only the schema owner can truncate the data, but the admin truncate REST call is potentially accessible to several users and if the supportsTruncate flag is not respected it is possible for users to inadvertently empty datasets in AGOL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2020 15:46:11 GMT</pubDate>
    <dc:creator>BillSouter2</dc:creator>
    <dc:date>2020-06-09T15:46:11Z</dc:date>
    <item>
      <title>supportsTruncate flag in AGOL hosted feature service not respected</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/supportstruncate-flag-in-agol-hosted-feature/m-p/414253#M20736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have discovered that the supportsTruncate flag in the admin layer definition is not being respected as it is possible to use&amp;nbsp;an admin REST truncate call to truncate data that has that flag set to false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="supportsTruncate flag in admin layer definition" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/496016_supportsTruncate.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, it is possible to use the admin REST truncate call on an AGOL hosted feature service&amp;nbsp;with sync enabled despite the REST documentation saying otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="REST truncate documentation" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/496017_rest_truncate.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also discovered that FME has an option in the AGOL writer that enables truncate and insert that seems to use the admin REST truncate call as the OBJECTIDs are reset to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is extremely concerning as in a database only the schema owner can truncate the data, but the admin truncate REST call is potentially accessible to several users and if the supportsTruncate flag is not respected it is possible for users to inadvertently empty datasets in AGOL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 15:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/supportstruncate-flag-in-agol-hosted-feature/m-p/414253#M20736</guid>
      <dc:creator>BillSouter2</dc:creator>
      <dc:date>2020-06-09T15:46:11Z</dc:date>
    </item>
  </channel>
</rss>

