ERROR

An error occurred while getting sprite data

Last Published: November 2, 2021

Error Message

Attempts to change the style of a vector tile layer in ArcGIS Online Map Viewer Classic, or ArcGIS Vector Tile Style Editor fail, and return the following error message:

Error:   
An error occurred while getting sprite data.
Error occurred while getting sprite data.

When adding the vector tile layer to ArcGIS Pro, a red exclamation mark is displayed next to the layer in the Contents pane.

The Contents pane in ArcGIS Pro displaying the vector tile layer with an exclamation mark.

Cause

The sprite parameter in the vector tile style layer's JSON file is pointing to an invalid item path.

Solution or Workaround

To resolve the issue, modify the sprite item path in the vector tile style layer's JSON file.

  1. Download the JSON file of the vector tile style layer.
    1. Log in to ArcGIS Vector Tile Style Editor.
    2. In the Select a style to start editing window, click My Styles, select the desired layer and click Select Style.
The ArcGIS Vector Style Editor displaying the layers to be selected.
  1. In the vector tile style editor, on the left pane, click Download current style Download current style..
  1. Modify the sprite item path in the JSON file.
    1. Open the JSON file using a text editor, for example, Notepad++.
    2. In the JSON file, modify the sprite item path to the following:
"sprite": ""../sprites/sprite","glyphs",
The JSON file displaying the modified sprite item path.
  1. Save the JSON file.
  1. Update the vector tile layer using the modified JSON file.
    1. Log in to ArcGIS Online.
    2. In ArcGIS Online, click Content > My Content. Navigate to the vector tile layer and click its More Options More Options button. button. Click View item details.
    3. On the item details page, click Update.
The vector tile layer's item details page displaying the Update button.
  1. In the Update Style File window, click Choose File, select the modified JSON file saved in Step 2 and click Update Style File.
The Update Syle File window displaying the selected JSON modified. Click Update Style File.
Note:
If necessary, use ArcGIS Vector Tile Style Editor to add, edit, and save the desired sprite. Refer to Vector Tile Style documentation: Sprite Editor for more information.

Article ID: 000026740

Software:
  • ArcGIS Online
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options