<?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: Dynamic Dashboard/Automated Dashboard in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097328#M5066</link>
    <description>&lt;P&gt;So, I started with a similar strategy. But I was using ArcGIS Online as the gis target. It worked well over all. I had the job set to run every few minutes. The problem was that the connection would mess up (time out) every few days, creating a hole in the data updates. I found the AGS service to be far more robust. But maybe this strategy would work well for Annette.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This process for me was:&lt;/P&gt;&lt;P&gt;Add csv to Online by hand and create a hosted feature layer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1631299601981.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22774iDF18F76C9F036434/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_0-1631299601981.png" alt="forestknutsen1_0-1631299601981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_1-1631299682012.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22775iAD787F08F0F4CA6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_1-1631299682012.png" alt="forestknutsen1_1-1631299682012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_2-1631299713382.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22776i0C526F012ECE514F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_2-1631299713382.png" alt="forestknutsen1_2-1631299713382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then update with a python batch job.&lt;/P&gt;&lt;P&gt;This is my simple proof of concept script (I have the full dev one as well if you want to see it - the prototype might be faster to digest):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.features import FeatureLayerCollection
import pickle

original_pickle = 'original'
in_file = open(original_pickle, 'rb')
original = pickle.load(in_file)
in_file.close()
print(original)
if original:
    city = 'city.csv'
    time = 'time.csv'
else:
    city = 'city2.csv'
    time = 'time2.csv'

gis = GIS(url=xxxx, username=xxxx, password=xxxx)


my_content = gis.content.search(query='owner:' + gis.users.me.username,
                                item_type='Feature Layer Collection',
                                max_items=100)
cities_item, = [x for x in my_content if x['title'] == 'city']
time_item, = [x for x in my_content if x['title'] == 'time2']

print('updating city layer to: {}'.format(city))
cities_flayer_collection = FeatureLayerCollection.fromitem(cities_item)
cities_flayer_collection.manager.overwrite(city)
print('updating time layer to: {}'.format(time))
cities_flayer_collection = FeatureLayerCollection.fromitem(time_item)
cities_flayer_collection.manager.overwrite(time)
print('done')

original = not original
out_file = open(original_pickle, 'wb')
pickle.dump(original, out_file)
out_file.close()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2021 18:53:04 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2021-09-10T18:53:04Z</dc:date>
    <item>
      <title>Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097279#M5060</link>
      <description>&lt;P&gt;Hello, We are using Enterprise 10.8.1.&amp;nbsp; For dashboards we have created.&amp;nbsp; we want them to automatically/dynamically update.&amp;nbsp; We&amp;nbsp; connected our SQL server to ArcPRO and added the SQL data to the ArcGIS Datastore.&amp;nbsp; It is our understanding that the only way to dynamically update a dashboard is via the datastore.&amp;nbsp; This step is now complete.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are now working on the analyst work flow in using the data.&amp;nbsp; I would like to know what the supported workflow is in using datastore data to create dashboards. This is what we have found. 1.&amp;nbsp; We usually bring in the data to ArcPRO, then display x,y to map points, then publish, then create dashboard.&amp;nbsp; 2.&amp;nbsp; Now with the datastore, we followed the same process display x,y, create feature layer, publish to enterprise but when creating the dashboard and trying to create a serial chart we received an error that the data could not be used for statistics.&amp;nbsp; &amp;nbsp;We discovered that using the tool Make Event Layer vs Display x, y when mapping the data worked.&amp;nbsp; In other words, we used Make Event Layer, published data, then created dashboard.&amp;nbsp; The serial widget worked with the data.&amp;nbsp; So my question is, is that how to create dynamic dashboards by using Make Event Layer, and you cannot use the display x,y to create a feature layer?&amp;nbsp; Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097279#M5060</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-10T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097293#M5061</link>
      <description>&lt;P&gt;I am not sure how helpful this will be for you.&lt;/P&gt;&lt;P&gt;But we just created a dashboard that automatically refreshes x, y events. But the pattern is a little different.&lt;/P&gt;&lt;P&gt;The process:&lt;/P&gt;&lt;P&gt;1. Update a table in Oracle with latitude, longitude, and other attributes with python batch job&lt;/P&gt;&lt;P&gt;2. Using ArcMap create the x, y events, symbology, etc. and publish the service to portal/server&lt;/P&gt;&lt;P&gt;3. Create map and set refresh intervals.&lt;/P&gt;&lt;P&gt;4. Create dashboard&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097293#M5061</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-09-10T17:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097299#M5062</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; Yes that is the workflow we use but use SQL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question when you "create the x, y events"&amp;nbsp; what tool are you using?&lt;/P&gt;&lt;P&gt;When we use display x,y and create a feature layer,&amp;nbsp; the dashboard doesn't work, but when we use the geoprocessing tool "make event layer" it does work.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 17:48:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097299#M5062</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-10T17:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097315#M5063</link>
      <description>&lt;P&gt;I am just right clicking the table in the ArcMap table of contents and selecting display x,y events&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1631298321771.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22772i143A27D0F2052F60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_0-1631298321771.png" alt="forestknutsen1_0-1631298321771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then I publish it as a map service. So, on the Portal side I end up with a "Map Image Layer"&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 18:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097315#M5063</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-09-10T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097316#M5064</link>
      <description>&lt;P&gt;I'd look into using the ArcGIS Python API, if that is an option for you. You can easily update your hosted layer in place, without opening desktop software or re-running any GP tools.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.features import GeoAccessor
import pandas as pd

# Log in to Portal
gis = GIS('your-portal-url', 'user', 'password')

# Get hosted layer; replace '0' w/ whatever the layer index is
fl = gis.content.get('item-id-of-layer').layer[0]

# Query out from your SQL database
sql = """
    some sql query string
    SELECT whatever FROM wherever WHERE something=1
"""

conn = "some connection string" # see sqlalchemy docs for what this should be

df = pd.read_sql(sql, conn)

# Convert to spatial dataframe using x/y columns
sdf = GeoAccessor.from_xy(df, x_column, y_column, sr=4326)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that spatial dataframe, you can apply the resulting features to your layer quite simply.&lt;/P&gt;&lt;PRE&gt;fl.edit_features(adds=sdf.spatial.to_featureset())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are issues with duplicates from your query, you can truncate the hosted layer prior to adding new features.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 18:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097316#M5064</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-09-10T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097325#M5065</link>
      <description>&lt;P&gt;That's exactly how we were doing it before.&amp;nbsp; I did try to publish it as a map service and it didn't work, probably due to permissions.&amp;nbsp; Good to know though that you can do it with display x,y. And I see the python script, are you using the python script as well? In the above example? thank you very much, this has been very helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 18:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097325#M5065</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-10T18:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097328#M5066</link>
      <description>&lt;P&gt;So, I started with a similar strategy. But I was using ArcGIS Online as the gis target. It worked well over all. I had the job set to run every few minutes. The problem was that the connection would mess up (time out) every few days, creating a hole in the data updates. I found the AGS service to be far more robust. But maybe this strategy would work well for Annette.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This process for me was:&lt;/P&gt;&lt;P&gt;Add csv to Online by hand and create a hosted feature layer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_0-1631299601981.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22774iDF18F76C9F036434/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_0-1631299601981.png" alt="forestknutsen1_0-1631299601981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_1-1631299682012.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22775iAD787F08F0F4CA6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_1-1631299682012.png" alt="forestknutsen1_1-1631299682012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_2-1631299713382.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22776i0C526F012ECE514F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="forestknutsen1_2-1631299713382.png" alt="forestknutsen1_2-1631299713382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then update with a python batch job.&lt;/P&gt;&lt;P&gt;This is my simple proof of concept script (I have the full dev one as well if you want to see it - the prototype might be faster to digest):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.features import FeatureLayerCollection
import pickle

original_pickle = 'original'
in_file = open(original_pickle, 'rb')
original = pickle.load(in_file)
in_file.close()
print(original)
if original:
    city = 'city.csv'
    time = 'time.csv'
else:
    city = 'city2.csv'
    time = 'time2.csv'

gis = GIS(url=xxxx, username=xxxx, password=xxxx)


my_content = gis.content.search(query='owner:' + gis.users.me.username,
                                item_type='Feature Layer Collection',
                                max_items=100)
cities_item, = [x for x in my_content if x['title'] == 'city']
time_item, = [x for x in my_content if x['title'] == 'time2']

print('updating city layer to: {}'.format(city))
cities_flayer_collection = FeatureLayerCollection.fromitem(cities_item)
cities_flayer_collection.manager.overwrite(city)
print('updating time layer to: {}'.format(time))
cities_flayer_collection = FeatureLayerCollection.fromitem(time_item)
cities_flayer_collection.manager.overwrite(time)
print('done')

original = not original
out_file = open(original_pickle, 'wb')
pickle.dump(original, out_file)
out_file.close()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 18:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097328#M5066</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-09-10T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097330#M5067</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I will see if we can try this as well.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 18:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097330#M5067</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-10T18:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097366#M5068</link>
      <description>&lt;P&gt;Hi Forestknutsen1,&lt;/P&gt;&lt;P&gt;Can you show me how you publish it as a map service.&amp;nbsp; I notice you are in ArcMAP, we are using ArcPRO. But I just opened ArcMAP to try it.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 20:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097366#M5068</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-10T20:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097690#M5074</link>
      <description>&lt;P&gt;We are federated, are you federated or stand-alone? It seems, but I am not 100% sure, that publishing a service works for stand-alone.&amp;nbsp; &amp;nbsp;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097690#M5074</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-09-13T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097716#M5075</link>
      <description>&lt;P&gt;We are federated&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1097716#M5075</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-09-13T17:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Dashboard/Automated Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1647397#M11405</link>
      <description>&lt;P&gt;Hi, I'm using a very similar python API process to update a hosted table in AGOL (which is connected to my dashboard). 1. connect and access my layers on AGOL, 2. make the feature layer into a collection, 3. overwrite the collection with a local csv file.&lt;/P&gt;&lt;P&gt;I am experiencing something like what you describe above: the process works fine until it times out, hangs for a day or three, and then restarts. FYI, I'm using a scheduler to run my processes and our error logs show the process starting and ending 1 min later most of the time, but sometimes it takes days (or I reboot and fix the problem for a bit).&lt;/P&gt;&lt;P&gt;Can you tell me more about doing this with AGS (assume this is ArcGIS Server)? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 17:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dynamic-dashboard-automated-dashboard/m-p/1647397#M11405</guid>
      <dc:creator>IngridLuffman</dc:creator>
      <dc:date>2025-09-02T17:37:36Z</dc:date>
    </item>
  </channel>
</rss>

