<?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: Automatically Refresh Feature Layer from Google Sheets in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070706#M40821</link>
    <description>&lt;P&gt;Thanks! Well, it's tricky with Google Docs. The link you have isn't really to the "file". When you add it to your content, what's happening behind the scenes is that the entire sheet is being read as a temporary text object and then imported from that.&lt;/P&gt;&lt;P&gt;If the Google Doc was a literal &lt;EM&gt;file, &lt;/EM&gt;this could maybe work. Where's your Google Doc pulling this from? Are you doing any data manipulation there, or is it basically a copy?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 20:43:36 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-06-21T20:43:36Z</dc:date>
    <item>
      <title>Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1069683#M40724</link>
      <description>&lt;P&gt;I have a feature service that was created from Google Sheets. The sheet I used to create the feature layer imports data via an external API and updates it every hour. I need the hosted feature service to update automatically along with it. Any solutions for this?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 04:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1069683#M40724</guid>
      <dc:creator>WGIMaps</dc:creator>
      <dc:date>2021-06-18T04:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1069811#M40732</link>
      <description>&lt;P&gt;If you search through older posts, you'll find this particular question is very popular. Here's a recent one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/google-sheets-not-dynamic-in-agol/m-p/1051453#M39702" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-questions/google-sheets-not-dynamic-in-agol/m-p/1051453#M39702&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To summarize that and similar posts: you &lt;EM&gt;can&lt;/EM&gt; update your map layer at regular intervals, but you'll need to do some coding.&lt;/P&gt;&lt;P&gt;The map layer isn't "connected" to the Google Sheet, except that it stores information &lt;EM&gt;about&lt;/EM&gt; the original source. But it's not aware of that sheet's contents at any given moment, or even if it still exists, it only holds the snapshot of the sheet from when it was added.&lt;/P&gt;&lt;P&gt;You can use python and the ArcGIS Python API together with an AGOL Notebook to get this sort of thing scheduled and running at regular intervals.&lt;/P&gt;&lt;P&gt;What's the ultimate source of the data in the Sheet, if I may ask? If it's just pulling from an API, it may be simpler to just eliminate the sheet altogether and have a Notebook that queries the API and populates a layer directly.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1069811#M40732</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-18T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070640#M40810</link>
      <description>&lt;P&gt;Josh,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the info. I found the thread you referenced earlier and have been trying a few things here and there and have not had any luck. I am still pretty new with coding to I am still trying to figure it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes the data is coming in via API from a weather station. I have a dashboard set up to display the data but have yet figured out how to automate the overwrite process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not yet familiar with Notebooks but have been reading up on it. I may give that a go. Only thing is I have put so much work into setting up the Google Sheets set up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to use the Overwrite FS script to work and then just schedule a task to update every hour, but I am stuck in the Command prompt trying to get it to overwrite&amp;nbsp;manually (see attached).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AGOL.JPG" style="width: 994px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16511i59A7B313CB1334C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="AGOL.JPG" alt="AGOL.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 19:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070640#M40810</guid>
      <dc:creator>WGIMaps</dc:creator>
      <dc:date>2021-06-21T19:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070663#M40811</link>
      <description>&lt;P&gt;Not to mention using the scheduled tasks consumes credits. I need my data updated once an hour. 1.5 credits per update doesn't seem like much, but on a yearly basis it is just over $1300 just for the scheduled task if I am understanding the credit consumption correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 19:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070663#M40811</guid>
      <dc:creator>WGIMaps</dc:creator>
      <dc:date>2021-06-21T19:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070668#M40812</link>
      <description>&lt;P&gt;It's 1.5 &lt;EM&gt;per hour&lt;/EM&gt; per update. Meaning if your script only runs for 5 minutes to refresh your FS, you're looking at a bill of 0.125 credits per run, or 3 credits per day if the data updates every hour, even during the night.&lt;/P&gt;&lt;P&gt;That said, I have a &lt;EM&gt;massive&lt;/EM&gt; multi-layer update notebook dealing with many thousands of features, and even that rarely crosses the 4-minute mark. If you're just updating a single layer, it may well be half that.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 19:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070668#M40812</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-21T19:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070674#M40814</link>
      <description>&lt;P&gt;Where is that script coming from? I've not used it before. I like to develop my own scripts and functions in Python, as it's a bit easier to understand what's actually happening "under the hood", and you can tailor the process to your particular situation.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070674#M40814</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-21T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070696#M40820</link>
      <description>&lt;P&gt;Ahh good to know, thanks for the clarification Josh. I found this article on automation. This is where I got the aforementioned script and workflow.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/" target="_blank" rel="noopener"&gt;https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070696#M40820</guid>
      <dc:creator>WGIMaps</dc:creator>
      <dc:date>2021-06-21T20:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070706#M40821</link>
      <description>&lt;P&gt;Thanks! Well, it's tricky with Google Docs. The link you have isn't really to the "file". When you add it to your content, what's happening behind the scenes is that the entire sheet is being read as a temporary text object and then imported from that.&lt;/P&gt;&lt;P&gt;If the Google Doc was a literal &lt;EM&gt;file, &lt;/EM&gt;this could maybe work. Where's your Google Doc pulling this from? Are you doing any data manipulation there, or is it basically a copy?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070706#M40821</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-21T20:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Refresh Feature Layer from Google Sheets</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070707#M40822</link>
      <description>&lt;P&gt;My API is pulling data from a weather station cloud service I have installed on a property we consult for. The way the data comes over is pretty cumbersome so I created another sheet that imports the data in a workable format and that sheet is then published to my AGOL account as a feature service.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 20:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/automatically-refresh-feature-layer-from-google/m-p/1070707#M40822</guid>
      <dc:creator>WGIMaps</dc:creator>
      <dc:date>2021-06-21T20:48:11Z</dc:date>
    </item>
  </channel>
</rss>

