String longer than 2147483647 bytes

667
1
05-27-2022 09:50 AM
StanislausCounty
New Contributor III

Hi Esri Community!

I am getting this message: A general error occurred: string longer than 2147483647 bytes when using the ArcGIS gis.item.update method. I have seen other posts on the forum where other people have had this issue. I know that it is because the service definition is more than two GB. However, has this been resolved by Esri? None of the other posts discuss resolutions or have an answer re how to get around this.

0 Kudos
1 Reply
SamSzotkowski
New Contributor III

You can update one property at a time, you don't have to pass the entire item properties dictionary back through update().  Otherwise if it's the data argument that's giving you trouble and not item_properties, maybe you could try sending it a io.BytesIO or io.StringIO object instead, which are alternatives listed in the documentation.  Not sure if that will change anything but worth a shot.

0 Kudos