I published a map service from ArcMap to my company's Server. I added this service to AGOL account. Next, I created a web map in AGOL that displays the symbolized map service. However, when I choose this web map in the App Builder, it does not display. The App Builder will load for a few seconds, then display only the basemap.
I've been able to successfully use a feature service in this way (add it to a Web Map and reference the web map in the App Builder), but I can't seem to do this for a map service. Is this possible with Map Services, or is this only for feature services?
It looks like I am trying to do the same thing and having an issue. I have Custom WAB setup on my machine registered to Portal for ArcGIS. I created a WebMap using an ESRI basemap and one of our rest services (both http). The WebMap was created fine (and shared to Everyone) and I can view both layers in Map Viewer; and when I created a standard WAB using Portal, I can add the WebMap showing both layers. But when I go into Custom WAB (version 1.2) and add the same WebMap (from My Organization), only the ESRI basemap is loaded. The wait indicator spins for a bit and then nothing, I do not see my rest service.
What am I missing?
Steve,
What does the web console say? Are there any errors?
Hi Robert,
When creating a new WebApp using Developer Edition, I get this first error upon creation:
widget [widgets/HomeButton/Widget] created.
SyntaxError: Expected ')'
{
[functions]: ,
__proto__: { },
description: "Expected ')'",
log: undefined,
message: "Expected ')'",
name: "SyntaxError",
number: -2146827282,
stack: "SyntaxError: Expected ')'
at b.fromJson (https://js.arcgis.com/3.14/init.js:220:409)
at b.contentHandlers.json (https://js.arcgis.com/3.14/init.js:177:383)
at s (https://js.arcgis.com/3.14/init.js:182:59)
at c (https://js.arcgis.com/3.14/init.js:66:215)
at d (https://js.arcgis.com/3.14/init.js:66:10)
at callback (https://js.arcgis.com/3.14/init.js:67:350)
at Anonymous function (https://js.arcgis.com/3.14/init.js:185:298)
at k (https://js.arcgis.com/3.14/init.js:189:425)
at m (https://js.arcgis.com/3.14/init.js:189:357)
at resolve (https://js.arcgis.com/3.14/init.js:191:441)"
}
then rest of the base widgets get created.
When I add the WebMap, I get two errors:
SyntaxError: Expected ')'
{
[functions]: ,
__proto__: { },
description: "Expected ')'",
log: undefined,
message: "Expected ')'",
name: "SyntaxError",
number: -2146827282,
stack: "SyntaxError: Expected ')'
at b.fromJson (https://js.arcgis.com/3.14/init.js:220:409)
at b.contentHandlers.json (https://js.arcgis.com/3.14/init.js:177:383)
at s (https://js.arcgis.com/3.14/init.js:182:59)
at c (https://js.arcgis.com/3.14/init.js:66:215)
at d (https://js.arcgis.com/3.14/init.js:66:10)
at callback (https://js.arcgis.com/3.14/init.js:67:350)
at Anonymous function (https://js.arcgis.com/3.14/init.js:185:298)
at k (https://js.arcgis.com/3.14/init.js:189:425)
at m (https://js.arcgis.com/3.14/init.js:189:357)
at resolve (https://js.arcgis.com/3.14/init.js:191:441)"
}
and
SCRIPT1004: Expected ';'
File: MapServer, Line: 1, Column: 10
{"status":"error","messages":["The ArcGIS Web Adaptor has been configured with SSL/HTTPS. Please enable SSL/HTTPS for your ArcGIS Server Site."]}
We changed our rest services to be served out non-https (non-mixed, both http), so why this error?
The error sounds like your Web Adaptor is still using https and port 6443.
Steve,
I agree with Paul's assessment. I would look at you web adaptor.
I believe I solved my issue. It wasn't the web adapter but in setting portal for the WAB. I unregistered WAB and then went through webappbuilder/?action=setportal and put in the http url to portal (as oppose https). When I went to register it to get the AppID, I only added the http://<machine>:3344 redirect. A test app allowed me to add the Web Map with my map service.