[Fixed] Dashboard Template A seems broken

When I try to run the Dashboard Template A, I receive the following error message:

ValueError: Invalid property specified for object of type plotly.graph_objs.layout.template.Data: 'heatmapgl' Did you mean "heatmap"? Valid properties: barpolar A tuple of :class:`plotly.graph_objects.Barpolar` instances or dicts with compatible properties bar A tuple of :class:`plotly.graph_objects.Bar` instances or dicts with compatible properties box A tuple of :class:`plotly.graph_objects.Box` instances or dicts with compatible properties candlestick A tuple of :class:`plotly.graph_objects.Candlestick` instances or dicts with compatible properties carpet A tuple of :class:`plotly.graph_objects.Carpet` instances or dicts with compatible properties choroplethmapbox A tuple of :class:`plotly.graph_objects.Choroplethmapbox` instances or dicts with compatible properties choroplethmap A tuple of :class:`plotly.graph_objects.Choroplethmap` instances or dicts with compatible properties choropleth A tuple of :class:`plotly.graph_objects.Choropleth` instances or dicts with compatible properties cone A tuple of :class:`plotly.graph_objects.Cone` instances or dicts with compatible properties contourcarpet A tuple of :class:`plotly.graph_objects.Contourcarpet` instances or dicts with compatible properties contour A tuple of :class:`plotly.graph_objects.Contour` instances or dicts with compatible properties densitymapbox A tuple of :class:`plotly.graph_objects.Densitymapbox` instances or dicts with compatible properties densitymap A tuple of :class:`plotly.graph_objects.Densitymap` instances or dicts with compatible properties funnelarea A tuple of :class:`plotly.graph_objects.Funnelarea` instances or dicts with compatible properties funnel A tuple of :class:`plotly.graph_objects.Funnel` instances or dicts with compatible properties heatmap A tuple of :class:`plotly.graph_objects.Heatmap` instances or dicts with compatible properties histogram2dcontour A tuple of :class:`plotly.graph_objects.Histogram2dContour` instances or dicts with compatible properties histogram2d A tuple of :class:`plotly.graph_objects.Histogram2d` instances or dicts with compatible properties histogram A tuple of :class:`plotly.graph_objects.Histogram` instances or dicts with compatible properties icicle A tuple of :class:`plotly.graph_objects.Icicle` instances or dicts with compatible properties image A tuple of :class:`plotly.graph_objects.Image` instances or dicts with compatible properties indicator A tuple of :class:`plotly.graph_objects.Indicator` instances or dicts with compatible properties isosurface A tuple of :class:`plotly.graph_objects.Isosurface` instances or dicts with compatible properties mesh3d A tuple of :class:`plotly.graph_objects.Mesh3d` instances or dicts with compatible properties ohlc A tuple of :class:`plotly.graph_objects.Ohlc` instances or dicts with compatible properties parcats A tuple of :class:`plotly.graph_objects.Parcats` instances or dicts with compatible properties parcoords A tuple of :class:`plotly.graph_objects.Parcoords` instances or dicts with compatible properties pie A tuple of :class:`plotly.graph_objects.Pie` instances or dicts with compatible properties sankey A tuple of :class:`plotly.graph_objects.Sankey` instances or dicts with compatible properties scatter3d A tuple of :class:`plotly.graph_objects.Scatter3d` instances or dicts with compatible properties scattercarpet A tuple of :class:`plotly.graph_objects.Scattercarpet` instances or dicts with compatible properties scattergeo A tuple of :class:`plotly.graph_objects.Scattergeo` instances or dicts with compatible properties scattergl A tuple of :class:`plotly.graph_objects.Scattergl` instances or dicts with compatible properties scattermapbox A tuple of :class:`plotly.graph_objects.Scattermapbox` instances or dicts with compatible properties scattermap A tuple of :class:`plotly.graph_objects.Scattermap` instances or dicts with compatible properties scatterpolargl A tuple of :class:`plotly.graph_objects.Scatterpolargl` instances or dicts with compatible properties scatterpolar A tuple of :class:`plotly.graph_objects.Scatterpolar` instances or dicts with compatible properties scatter A tuple of :class:`plotly.graph_objects.Scatter` instances or dicts with compatible properties scattersmith A tuple of :class:`plotly.graph_objects.Scattersmith` instances or dicts with compatible properties scatterternary A tuple of :class:`plotly.graph_objects.Scatterternary` instances or dicts with compatible properties splom A tuple of :class:`plotly.graph_objects.Splom` instances or dicts with compatible properties streamtube A tuple of :class:`plotly.graph_objects.Streamtube` instances or dicts with compatible properties sunburst A tuple of :class:`plotly.graph_objects.Sunburst` instances or dicts with compatible properties surface A tuple of :class:`plotly.graph_objects.Surface` instances or dicts with compatible properties table A tuple of :class:`plotly.graph_objects.Table` instances or dicts with compatible properties treemap A tuple of :class:`plotly.graph_objects.Treemap` instances or dicts with compatible properties violin A tuple of :class:`plotly.graph_objects.Violin` instances or dicts with compatible properties volume A tuple of :class:`plotly.graph_objects.Volume` instances or dicts with compatible properties waterfall A tuple of :class:`plotly.graph_objects.Waterfall` instances or dicts with compatible properties Did you mean "heatmap"? Bad property path: heatmapgl ^^^^^^^^^
at /home/anvil/.env/lib/python3.10/site-packages/plotly/basedatatypes.py:4378
called from /home/anvil/.env/lib/python3.10/site-packages/plotly/graph_objs/layout/template/_data.py:1791
called from /home/anvil/.env/lib/python3.10/site-packages/_plotly_utils/basevalidators.py:2504
called from /home/anvil/.env/lib/python3.10/site-packages/plotly/basedatatypes.py:5263
called from /home/anvil/.env/lib/python3.10/site-packages/plotly/basedatatypes.py:4852
called from /home/anvil/.env/lib/python3.10/site-packages/plotly/graph_objs/layout/_template.py:334
called from /home/anvil/downlink/anvil/plotly_templates/__init__.py:26
called from /home/anvil/downlink/anvil/plotly_templates/__init__.py:53
called from /home/anvil/downlink/anvil/plotly_templates/__init__.py:75
called from ServerModule1, line 9
called from /home/anvil/downlink/anvil_downlink_worker/__init__.py:81
called from /home/anvil/downlink/anvil_downlink_worker/__init__.py:234
called from Sales, line 18
called from Frame, line 22
1 Like

Does your note refer to the ‘Admin Dashboard Template’ or another dashboard sample?
If so, the problem in the admin template does not seem to have been fixed yet. What surprises me is that this template was posted as an example on two platforms a month later (on 29 April), even though it doesn’t work?!
Regardless of which dashboard is meant, it’s unfortunate because non-functioning examples are bad for marketing.
I am not simply writing this as criticism, but as support, precisely because as a user I wish Anvil success. Older examples should also be maintained and checked.

image

I was referring to the first template which comes up when starting a new project.

Thanks for raising

The template should now be fixed
Existing broken templates are still broken, so easiest thing is to click the Dashboard template on the home page to create a new one

The error was caused by plotly being bumped to v6, and the Dashboard had some template features that were removed in v6.
We’ve now pinned this template to use v5.


If you need to update an existing Dashboard Template, then pin plolty to 5.x in Settings → Python versions

You may also need to change the line in ServerModule1 from

anvil.plotly_templates.set_default("rally")
# to
anvil.plotly_templates.set_default("rally_dark")

2 Likes

Thanks for fixing the problem!
The other dashboard template is also not working (anymore). Should I create a new post for the ‘Admin Dashboard Template’ (Link)?
The following error message appears:

Yes please, a new thread would be helpful, since it seems like a separate issue. I just cloned the app and can’t see an immediate issues with it.