Select to view content in your preferred language

File size limit in manager.overwrite

677
2
Jump to solution
09-16-2024 10:12 AM
OGLEngineering
Occasional Contributor

Hello. I was following this tutorial (https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/) and when it came time to update the data in my item, it failed because it was over 25mb. I looked into the code and it was overwite(...) in arcgis/managers.py that was forcing a limit of 25mb

 

        if data_file and (
            not isinstance(data_file, str)
            or not os.path.exists(data_file)
            or not os.path.isfile(data_file)
            or os.stat(data_file).st_size > int(2.5e7)
        ):
            raise ValueError(
                "The data file provided does not exist or could not be accessed."
            )

 

 

Is there any reason for this restriction? I removed the file size check and uploaded a 200mb+ geojson file and everything worked perfectly fine. Any insight?

1 Solution

Accepted Solutions
Leo_Lerner
Esri Contributor

Thanks for posting this. The file size check was removed in the 24th September release of the API for Python 2.4.0. 

This version will be compatible with the next release of ArcGIS Pro (3.4). 

Please see the documentation on this change here (scroll down to overwrite() ) https://developers.arcgis.com/python/latest/guide/release-notes-240/

View solution in original post

2 Replies
BijanTaheri
Occasional Contributor

I've also run into this problem before. Good find, i will have to remember this next time i need to upload something of this size.

0 Kudos
Leo_Lerner
Esri Contributor

Thanks for posting this. The file size check was removed in the 24th September release of the API for Python 2.4.0. 

This version will be compatible with the next release of ArcGIS Pro (3.4). 

Please see the documentation on this change here (scroll down to overwrite() ) https://developers.arcgis.com/python/latest/guide/release-notes-240/