<?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 How to report bugs in ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-report-bugs-in-arcgis-api-for-python/m-p/1636761#M11524</link>
    <description>&lt;P&gt;&lt;STRONG&gt;What is the best way to report bugs to help improve&amp;nbsp;ArcGIS API for Python?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am currently dealing with 2, using arcgis-api 2.4.1.1 (&amp;nbsp;conda 25.5.1, python 3.11.13, Windows 11)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Enabling optimised drawing times out with larger polygon layers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WARNING: Could not enable optimized drawing: Your request has timed out.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def set_optimized_drawing(published_item):
    try:
        logger.info("Enabling optimized drawing (multiScaleGeometry)")
        published_item.layers[0].manager.update_definition(
            {"multiScaleGeometryInfo": {"levels": []}}
        )
    except Exception as e:
        logger.warning(f"Could not enable optimized drawing: {e}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rasters of the size around 52MB end up in infinite upload loop&lt;/STRONG&gt; (consistently, tested many times), looking at network monitor it does the upload, goes stall for seconds, and tries again, and again... Publishing raster datasets using&amp;nbsp;from arcgis.raster.analytics import copy_raster. Interestingly it works completely fine with smaller or larger rasters including 3 MB or 3GB.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def upload_raster(gis, temp_path, item_title, item_properties, item_folder_name):
    agol_folder = set_agol_folder(gis, item_folder_name)

    try:
        kwargs = {
            "input_raster": str(temp_path),
            "output_name": item_title,
            "gis": gis,
            "tiles_only": True,
        }

        service_item = copy_raster(**kwargs)

        logger.info(
            "Raster uploaded, moving to designated folder and updating service properties..."
        )
        service_item.move(agol_folder)
        service_item.update(item_properties=item_properties)
        return service_item

    except Exception as e:
        logger.warning(f"Upload error: {e}")
        return None&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jul 2025 06:12:57 GMT</pubDate>
    <dc:creator>miro_aus</dc:creator>
    <dc:date>2025-07-28T06:12:57Z</dc:date>
    <item>
      <title>How to report bugs in ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-report-bugs-in-arcgis-api-for-python/m-p/1636761#M11524</link>
      <description>&lt;P&gt;&lt;STRONG&gt;What is the best way to report bugs to help improve&amp;nbsp;ArcGIS API for Python?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am currently dealing with 2, using arcgis-api 2.4.1.1 (&amp;nbsp;conda 25.5.1, python 3.11.13, Windows 11)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Enabling optimised drawing times out with larger polygon layers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WARNING: Could not enable optimized drawing: Your request has timed out.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def set_optimized_drawing(published_item):
    try:
        logger.info("Enabling optimized drawing (multiScaleGeometry)")
        published_item.layers[0].manager.update_definition(
            {"multiScaleGeometryInfo": {"levels": []}}
        )
    except Exception as e:
        logger.warning(f"Could not enable optimized drawing: {e}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rasters of the size around 52MB end up in infinite upload loop&lt;/STRONG&gt; (consistently, tested many times), looking at network monitor it does the upload, goes stall for seconds, and tries again, and again... Publishing raster datasets using&amp;nbsp;from arcgis.raster.analytics import copy_raster. Interestingly it works completely fine with smaller or larger rasters including 3 MB or 3GB.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def upload_raster(gis, temp_path, item_title, item_properties, item_folder_name):
    agol_folder = set_agol_folder(gis, item_folder_name)

    try:
        kwargs = {
            "input_raster": str(temp_path),
            "output_name": item_title,
            "gis": gis,
            "tiles_only": True,
        }

        service_item = copy_raster(**kwargs)

        logger.info(
            "Raster uploaded, moving to designated folder and updating service properties..."
        )
        service_item.move(agol_folder)
        service_item.update(item_properties=item_properties)
        return service_item

    except Exception as e:
        logger.warning(f"Upload error: {e}")
        return None&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 06:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-report-bugs-in-arcgis-api-for-python/m-p/1636761#M11524</guid>
      <dc:creator>miro_aus</dc:creator>
      <dc:date>2025-07-28T06:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to report bugs in ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-report-bugs-in-arcgis-api-for-python/m-p/1636805#M11525</link>
      <description>&lt;P&gt;Beyond raising a ticket the standard Tech Support route, you could raise an "Issue" at their github site&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api" target="_blank"&gt;Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 08:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-report-bugs-in-arcgis-api-for-python/m-p/1636805#M11525</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-07-28T08:44:54Z</dc:date>
    </item>
  </channel>
</rss>

