<?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: ArcGIS Online Vector Tile Service not caching attributes in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124850#M1060</link>
    <description>&lt;P&gt;Good Morning Chris,&lt;/P&gt;&lt;P&gt;Did you rebuild the tile cache?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 14:30:39 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2021-12-10T14:30:39Z</dc:date>
    <item>
      <title>ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123490#M1055</link>
      <description>&lt;P&gt;I'm trying to host Vector Tiles for a large, global point dataset (~35 million records).&amp;nbsp; The data has one attribute, a float.&amp;nbsp; The intention is to host the tiles for consumption in a MapboxGL application.&lt;/P&gt;&lt;P&gt;AGOL isn't building the vector tiles with this attribute, after enabling it.&amp;nbsp; I have enabled the attributes checkbox in 'Settings', and the tile cache was rebuilt, however the attribute is not part of the tile layer when tested in my application.&amp;nbsp; Currently AGOL shows the attribute as enabled.&lt;/P&gt;&lt;P&gt;Is this perhaps a problem with large datasets?&amp;nbsp; Or is there anything else I can do to force, or at least debug, the tile cache build process?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Note that I could try Mapbox Vector Tile Service next, but since my organization already uses Arc it would be best to do this through AGOL)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123490#M1055</guid>
      <dc:creator>ChrisLowrie1</dc:creator>
      <dc:date>2021-12-07T18:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123537#M1056</link>
      <description>&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;Could you add another field as a "text" and calculate the new field with values from the float field and then rebuild the cache to see if that works?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 20:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123537#M1056</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-07T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123541#M1057</link>
      <description>&lt;P&gt;I can give that a try.&amp;nbsp; Do you have a theory as to why text would work but float would not?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 20:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123541#M1057</guid>
      <dc:creator>ChrisLowrie1</dc:creator>
      <dc:date>2021-12-07T20:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123542#M1058</link>
      <description>&lt;P&gt;Just a hunch.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 20:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1123542#M1058</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-07T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124638#M1059</link>
      <description>&lt;P&gt;Unfortunately this doesn't appear to change the tile properties.&amp;nbsp; Attributes are still shown as present in the AGOL portal, but are not present on the tiles in a client, including when converted to text.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 22:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124638#M1059</guid>
      <dc:creator>ChrisLowrie1</dc:creator>
      <dc:date>2021-12-09T22:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124850#M1060</link>
      <description>&lt;P&gt;Good Morning Chris,&lt;/P&gt;&lt;P&gt;Did you rebuild the tile cache?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 14:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124850#M1060</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-10T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124990#M1061</link>
      <description>&lt;P&gt;I did, still no success.&lt;/P&gt;&lt;P&gt;I'm working under the assumption (perhaps incorrectly) that this is a large dataset problem, and there is some limit at which the server is failing.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 19:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124990#M1061</guid>
      <dc:creator>ChrisLowrie1</dc:creator>
      <dc:date>2021-12-10T19:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124992#M1062</link>
      <description>&lt;P&gt;Did you check server logs?&amp;nbsp; I have a hard time believing that your server couldn't handle it.... what are the specs?&amp;nbsp; Do they line up with the requirements for this workflow?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 19:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1124992#M1062</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-10T19:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127787#M1063</link>
      <description>&lt;P&gt;Have you had any success figuring this out?&amp;nbsp; I have a vector tile service that I had previously published,&amp;nbsp; enabled attributes, and rebuilt the cache.&amp;nbsp; I had been successfully using this in a web app for data-driven attributes.&amp;nbsp; I recently updated the vector tile, rebuilt the cache, abut now the attributes are not included in the vector tile service.&amp;nbsp; I have tried overwriting the old service, publishing a new service with a different name, creating a new .aprx project and publishing from that, all to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data is not particularly large (continental US, 11k records), and I had previously published and enabled attributes with success.&lt;/P&gt;&lt;P&gt;-Erik&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:12:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127787#M1063</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2021-12-20T21:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127791#M1064</link>
      <description>&lt;P&gt;I haven't been able to make it work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I was only trying to symbolize based on 6-10 categories, so I had a workaround.&amp;nbsp; I split the vector layer on the categorical attribute, then consume and style all the splits separately in the client.&amp;nbsp; It's not very clean, but it's functional.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127791#M1064</guid>
      <dc:creator>ChrisLowrie1</dc:creator>
      <dc:date>2021-12-20T21:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127809#M1065</link>
      <description>&lt;P&gt;Thanks for the update.&amp;nbsp; I just finished running a test on another vector tile service that I created a couple months ago.&amp;nbsp; It is still working properly, passing the requested attributes into the vector tiles, to support client-side data-driven styling.&amp;nbsp; I just used the exact same .aprx project and re-published it as a new vector tile service with a new name (without deleting the old one).&amp;nbsp; After publishing, I went into AGOL and selected the attributes to include in the tile cache and rebuilt the cache.&amp;nbsp; However, the attributes are not being passed through into the tiles on the new service.&amp;nbsp; The original tile service is still working as expected.&amp;nbsp; This makes me wonder if there was a change on the back end that has broken this functionality.&lt;/P&gt;&lt;P&gt;Coincidently, I noticed that the checkboxes on the dialog to select attributes are not behaving normally.&amp;nbsp; If you check in the actual box, it will not select.&amp;nbsp; If you click on the attribute name, however, it does select.&amp;nbsp; This behavior happens in both Chrome and Firefox and makes me wonder if it is an AGOL front-end problem.&amp;nbsp; Or, maybe just coincidence.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127809#M1065</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2021-12-20T21:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127859#M1066</link>
      <description>&lt;P&gt;My suspicion is that it's on the backend, since after selecting attributes, rebuilding the cache, and refreshing the page, the attributes are still shown as selected (meaning that the attribute selection is being stored, even if it is not being added to the finished tile cache).&lt;/P&gt;&lt;P&gt;Notably, the tiles do build, but they are geometry-only.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 23:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127859#M1066</guid>
      <dc:creator>ChrisLowrie1</dc:creator>
      <dc:date>2021-12-20T23:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127864#M1067</link>
      <description>&lt;P&gt;I concur - the geometry is building fine, but attributes are not being attached when selected and the cache is rebuilt.&amp;nbsp; I did find that if I symbolize the layer in ArcGIS Pro before sharing as vector tiles, then the resulting tiles will have an automatically-generated "_symbol" attribute populated with integer values that correspond to each of the symbol classes in my data.&amp;nbsp; And the tiles draw up with the correct colors based on the styling in ArcGIS Pro.&amp;nbsp; In JavaScript, I am successfully able to use this "_symbol" attribute as a property to style my fill-color.&amp;nbsp; The actual attribute, however, is not accessible nor are any of the other attributes I selected to pass into the vector tiles.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 23:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1127864#M1067</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2021-12-20T23:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1334439#M1275</link>
      <description>&lt;P&gt;Two years later did anyone come across a solution to this issue?&amp;nbsp; It's now October 2023, and I have a vector tile layer published from a hosted feature layer exhibiting the same problem.&amp;nbsp; The attributes are not included in the vector tiles despite enabling them explicitly and rebuilding.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 07:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1334439#M1275</guid>
      <dc:creator>RussellMoffitt</dc:creator>
      <dc:date>2023-10-03T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1334478#M1276</link>
      <description>&lt;P&gt;A bug was&amp;nbsp; logged for this back in 2021:&amp;nbsp; BUG-000146399.&amp;nbsp; In February of this year the bug was closed and the status was updated to "Known Limitation."&amp;nbsp; "&lt;SPAN&gt;This is related to a known limitation with the software that lies outside of Esri's control. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know for sure, but I suspect what is happening is that there isn't a warning/error process to alert you if individual vector tiles get too big, so some attributes just get dropped to keep the .pbf tiles small enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IMHO, I think Esri sees vector tiles more as basemaps and less for serving feature data.&amp;nbsp; The "Esri way" is to use feature layer views and renderers. So changing this isn't a top priority.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've read that Geoanalytics Engine can be used to create the vector tiles&amp;nbsp; (analogous to Tippecanoe, see below) but I haven't personally used it:&amp;nbsp;&lt;A href="https://developers.arcgis.com/geoanalytics/data/data-sources/vector-tiles/" target="_blank"&gt;https://developers.arcgis.com/geoanalytics/data/data-sources/vector-tiles/&lt;/A&gt;&amp;nbsp; It includes more controls than AGOL and produces a vector tile package that can be uploaded&amp;nbsp;to AGOL, so if you have a Geoanalytics Engine license this may be the easiest option.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've successfully used 2 work different arounds, though both take a bit of effort.&amp;nbsp; The first was to build the tiles myself using Mapbox's &lt;A href="https://github.com/mapbox/tippecanoe" target="_self"&gt;Tippecanoe&lt;/A&gt; command line software.&amp;nbsp; This gives you granular control over tile creation so you can, for example, include certain attributes at different scales and/or use simplified geometries at some scales.&amp;nbsp; This can reduce the file size of individual .pbf tiles (and will throw a warning if you exceed the max tile size &amp;amp; features get dropped).&amp;nbsp; Then, you can write a Node.js vector tile server to server up those tiles.&amp;nbsp; This takes some patience, but there's some good resources out there to help with this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291888#M26788" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291888#M26788&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://support.woolpert.io/hc/en-us/articles/360047005294" target="_blank"&gt;https://support.woolpert.io/hc/en-us/articles/360047005294&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://www.danieltrone.com/post/aws-vector-tiles-cloudfront/" target="_blank"&gt;https://www.danieltrone.com/post/aws-vector-tiles-cloudfront/&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The other approach I've used is to publish my data as vector tiles to AGOL, but with only a single attribute that serves as a feature unique ID.&amp;nbsp; Then separately, upload all of the other attributes&amp;nbsp;to a csv file.&amp;nbsp; On the initial app load, the CSV gets downloaded and parsed into a JS object.&amp;nbsp; Then use a function to find all of the Unique IDs for each class of a given symbology.&amp;nbsp; So, for example, if I have polygons of forest type I write a function to go through the CSV file and find all the Unique IDs for "Oak-Confier" and add these IDs to an array.&amp;nbsp; So you end up with arrays of IDs for each symbology class.&amp;nbsp; You can then use a Mapbox expression to style the vector tiles based on those arrays of IDs.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, I've also read of folks serving vector tiles directly from S3 (e.g. &lt;A href="https://gis.stackexchange.com/questions/304483/is-it-possible-to-serve-vector-tiles-directly-from-s3" target="_blank"&gt;https://gis.stackexchange.com/questions/304483/is-it-possible-to-serve-vector-tiles-directly-from-s3&lt;/A&gt;), but I haven't done this personally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Good luck -- it's a frustrating limitation, but the process of going through these workarounds definitely deepened my understanding of vector tiles, so that's a silver lining.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 12:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1334478#M1276</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2023-10-03T12:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Vector Tile Service not caching attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1334675#M1277</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15871"&gt;@ErikMartin&lt;/a&gt;, thanks for all of that info.&amp;nbsp; Yes, I have no issues making vector tiles through other means such as Mapbox's tools and cli like tippecanoe.&amp;nbsp; I will continue to go that route for many projects going forward.&lt;/P&gt;&lt;P&gt;A) To add some more info to this issue described in this thread, in Arc Pro I shared a feature as a weblayer, selected vector tile layer with attached hosted feature layer, and published to ArcGIS Online.&amp;nbsp; Attributes don't show up, but the 10 levels I used to classify the symbology are available as "_symbol" 0-9.&amp;nbsp; In the vector tile settings, enabling the attribute fields in the vector tiles and rebuilding the cache doesn't work.&lt;/P&gt;&lt;P&gt;B) In Arc Pro, publishing instead to a vector tile package file locally works fine.&amp;nbsp; If I upload that package to ArcGIS Online, all of the attributes are available to use in vector tile style json for feature rendering and labels.&amp;nbsp; I'm using this approach now to make things work as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 18:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-not-caching/m-p/1334675#M1277</guid>
      <dc:creator>RussellMoffitt</dc:creator>
      <dc:date>2023-10-03T18:21:17Z</dc:date>
    </item>
  </channel>
</rss>

