Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone_items() fails with timeout error #2190

Open
DanaAbuMourh-MAG opened this issue Jan 14, 2025 · 0 comments
Open

clone_items() fails with timeout error #2190

DanaAbuMourh-MAG opened this issue Jan 14, 2025 · 0 comments
Labels

Comments

@DanaAbuMourh-MAG
Copy link

DanaAbuMourh-MAG commented Jan 14, 2025

Describe the bug
I have an ArcGIS Online Hosted Feature Layer, its size is 255 MB, it has attachments with size: 12.53 GB. It's failing to clone (clone_items) due to time out after about 15-20 minutes.

Smaller Feature Layers clone without issues.

Is there a limit to the size of the items we can clone? If there is, is there a way to work around this?

To Reproduce
Steps to reproduce the behavior:

from arcgis.gis import GIS

gis = GIS("https://arcgis.com", "username", "password", expiration=9999)
layer = gis.content.get("featureserviceid")
gis.content.clone_items([layer], "Test Folder")

error:

Your request has timed out. : (Error Code: 504)', <Item title:"item_title" type:Feature Layer Collection owner:username>)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\_impl\common\_clone.py", line 4270, in clone
    raise _ItemCreateException(
arcgis._impl.common._clone._ItemCreateException: ('Failed to create Feature Service service_name: Your request has timed out. (Error Code: 504)', <Item title:"item_title" type:Feature Layer Collection owner:username>)

Platform:

  • OS: Windows 11
  • Browser Edge
  • Python API Version 2.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant