<?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: Getting out of range error on Update Template Survey123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/getting-out-of-range-error-on-update-template/m-p/1366650#M53794</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/751811"&gt;@yasir_khaan&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the name of the item in your ArcGIS content "Template v6"? The name of the template used in the update_report_template() method will need to match the name of the item in your content.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 01:29:47 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2024-01-05T01:29:47Z</dc:date>
    <item>
      <title>Getting out of range error on Update Template Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/getting-out-of-range-error-on-update-template/m-p/1366363#M53758</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Hi There,&lt;BR /&gt;I am using a function which will check if there is a template already with same name, update it or else upload it.&lt;/DIV&gt;&lt;DIV&gt;I first upload this template and when I re-upload it, it showed an error which was understandable that template already exists.&lt;/DIV&gt;&lt;DIV&gt;But when I use this&amp;nbsp;&lt;STRONG&gt;update_report_template&lt;/STRONG&gt; function, I provide it with filename, and tried different ways but it always throws me this error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Code and error provided below&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gis &lt;/SPAN&gt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N&gt;docx"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;update &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; survey_by_id&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;update_report_template&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;template_file&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Getting this error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;update = template_item[0].update(item_properties={}, data=template_file)&lt;BR /&gt;IndexError: list index out of range&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jan 2024 16:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/getting-out-of-range-error-on-update-template/m-p/1366363#M53758</guid>
      <dc:creator>yasir_khaan</dc:creator>
      <dc:date>2024-01-04T16:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting out of range error on Update Template Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/getting-out-of-range-error-on-update-template/m-p/1366650#M53794</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/751811"&gt;@yasir_khaan&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the name of the item in your ArcGIS content "Template v6"? The name of the template used in the update_report_template() method will need to match the name of the item in your content.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 01:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/getting-out-of-range-error-on-update-template/m-p/1366650#M53794</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2024-01-05T01:29:47Z</dc:date>
    </item>
  </channel>
</rss>

