Deleting a custom Experience Builder widget from portal breaks all experiences using it

1177
6
09-21-2022 10:11 AM
TimSexton1
Occasional Contributor

ArcGIS Enterprise 11 now allows for custom widgets to be used directly in ArcGIS Portal's Experience Builder.  In testing this, we discovered that if an Experience Builder app is built using a custom widget, and then later that custom widget is deleted from the Portal's content, the Experience builder app will be rendered useless and need to be deleted and recreated from scratch.

I understand how something that was deleted could no longer be accessed, but why cause then entire app to no longer function rather than having the ability to "remove" or "repair" the individual item (in this case a missing custom widget)?

Instead, we get the full screen error message below:

 

CONT_0001: Item does not exist or is inaccessible.

 

MissingCustomWidget.png

 

 

6 Replies
Grant-S-Carroll
Esri Contributor

Hi Tim,

The issue is caused by the itemId in the configuration of the Experience. If you use something like ago assistant to view the JSON configuration, then you can modify the configuration and remove the itemId of the widget. This will then allow the experience to load and just give a Fail to load message where the widget used to be. This way at least you can get in and tidy up the widget, with out having to recreate the experience.

GrantSCarroll_0-1663810751307.pngGrantSCarroll_1-1663810803288.png

 

 

TimSexton1
Occasional Contributor

Grant,

Thank you for the workaround that you suggested.  While this is a valid way to get things working again, it is unnecessarily complicated as we would have to instruct our customers (most of which are not programmers or well versed in this technology) on how to fix this.  I recommend as an improvement to the user experience that the next release of the Experience Builder application will display the result of your last screen shot to begin with by automatically handling the itemId of the missing element as needed.  That seems like a very manageable thing to do programmatically by Esri to save your users more time with less frustration.  Thank you again for the response.

AmaiaMartinez
New Contributor III

I totally agree... blocking the entire app because of a non-existing/working widget is a pitty. My suggestion is to try to implement the appropriate workflows to prevent these situations.

In this case, it would be a simple warning message before allowing the 'custom widget' component removal. For instance:

>> If there is any dependency or linked item, show up the related items and ask for double-confirmation.

0 Kudos
Grant-S-Carroll
Esri Contributor

@AmaiaMartinez @TimSexton1 If you could post this as an idea on the ideas channel, then it might get some traction. I can't create ideas it seems. https://community.esri.com/t5/arcgis-experience-builder-ideas/idb-p/arcgis-experience-builder-ideas. But this would at least get it out there for others to comment on.

Thanks

0 Kudos
TMEUNIER
New Contributor

Hi,

First, sorry for my bad English.

I got this message today, after deleting a custom widget used in an experience (deleting widget code on website and deleting entry on my Portal).

I have put all again in order (uploaded widget code at the right place and register the widget again on my portal).

with ago Assistant, I took the new ItemId of the widget and replace the old ItemId with the new one in the json file of my broken experience.

From the Settings tab of the app’s item i'm now able to run the experience (with the "View" button) but got the message again when i use the "Modify" button : weird 

 

0 Kudos