Esri / Esri/arcgis-python-api

OfflineContentManager export_items fails for "Table (hosted)" feature service

Open
#2,456 3 comments 0 reactions 1 assignee Claimed by @nparavicini7 View on GitHub
cannot reproduce
Dominant language
Python
Stars
2.2k
Forks
1.2k
Avg merge
2h 40m
Merged PRs (30d)
2

Description

**Describe the bug**
When using OfflineContentManager's export_items method, it fails unexpectedly for a "Table (hosted)" feature service. (See error message below.)

**To Reproduce**

1. Create a Table (hosted) either by uploading a simple CSV file or via Content --> New item.
2. Attempting to make an offline backup of the item using export_items produces the following error:

```python
C:\Users\knoop\AppData\Local\ESRI\conda\envs\work\Lib\site-packages\arcgis\apps\itemgraph\_migration.py:149: RuntimeWarning: Failed to export item b570d7c8577042d891d4eb09d348f331 due to error: is not JSON serializable. Deleting folder and skipping...
warnings.warn(
```
The above error message looks to have truncated prematurely as well.

**Expected behavior**
I expect export_items to be able to successfully export a "Table (hosted)" feature service.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.