<?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: ArcMap Definition Queries When Publishing to AGOL Hosted Layers in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524061#M26451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of applying a definition query when publishing, I would recommend using a hosted feature layer view:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can manage the definition query (view definition) through the ArcGIS Online interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2019 21:42:08 GMT</pubDate>
    <dc:creator>KellyGerrow</dc:creator>
    <dc:date>2019-07-01T21:42:08Z</dc:date>
    <item>
      <title>ArcMap Definition Queries When Publishing to AGOL Hosted Layers</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524058#M26448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has there been a recent change in behaviour with ArcGIS Online when publishing a feature layer in ArcMap that has a definition query applied to it? I could have sworn that a few months ago when I published a layer with a query that it just ignored the query and published all the data anyway.&amp;nbsp; This ties up with the help page&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/arcgis-online/share-maps/hosted-web-layers.htm" title="https://doc.arcgis.com/en/arcgis-online/share-maps/hosted-web-layers.htm"&gt;About hosted web layers—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which states:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Be aware that definition queries you apply to layers in ArcMap or &lt;SPAN class=""&gt;ArcGIS Pro&lt;/SPAN&gt; are only applied when querying, not when the data is published. &lt;SPAN class=""&gt;All data is published and uploaded to &lt;SPAN class=""&gt;ArcGIS Online&lt;/SPAN&gt;. If you want only a subset of the data to be published to and stored in &lt;SPAN class=""&gt;ArcGIS Online&lt;/SPAN&gt;, you must export the subset of the data to another feature class and publish that.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;However I have tried uploading layers with definition queries in the last couple of weeks and it now seems to honour the definition query and only upload the filtered records. Is it just the case that the documentation is out of date?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I had wondered if it was to do with the version of ArcGIS Desktop but I get the same result in both 10.1 and 10.3.1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Gareth&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524058#M26448</guid>
      <dc:creator>GarethBaker</dc:creator>
      <dc:date>2016-10-13T16:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap Definition Queries When Publishing to AGOL Hosted Layers</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524059#M26449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 16:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524059#M26449</guid>
      <dc:creator>Team_150Water_en_Bodem</dc:creator>
      <dc:date>2019-03-13T16:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap Definition Queries When Publishing to AGOL Hosted Layers</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524060#M26450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the layer definition query is being honored, even so that when you change the name of the layer on the AGOL side to something else in an edit session it will completely disappear since the query no longer adheres to the name of the layer in the attribute table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something somewhere that will allow me to edit the definition query within AGOL layer settings? I can't seem to find anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 15:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524060#M26450</guid>
      <dc:creator>MarkSenne</dc:creator>
      <dc:date>2019-07-01T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap Definition Queries When Publishing to AGOL Hosted Layers</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524061#M26451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of applying a definition query when publishing, I would recommend using a hosted feature layer view:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can manage the definition query (view definition) through the ArcGIS Online interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 21:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcmap-definition-queries-when-publishing-to-agol/m-p/524061#M26451</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2019-07-01T21:42:08Z</dc:date>
    </item>
  </channel>
</rss>

