<?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: Operations Dashboard: How to add a dynamic Google Sheet/CSV layer in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659701#M3539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martha,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try using the &lt;A href="https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS API for Python&lt;/A&gt;&amp;nbsp;to update the hosted feature service by setting the python script on a windows task scheduler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Publish the CSV as a hosted feature service in AGOL.&lt;/LI&gt;&lt;LI&gt;Create a script similar to below:&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Then download the script and add it to a web server were you can automate it through the Windows Task Scheduler.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# coding: utf-8&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# In[88]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# Import libraries&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; urllib&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;request&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; csv
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; features
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pandas &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; pd
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os


&lt;SPAN class="comment token"&gt;# In[89]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# Connect to the GIS&lt;/SPAN&gt;
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"YOUR AGOL USERNAME HERE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" YOUR AGOL PASSWORD HERE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Logged in as "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;user&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;username&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# ## Overwrite the feature layer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Let us overwrite the feature layer using the new csv file we just created. To overwrite, we will use the `overwrite()` method.&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# In[90]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;#item id of the feature layer in AGOL Organization&lt;/SPAN&gt;
Engines_featureLayer_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Enter Feature Layer ID Here'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# In[91]:&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayerCollection
Engines_flayer_collection &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Engines_featureLayer_item&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# ### Access the overwritten feature layer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Let us query the feature layer and verify the number of features has increased to `51`.&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# In[92]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;#call the overwrite() method which can be accessed using the manager property&lt;/SPAN&gt;
Engines_flayer_collection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwrite&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'DFFM_Engines.csv (file location)'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# In[93]:&lt;/SPAN&gt;


Engines_incidents_flayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Engines_featureLayer_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#there is only 1 layer&lt;/SPAN&gt;
Engines_incidents_flayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;return_count_only&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#get the total number of features&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# In[96]:&lt;/SPAN&gt;


dirPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"(file location where 'DFFM_Engines.csv' is located"&lt;/SPAN&gt;
fileList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dirPath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fileName &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fileList&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;remove&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dirPath&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"/"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;fileName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"file deleted"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;S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lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let me know if that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eric Shreve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:54:37 GMT</pubDate>
    <dc:creator>EricShreve</dc:creator>
    <dc:date>2021-12-12T03:54:37Z</dc:date>
    <item>
      <title>Operations Dashboard: How to add a dynamic Google Sheet/CSV layer</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659700#M3538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a google sheet which is updated periodically and I want to add that layer into my Operations Dashboard. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;these steps:&lt;/P&gt;&lt;P&gt;In Google Sheets:&lt;/P&gt;&lt;P&gt;Use Publish to the Web as a CSV. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I then copied that link and inside my AGOL&amp;nbsp;Web Map I used "Add Layer from&amp;nbsp;Web" and used that link.&lt;/P&gt;&lt;P&gt;It adds the layer fine and I am able to set the refresh on that layer. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything refreshes fine in the Web Map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to add that layer to my Operations Dashboard, the Layer is Not Found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand it has to be a hosted Feature Layer, but how do I make it a Hosted Feature Layer that is still updated periodically from the Google sheets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 17:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659700#M3538</guid>
      <dc:creator>MarthaRodgers1</dc:creator>
      <dc:date>2019-09-13T17:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Operations Dashboard: How to add a dynamic Google Sheet/CSV layer</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659701#M3539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martha,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try using the &lt;A href="https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS API for Python&lt;/A&gt;&amp;nbsp;to update the hosted feature service by setting the python script on a windows task scheduler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Publish the CSV as a hosted feature service in AGOL.&lt;/LI&gt;&lt;LI&gt;Create a script similar to below:&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Then download the script and add it to a web server were you can automate it through the Windows Task Scheduler.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# coding: utf-8&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# In[88]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# Import libraries&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; urllib&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;request&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; csv
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; features
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pandas &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; pd
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os


&lt;SPAN class="comment token"&gt;# In[89]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# Connect to the GIS&lt;/SPAN&gt;
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"YOUR AGOL USERNAME HERE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" YOUR AGOL PASSWORD HERE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Logged in as "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;user&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;username&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# ## Overwrite the feature layer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Let us overwrite the feature layer using the new csv file we just created. To overwrite, we will use the `overwrite()` method.&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# In[90]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;#item id of the feature layer in AGOL Organization&lt;/SPAN&gt;
Engines_featureLayer_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Enter Feature Layer ID Here'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# In[91]:&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayerCollection
Engines_flayer_collection &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Engines_featureLayer_item&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# ### Access the overwritten feature layer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Let us query the feature layer and verify the number of features has increased to `51`.&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# In[92]:&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;#call the overwrite() method which can be accessed using the manager property&lt;/SPAN&gt;
Engines_flayer_collection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwrite&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'DFFM_Engines.csv (file location)'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# In[93]:&lt;/SPAN&gt;


Engines_incidents_flayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Engines_featureLayer_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#there is only 1 layer&lt;/SPAN&gt;
Engines_incidents_flayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;return_count_only&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#get the total number of features&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;# In[96]:&lt;/SPAN&gt;


dirPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"(file location where 'DFFM_Engines.csv' is located"&lt;/SPAN&gt;
fileList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dirPath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fileName &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fileList&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;remove&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dirPath&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"/"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;fileName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"file deleted"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN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gt;&lt;P&gt;Let me know if that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Eric Shreve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659701#M3539</guid>
      <dc:creator>EricShreve</dc:creator>
      <dc:date>2021-12-12T03:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Operations Dashboard: How to add a dynamic Google Sheet/CSV layer</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659702#M3540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, actually inside the Web Map it&amp;nbsp;updates fine with the newest data from the Google Sheets/CSV. &amp;nbsp;But I can't even select that layer to put into my Operations Dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I can just "embed" the Google Sheet into the OPs Dashboard, but it's not as slick looking as using the List option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 21:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659702#M3540</guid>
      <dc:creator>MarthaRodgers1</dc:creator>
      <dc:date>2019-09-13T21:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Operations Dashboard: How to add a dynamic Google Sheet/CSV layer</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659703#M3541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the layer will update fine on the map but will be recognize on the ops dashboard because that layer type is not supported. The work around would be to create the update the feature through python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 21:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659703#M3541</guid>
      <dc:creator>EricShreve</dc:creator>
      <dc:date>2019-09-13T21:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Operations Dashboard: How to add a dynamic Google Sheet/CSV layer</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659704#M3542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, oh ok, thank you! &amp;nbsp;I understand now. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish it was a little more straight forward, but I'll try the Python option when I get a chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;-Martha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Sep 2019 18:29:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659704#M3542</guid>
      <dc:creator>MarthaRodgers1</dc:creator>
      <dc:date>2019-09-14T18:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Operations Dashboard: How to add a dynamic Google Sheet/CSV layer</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659705#M3543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into the same issue when I wanted a dashboard I was building to reference a Google-sheet-based layer I had added to a web map via "add layer from web."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found my way around it by creating a hosted feature layer from my Google sheet using Add Item /From Cloud Drive from the My Content tab (&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#ESRI_SECTION1_55CBBBF61F504C28B9936D586E49277B"&gt;instructions here&lt;/A&gt;). The resulting layer is not dynamic, but as long as the schema stays the same, updating it&amp;nbsp;is&amp;nbsp;very quick (click Update Layer on its item Overview page, select Overwrite Entire Layer, and then select your Google account from the list). It's not quite as wonderful as a dynamic link but it will get your data from your Google sheet to your dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method&amp;nbsp;probably wouldn't be effective if the data in your Google sheet changes continuously, but in our case I only need to update it a couple times a week, and doing so only takes a minute. I added all the cloud layers that need to be updated to an "Update" category I so they're easy to find and update all at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps! Forgive me if I'm telling you something you already know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Holly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 19:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/operations-dashboard-how-to-add-a-dynamic-google/m-p/659705#M3543</guid>
      <dc:creator>HollyTorpey1</dc:creator>
      <dc:date>2019-09-16T19:11:20Z</dc:date>
    </item>
  </channel>
</rss>

