Problem: Maps and Apps Gallery shows "Loading Maps and Apps..." and no items appear
When accessing the ArcGIS for Local Government Maps and Apps Gallery, the gallery section shows the message 'Loading Maps and Apps...' but fails to load the gallery items after several minutes.
The application is not able to access the ArcGIS Online group containing the items for the application's gallery.
Solution or Workaround
As of April 2018, the Maps and Apps Gallery app template is in the Mature Phase of the ArcGIS Online Product Lifecycle. For more information regarding support of this app template, refer to the Maps and Apps Gallery requirements page.
It is recommended to use the Minimal Gallery app template instead.
The following terms are defined for reference when diagnosing the problem.
Group refers to an ArcGIS Online group. A Maps and Apps Gallery is linked to a single group. The group may be public or private, and the group may be a normal account or an ArcGIS for Organizations account.
Group ID refers to the unique code used by ArcGIS Online to identify the group.
For example, the try-it live version of the Maps and Apps Gallery is linked to the ArcGIS Online Group ID a3031224716a4624a224c00dd629d199.
Token refers to the ArcGIS access token that is generated using Token Helper, the target Maps and Apps Gallery URL, and the ArcGIS Online Group owner's ArcGIS Online login name and password.
The token occasionally ends in one or more periods ‘.’ -- these are essential parts of the token. ArcGIS Online login names and passwords are case-sensitive.
The following steps describe how to diagnose the problem.
Verify that the ArcGIS Online token was generated using the target Maps and Apps Gallery URL.
For example, the token for the try it live version of the Maps and Apps Gallery uses 'http://localgovtemplates2.esri.com/MapsAndApps'.
Use the Group ID Helper to check the Group ID and token. Enter the group owner's ArcGIS Online login name and the token to see a list of the ArcGIS Online groups owned by that user. The group that is being used for the Maps and Apps Gallery must appear in this list, and its ID must match the ID used in the application's configuration/config.txt file.
In the Internet Information Services (IIS) management application, check that the target Maps and Apps site has been converted to an application and that the site is using the DefaultAppPool.
In IIS 6, the latter can be checked by selecting the site and clicking on Base parameters in the rightmost column of IIS's management application.
Verify that the site's web.config does not contain the line:
The following sample web.config file does not contain this line and can be used for the site.
This sample includes lines to control the names that are not to be treated as default documents (the lines beginning with '<remove value=...') as well as the name for the default document (the line beginning with '<add value=...'). With a default document for the site, users do not need to type 'mapps.html' as part of the URL. The <defaultDocument>...</defaultDocument> section is optional.
Repeat step 7 replacing the portion 'http://localgovtemplates2.esri.com/MapsAndApps' with the URL of the target Maps and Apps site. The response in the browser should be the same JSON structure as in step 7.
Last Published: 8/3/2018
Article ID: 000011566
Software: ArcGIS for Local Government 10.2, 10.1, 10.0