CSV Feed Bug

3036
5
07-23-2014 10:23 PM
EricPollard2
New Contributor III

I created a web map on AGO and added two CSV web layers. They are both google docs spreadsheets which have been made publicly visible and I have used the sharing link to insert (fyi need to add "/export?format=csv" on the end of the URL for this to work from google docs). They come in just fine on the web map in AGO, points and data and all, and I can make applications from templates, work with the data, etc. When I bring this web map into the app builder, however, the points will not show and the layers are not even shown as being on the map (nothing in legend widget or anywhere else). This may be a bug ? Am I missing a setting?

Tags (1)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Eric,

   Are you familiar with using developer tools in chrome or firefox to look at the http requests and responses? You should check if something is coming back with a 40X error.

0 Kudos
Jianxia
Esri Regular Contributor

Eric,

Could you load the webmap created in AGOL into JS API sample below and see if it works as expected?

Web map by ID | ArcGIS API for JavaScripthttps://developers.arcgis.com/javascript/jssamples/ags_createwebmapid.html

In this case, you only need to replace the webmap ID with yours. Web AppBuilder is built on top of JS API. If it works with JS API but not Web AppBuilder, then this is a bug.

Thanks,

Jianxia

0 Kudos
ZhifangWang1
New Contributor III

I've tested a online csv directly from google docs (url end with "/export?format=csv" ) in my webmap, it displays fine in both MapViewer of ArcGIS Online and Web AppBuilder for ArcGIS (showed in Layerlist Widget).

Can you share the exact csv url?

0 Kudos
EricPollard2
New Contributor III

The MapViewer definitely displays just fine, and I had "intermittent" periods of the CSV feeds displaying properly while inside the Web Appbuilder, but after downloading and hosting the application nothing would display for the CSV's (most times it did not work within the builder either). Everything should show as public, and the web map is here --> http://www.arcgis.com/home/item.html?id=0dc2664929b74553ac671b8b45887c51

URLS for the CSV feeds are here --

Dining:https://docs.google.com/a/sitemarker.com/spreadsheets/d/1mNntYoJuqwXq2HUaZ-OVv--a1wQ2gePviN3Xz_ItMws...

Shopping:https://docs.google.com/spreadsheets/d/1U1qsjKBk-MeoscQmryqYaROkDPWoYJzsISPCJj5W0yY/export?format=cs...

0 Kudos
ZhifangWang
Esri Regular Contributor

Hi Eric,

I've tested your webmap and csv as below:

1. Create an app in builder and replace the webmap to your webmap which is http://www.arcgis.com/home/item.html?id=0dc2664929b74553ac671b8b45887c51‌ and the csv works fine in builder;

2. download the app and deploy it on my IIS, open the app, then the csv can not display.

By looking the network traffic, you can find that the csv file is requested through proxy.js as below:

1.jpg

This is because using proxy is the default option in all app created by builder, but the downloaded app comes out without a proxy file. You can configure one by editing the config.json file in the downloaded app folder as below:

2.jpg

Hope this helps.

BTW, you need to check the "Use Proxy" box in builder to see your csv from google docs.

0 Kudos