Moving web AppBuilder app from test to prod - external data source

711
4
08-24-2018 11:02 AM
OfraAinemer
Esri Contributor

Many times I move apps between environments, I update the web map id (config.json => itemid), and find-replace all rest url's (notepad++ is great for that).

Now I've used external data source in the app. These sources are from the same web map used in the app. I use them in InfoGraphic widgets#.

The migrated app shows "No data" for all these widgets.

What should I change in order to reconnect to the external data source?

I do not have dev edition in the production environment...

I'll appreciate any help.

Thanks
Ofra

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Ofra,

  if you have updated the external data souces in the main config.json then you may need to update the apps/configs/Infographic/config__##.json file

0 Kudos
OfraAinemer
Esri Contributor

Thanks Robert,

I've found in the main config file and the widgets config files something like LayerID~numbers

The layer Id is taken from the web map.

I've changed the layer id in all those config files to the same layer id I found in the new web map (using portal/sharing/rest/content/item/[webmapID]/data...).

I still get "no data".

Any thing else I should change?

Thanks

Ofra

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ofra,

  That is all that I am aware of.

0 Kudos
OfraAinemer
Esri Contributor

Thanks.

At the end, I've installed the dev environment and put the app in it. When I've checked the external data source definition - everything reconnected and worked fine, without any change. Kind of "refresh".

Ofra 

0 Kudos