Select to view content in your preferred language

Replacing a map referenced in an existing Dashboard

2131
7
Jump to solution
01-22-2024 04:00 PM
SteveCole
Honored Contributor

Using Portal 11.1 and rebuilding a WAB / Dashboard app from scratch thanks to forced migration. I have 4 dashboards that are essentially identical but just differ due to a time based definition query on the data. I've mocked up one Dashboard so far and I thought I could just do a "save as" on the dashboard and then just subsequently change the underlying map that the dashboard uses.

Apparently this can't be done? The only option I see is to remove the map completely and then re-add it (which will also remove all the chart widgets I spent time setting. Tell me I'm wrong- is there no easy way to swap maps used by a Dashboards app? Can I use ArcGIS Assistant to do this as a hack?

Steve

Tags (4)
0 Kudos
1 Solution
7 Replies
SteveCole
Honored Contributor

Ugh. Thanks. An idea from 2018 that isn't implemented leaves me with low hopes. "Why do things efficiently when you can completely rebuild them from scratch?" Thanks, ESRI.

Amanda__Huber
MVP Regular Contributor

Hi @SteveCole

We've used ArcGIS Online Assistant for tasks like these: https://ago-assistant.esri.com/ We've also had our dashboards break on upgrades. 


You can search for the dashboard you're looking to update> then say "I want to view the JSON"> Find your webmap's ID> then CTRL+ F to find all the instances of that ID in the JSON> Update all the locations of the ID with the new map ID and save. Make sure to check and make sure the dashboard works then (you may need to re-connect some actions, depending on the data. ) 

I would suggest cloning your dashboard and testing this workflow on a copy first. 

 Amanda__Huber_0-1706022284604.png

 

Hope that helps!

Best, 

Amanda Huber

KenBuja
MVP Esteemed Contributor

There's an updated version the AGO Assistant available at https://assistant.esri-ps.com/signin. The older version hasn't been updated in a few years.

0 Kudos
SteveCole
Honored Contributor

That's good confirmation Amanda, thanks. I'm already using Assistant because I have to move content from one Portal to another and update REST URLs so I'm already comfortable using it. And it does work. The charts associated with the web will break but all that's needed to revive them is to correct that layer ID reference in the Dashboard's JSON and the charts will work again (assuming they're all based on the same underlying dataset).

0 Kudos
BillFox
MVP Frequent Contributor

has anyone heard why esri does not just include/fully-support that ago assistant?

"The esri fix-it tool"

reference:

Is ArcGIS Assistant supported by Esri?#

No. ArcGIS Assistant is a community-driven project from Esri Professional Services. While all of the requests from Assistant use supported ArcGIS REST API operations, doing so could leave your content in a broken or reduced state, and Esri Technical Support will not be equipped to help you with that situation.

0 Kudos
SteveCole
Honored Contributor

UPDATE- This isn't as easy as it appears. Although doing what I had last described wasn't that bad, there were further JSON references buried somewhere that I didn't know about or realize which caused weird behavior and eventual fatal errors as I tried working with the dashboard. In the end, I had to rebuild each dashboard from scratch. 😑