Skip to content

OfflineContentManager export_items fails for "Tile layer (hosted)" map service #2457

@knoopum

Description

@knoopum

Describe the bug
When using the OfflineContentManager's export_items method with a "Tile layer (hosted)" map service, published from a Tile Package, it unexpectedly fails. (See error message below.)

To Reproduce
In order to reproduce the issue you can attempt to use export_items with a "Tile layer (hosted)" map service, published from a Tile package. It will result in the following error:

C:\Users\knoop\AppData\Local\ESRI\conda\envs\work\Lib\site-packages\arcgis\apps\itemgraph\_migration.py:149: RuntimeWarning: Failed to export item 9ad056d339534fdb9c75fa354491f101 due to error: <MapRasterLayer url:"https://tiles.arcgis.com/tiles/4ezfu5dIwH83BUNL/arcgis/rest/services/Environs_Jerusalem_NLI/MapServer/0"> is not JSON serializable. Deleting folder and skipping...
  warnings.warn(

Expected behavior
I expect export_items to be able to successfully export a "Tile layer (hosted)" map service, including its Tile package.

Platform (please complete the following information):
Python API 2.4.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions