<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overwrite Hosted Feature Layer Overflow error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1183006#M7493</link>
    <description>&lt;P&gt;I am encountering the same issue uploading a zipped FGDB to overwrite a hosted feature layer.&amp;nbsp; "Exception: A general error occurred: string longer than 2147483647 bytes"&lt;/P&gt;&lt;P&gt;When I limited my test data to reduce the number of features, the size was kept the size down and the script worked flawlessly.&amp;nbsp; The zipped FGDB with the entire dataset is 3.6GB and the exact same identical code fails.&amp;nbsp; This is just plain unacceptable behavior for a problem reported over 2 years ago.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 03:55:09 GMT</pubDate>
    <dc:creator>KentWilliams</dc:creator>
    <dc:date>2022-06-15T03:55:09Z</dc:date>
    <item>
      <title>Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/798966#M1969</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to script out an overwrite workflow using &lt;A href="https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/" target="_blank" rel="noopener"&gt;the method found here&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Relevant code from above link (&lt;EM&gt;Overwrite Feature Layer&lt;/EM&gt; section near the bottom):&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcgis.features&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt; &lt;SPAN class=""&gt;FeatureLayerCollection&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;cities_flayer_collection&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;FeatureLayerCollection&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;fromitem&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;cities_item&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;#call the overwrite() method which can be accessed using the manager property&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;cities_flayer_collection&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;manager&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;overwrite&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;os&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;join&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'data'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'updating_gis_content'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'updated_capitals_csv'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'capitals_1.csv'&lt;/SPAN&gt;&lt;SPAN class=""&gt;))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used this in the past for other scripts and it works swell. However, I now have a need to create a single "master" feature layer comprised of multiple datasets that have been merged together, and it comes out as a pretty big file size when zipped together in a fgdb for upload (2.1 GB). When I manually execute the Overwrite using the menu buttons on the item detail page in ArcGIS Online, it uploads and overwrites the feature layer from my zipped fgdb with no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to replicate this via the scripting method above, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:/Users/user_user/.PyCharmCE2019.3/config/scratches/DRP_Update_SNAPP_Master.py", line 146, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.manager.overwrite(newdata)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py", line 1268, in overwrite&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if related_data_item.update(item_properties=params, data=data_file):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 8165, in update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; large_thumbnail)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\portalpy.py", line 2228, in update_item&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resp = self.con.post(path, postdata, files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 1106, in post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resp = opener.open(req)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 526, in open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = self._open(req, data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 544, in _open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '_open', req)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 504, in _call_chain&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = func(*args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1361, in https_open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; context=self._context, check_hostname=self._check_hostname)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1318, in do_open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; encode_chunked=req.has_header('Transfer-encoding'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1254, in request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._send_request(method, url, body, headers, encode_chunked)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1300, in _send_request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.endheaders(body, encode_chunked=encode_chunked)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1249, in endheaders&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._send_output(message_body, encode_chunked=encode_chunked)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1075, in _send_output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.send(chunk)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 996, in send&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.sock.sendall(data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py", line 975, in sendall&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v = self.send(byte_view[count:])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py", line 944, in send&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._sslobj.write(data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py", line 642, in write&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._sslobj.write(data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;OverflowError: string longer than 2147483647 bytes&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I haven't found any sort of note within the API reference stating that the overwrite uploads are limited to 2GB -- and it works when I do it manually -- so I'm confused what I'm running into here, and unsure how to work around it. Is it a limitation of the urllib or ssl packages that the .overwrite function uses?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 16:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/798966#M1969</guid>
      <dc:creator>AaronKoelker</dc:creator>
      <dc:date>2022-05-30T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/798967#M1970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it's been a couple of weeks without an answer, I'm probably going to end up using .sd files to publish the data from within an ArcGIS Pro project as a workaround... but if anyone down the road sees this question and knows of a solution I would still love to hear it, because I much prefer the workflow above using the ArcGIS API for Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Welp, I can't get anywhere with .sd files from Pro, either. I get the obscure ERROR 999999 (The base table definition string "0" is invalid?) randomly when trying to use the Copy Features tool one by one for each layer in my hosted feature collection. Apparently, my hosted feature is too big to do anything with now, because I can no longer grab it programmatically or download it manually from the item details page. I'm at a complete loss. If anyone has any idea how to resolve either of these issues, please give me a shout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/798967#M1970</guid>
      <dc:creator>AaronKoelker</dc:creator>
      <dc:date>2020-03-16T21:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/798968#M1971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't seen a solution yet, but wanted to add that I am getting the same error when using the arcgis.gis.Item.update() function&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.update" title="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.update" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis.gis module — arcgis 1.8.0 documentation&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;itemProps &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
success &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item_properties&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;itemProps&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;data&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;src_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍
‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;item is an existing Tile Package item on ArcGIS Online.&lt;/P&gt;&lt;P&gt;src_file is a path to a Tile Package (.lpkx) locally, size 2.1 GB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Returned:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #ff0000;"&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 8165, in update&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; large_thumbnail)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\portalpy.py", line 2228, in update_item&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; resp = self.con.post(path, postdata, files)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 1106, in post&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; resp = opener.open(req)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 526, in open&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; response = self._open(req, data)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 544, in _open&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; '_open', req)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 504, in _call_chain&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; result = func(*args)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1361, in https_open&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; context=self._context, check_hostname=self._check_hostname)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1318, in do_open&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; encode_chunked=req.has_header('Transfer-encoding'))&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1254, in request&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; self._send_request(method, url, body, headers, encode_chunked)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1300, in _send_request&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; self.endheaders(body, encode_chunked=encode_chunked)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1249, in endheaders&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; self._send_output(message_body, encode_chunked=encode_chunked)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1075, in _send_output&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; self.send(chunk)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 996, in send&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; self.sock.sendall(data)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py", line 975, in sendall&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; v = self.send(byte_view[count:])&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py", line 944, in send&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; return self._sslobj.write(data)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py", line 642, in write&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt; return self._sslobj.write(data)&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;OverflowError: string longer than 2147483647 bytes&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The Upload function from the AGOL Item page seems to work without issue. I've also made sure the filename being uploaded is the same as the original file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/798968#M1971</guid>
      <dc:creator>AlexRexroad2</dc:creator>
      <dc:date>2021-12-12T09:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1067965#M6193</link>
      <description>&lt;P&gt;I know it's been 15 months, but for reference I'm getting the same exact error in ArcGIS API for Python version 1.8.5.&amp;nbsp; The zip file I'm failing on is an FGDB with a layer that has attachments (photos), so it's quite large - 8GB.&amp;nbsp; The size may have something to do with the issue because smaller (&amp;lt; 1GB) files work, but that's completely circumstantial evidence at this point.&amp;nbsp; I don't currently have any better metrics.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 16:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1067965#M6193</guid>
      <dc:creator>Sean-Sweeney</dc:creator>
      <dc:date>2021-06-14T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1148427#M7169</link>
      <description>&lt;P&gt;Hi, I have the same issue with overwriting a large SD file (2.15 GB). Seems there is no solution for this, right? :((&lt;/P&gt;&lt;P&gt;Definitely size is the issue because I can overwrite other SD files with smaller size.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 02:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1148427#M7169</guid>
      <dc:creator>MaryamBarzegar</dc:creator>
      <dc:date>2022-02-28T02:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1161771#M7291</link>
      <description>&lt;P&gt;Me too. I'm using Python to update a Portal file geodatabase item. It seems to be because of the size (3.2GB). When I delete the photos attachment tables to reduce size (753MB) then it updates fine.&lt;BR /&gt;&lt;BR /&gt;fgdbItem = gis.content.get('itemId')&lt;BR /&gt;fgdbItem .update(data=r"link to zip file")&lt;/P&gt;&lt;P&gt;I was also able to use&amp;nbsp;gis.content.add to successfully upload the&amp;nbsp;3.2GB zipped fgdb.&amp;nbsp; So adding a large file works, but updating does not.&lt;/P&gt;&lt;P&gt;I can also manually update item through Portal. So file size doesn't matter there, either.&amp;nbsp; It just seems to be Item.update that throws an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 18:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1161771#M7291</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2022-04-06T18:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1177796#M7431</link>
      <description>&lt;P&gt;I'm also getting this error; does Esri plan on fixing this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 23:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1177796#M7431</guid>
      <dc:creator>StanislausCounty</dc:creator>
      <dc:date>2022-05-26T23:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Feature Layer Overflow error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1183006#M7493</link>
      <description>&lt;P&gt;I am encountering the same issue uploading a zipped FGDB to overwrite a hosted feature layer.&amp;nbsp; "Exception: A general error occurred: string longer than 2147483647 bytes"&lt;/P&gt;&lt;P&gt;When I limited my test data to reduce the number of features, the size was kept the size down and the script worked flawlessly.&amp;nbsp; The zipped FGDB with the entire dataset is 3.6GB and the exact same identical code fails.&amp;nbsp; This is just plain unacceptable behavior for a problem reported over 2 years ago.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 03:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-feature-layer-overflow-error/m-p/1183006#M7493</guid>
      <dc:creator>KentWilliams</dc:creator>
      <dc:date>2022-06-15T03:55:09Z</dc:date>
    </item>
  </channel>
</rss>

