Select to view content in your preferred language

Experience Builder charts not loading on initial app load (only after refresh or selection)

204
3
Sunday
Labels (2)
FarrukhZahid
Emerging Contributor

Hi everyone,

I have developed an ArcGIS Experience Builder app and added charts that are linked to the map. However, after publishing the app, the charts do not load on the initial attempt. They only appear after refreshing the page or when a feature is selected on the map. The “View from empty selection” option is already enabled.

The Problem

I have several Chart widgets in my experience that are linked to a map. When the app is first opened, the charts appear empty or stuck in a loading state.

Interestingly, they function perfectly fine if I do either of the following:

  • Refresh the browser page after the initial load.

  • Select a feature on the map (which triggers the data link).

Current Configuration

  • "View from empty selection" is already enabled for all charts.

  • The charts are using the same data source as the map layers.

  • The app is published (the issue persists in both the published URL and the builder preview).

I’ve tried toggling the "Selected features only" filter and double-checking the data source triggers, but the initial "cold start" of the app still fails to render the data visually. It's as if the data source isn't "waking up" until a secondary interaction occurs.

Has anyone encountered this specific behavior? Is there a known bug regarding the initialization of charts in certain layouts, or perhaps a specific setting I'm missing to ensure the charts populate immediately upon the first visit?

Any insights would be greatly appreciated!

FarrukhZahid_1-1778410219906.pngFarrukhZahid_2-1778410323836.png

 

0 Kudos
3 Replies
JavierML
Regular Contributor

 Hi @FarrukhZahid , 

 

have you tried to open the app in a different browser or in a private browser window? It could be a cache problem, although I haven't encountered this specific behaviour nor I can't say if it's specifically cache. 

 

If it works on the other browsers, you should clear the cache of your normally used one. There's also the option to delete ArcGIS Enterprise through the following command on the developer's console of a browser:

caches.delete("exb-assets-cache")

 

Also, which version of ArcGIS Enterprise are you using? This could become handy for troubleshooting

0 Kudos
FarrukhZahid
Emerging Contributor

Hi JavierML, 

Yes, I’ve already tested several times in different browsers and also in incognito/private tabs, but I’m still facing the same issue. I even noticed this error directly in Experience Builder: when I opened the app to edit, the chart wasn’t loaded. After checking the data source, I saw it was marked as an empty selection. Once I unchecked and re‑selected it, the chart appeared again.

This is a completely different behaviour, and it’s inconsistent across my apps. I have more than 70 different Experience Builder apps with various maps and charts — sometimes a chart loads, sometimes it doesn’t. 

 

FarrukhZahid_0-1778517449663.png

FarrukhZahid_1-1778517490458.png

 

0 Kudos
JavierML
Regular Contributor

Hi @FarrukhZahid , 

ok, then it isn't a cache problem as I would've thought. I think other users more experienced in should look into this topic and even sending a ticket to MyEsri support. 

For troubleshooting purposes, could you open the Developer's console and look for errors both in console and Network? Maybe it can say, where and when the error appears (maybe it's the tool, maybe it's the connection to the data).

It might even be possible to look into ArcGIS Server Manager and get a protocoll of the chart process, but I doubt it counts as a tool (like for example Printing) or if the Queries to your data from the map will inform about any issues related to the chart display. You'll have to research a bit because I haven't worked with charts very often.

And still, ArcGIS Enterprise version can be very important to understand the issue better. 

Best of luck!

0 Kudos