Hi everyone,
We just updated our portal and server 10.8.1 to 10.9. However, our webappbuilder applications doesn't work after update.
Error is "Cannot read property 'version' of undefined"
We have this problem after migrating from 10.8.1 to 10.9 and we found a solution!
After comparing a 10.9 WAB config application with a 10.8.1 config we notice that the property "uri" doesn´t work anymore for the custom widget. The property needs to change to "itemId" referencing the ID of the custom widget of the Portal.
So, we opened the web map applications at AGOL Assistant, and fix these properties to all custom widgets and the application works again.
What was the fix?? I see nothing in this article that explains what to do?
Thanks all .. saved me a lot of headaches too!
Thanks all. This seriously needs to be escalated and addressed in their next patching cycle....
Thanks for this, saved us on a Friday night upgrade
Hi there,Over the weekend, we upgraded ArcGIS Enterprise from version 10.81 to version 10.91. Numerous custom WebApplications had broken down during the upgrade. Webapps gave an error message at startup: Cannot read properties of undefined (reading 'version').
Fortunately, we found this discussion, based on which we understood to fix web applications by manually editing them with the excellent ArcGIS Assistant tool developed by Esri. Now all webapps are running nicely on the Enterprise Portal again.
I agree with the lack of documentation. We use VertiGIS (ESRI Platinum Partner) to expand on the Web App builder apps functionality and even they were unaware of this.
I complained enough (and used Premium support) that ESRI agreed to help.. We had over 20 apps that needed fixed. The replacing of the uri with itemId does work well. Just be careful.
For anyone else coming to this thread after upgrading to 10.9.1 I ran into this same issue and luckily Lucas's post above pointed me in the right direction to fix it. Either way I opened a support ticket with ESRI to see if this was logged as a bug.
They informed me that "it is an intended change" and that the upgrade documentation says in the Back up your content section "You must also back up extensions for ArcGIS Dashboards or ArcGIS Web AppBuilder. The upgrade will not preserve any extensions you have deployed for these clients. Once your upgrade is complete, you must redeploy your extensions."
My extensions worked fine after the upgrade IF I deployed them in a NEW Web App, they only broke in existing Web Apps. So, I argued that it's a break in the Web App and not the custom widgets that was the problem. Which it is given that you have to add the itemId attribute to the Web App json as described earlier in this thread.
Either way they closed the ticket as "not a bug" and will suggest to the enterprise team for a "small documentation update"
Great solution! Many thanks. In my opinion a serious bug in the software. Have you mentioned this to Esri support?
We also received the exact error message on one of our webapps that uses a custom widget (following the 10.9.1 upgrade)
The original solution worked for me, but it wasn't obvious how to obtain the itemId.
I found the correct itemId value to add by creating a new web application and adding our custom widget to the new webapp. The newly created webapp JSON content contained the required itemId.
Hi @SibanthraciteGIS,
Is your problem saving the webmap in AGOL Assistant? The AGOL Assistant maybe blocks invalid json at saving.
(If you desire, send me your webmap json in a direct message)
Dear Lucas, I am trying to save the file after changing, but saving does not apply, is there a secret? Help me please.
Thanks so much, this saved my weekend! Terrible oversight on Esri's part for not covering it off in the upgrade.
Couldn't find a solution here. We created all the apps again. Also, noticed that this problem seems on the apps which includes custom widgets. Custom widgets might be version updated before upgrading portal or later.
Previous apps, which was created before update, stoped working. Creating new apps working good, without errors.
I also tried to manuel version change as you mentioned. But, it didn't work.
in this case, we will run the portal setup again. But this time, it will be a repair setup type. Am i right? Because, It wont be detected as a update, I guess...
I would expect the upgrade to take about 8 hours. The 15 min line above seems to indicate the update flopped with a false positive log entry.
Are you able to access the portal's web app builder at all? Can you create new web apps? Or is it only existing web apps that will not open from the app overview page>EditApplication?
If you still cannot edit the app, you could try is this:
Get the item id of one of your portal hosted WABs. Go into the portals content items folder and search for the item:
\arcgisportal\content\items\your_long_id_item_number
The first file in the 'your_long_id_item_number' folder is the json config file for the wab application. I have an existing application I built at Enterprise version 10.6.1. The very top of the json config file looks like this:
{"theme":{"name":"FoldableTheme","styles":["blue","default","black","cyan","green","purple","red","yellow"],"version":"2.8", . . .
it looks to me like the pair "version":"2.x" may be missing from your config. Maybe you had a custom theme? So depending on when you built your apps in the Portal Web App Builder will determine what version it is. For Enterprise 10.6.1 it was version 2.8. For the latest 10.9 Enterprise the wab version is 2.19
https://developers.arcgis.com/web-appbuilder/guide/about-versions.htm
Maybe that will work, I don't know. I've never tried.....
I've checked the portal logs
Did the step about re-index portal items complete successfully?
Solving this problem is very important for other users who will update.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.