Trying to upgrade 1.2 to 1.3 and I'm receiving this error when trying to import an app to the new version: "Some widgets are newer, import is failed" I followed this procedure:
Upgrade apps—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
some of my apps didn't come over using the command prompt so I used the GUI interface.
Just a note; I ran into this as well during my upgrade. It seemed that any app whose config.json file contained at least one entry for a widget with a slightly unusual "version" number, such as "1.2.2" or "1.2.0.6", would cause the upgrade to fail for that app. Fortunately, I didn't need to dig into any of the individual manifest.json files for those widgets; I just changed the entries in the config.json to simple "1.2" version numbers and the upgrade ran fine.
The upgraded versions of the apps seem to be all happy-chappy, but I'll update if I find any oddness.
Leo,
It seems to be an issue when you have a custom widget that is part of your app that has a manifest.json that is for a WAB version that is more than one version old. So yes I would make sure that all custom widget in your WAB 1.2 apps are using the latest 1.2 version of those widgets. Then you should not have any issue upgrading.
Robert, does this mean I have to upgrade the widgets in my server/apps folder in my old version of wab? I assume that just means copying and pasting the folder as that's what I've done in the past.
No error: the session just hangs until I kill it. I went ahead and ran the command line upgrade instead, and it worked fine. Bit of a head scratcher, though.
I'm seeing this error when I attempt to import a 1.2 app:
[ERROR] app - Import is failed. Name:[IDFG Planning App],Version length does not match.
Mark,
Check the [install dir]/server/apps/logs/apbuilder.log and see what the error is.
I'm trying to import a 1.2 project into 1.3 using the GUI, and it just sits there. It has a custom widget, but I already copied my custom widgets into the widgets folder. Did I do something wrong?
This happens when you have an app that uses a custom widget that was (for example version 1.2.0.1 of the widget) and then you have another app that uses version 1.2.0.4 and you import the first app. What happens is the 1.2.0.4 version of the widget is copied to the stemapp widgets folder and then 1.2.0.1 version is now trying to be copied and thus the error. Before you try to upgrade to a new version of WAB you need to do some house keeping and make sure all your apps are using the same version of widgets. Then when you upgrade you will not have an issue.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.