<?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: Receiving &amp;quot;Create replica internal error.&amp;quot; when using multi-sheet excel to append feature layer. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/receiving-quot-create-replica-internal-error-quot/m-p/1022765#M5494</link>
    <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;In case anyone have this problem as well.&lt;/P&gt;&lt;P&gt;This is part of a bug:&lt;BR /&gt;&lt;SPAN&gt;#BUG-000135035&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Workaround:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Cutting the data to be into smaller parts (depending on the data) allow the smaller parts to be successfully appended to the targeted layer."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 21:21:51 GMT</pubDate>
    <dc:creator>VictorZhou1</dc:creator>
    <dc:date>2021-02-02T21:21:51Z</dc:date>
    <item>
      <title>Receiving "Create replica internal error." when using multi-sheet excel to append feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/receiving-quot-create-replica-internal-error-quot/m-p/842710#M3581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've encountered an issue with my python script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script uses an excel file to update attributes of map objects in feature layers on Esri Online.&lt;/P&gt;&lt;P&gt;It gives an error if the excel has multi sheets. (I believe it has something to do with the combination of column headers and the number of sheets.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Msg:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Unable to append data.&lt;BR /&gt;Create replica internal error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Detailed Msg:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="512044" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512044_pastedImage_10.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What the script does:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Uploads Excel to ESRI Online&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Analyse Excel file &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Source = gis.content.analyze(item= &lt;SPAN&gt;uploaded_item&lt;/SPAN&gt;.id, file_type ='excel'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Grabs ID of layer to be updated&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Update attributes using append (Error occurs here)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Lyr_to_Update.append(item_id=uploaded_item.id,&lt;BR /&gt; upload_format = 'excel',&lt;BR /&gt; source_table_name = "test_points_0",&lt;BR /&gt; field_mappings = [{"name":"FID", "source":"FID"},&lt;BR /&gt;{"name":"x", "source":"x"},&lt;BR /&gt; {"name":"y", "source":"y"}&lt;BR /&gt; ],&lt;BR /&gt; source_info = source['publishParameters'],&lt;BR /&gt; upsert=True,&lt;BR /&gt; update_geometry=True,&lt;BR /&gt; append_fields=["FID"],&lt;BR /&gt; skip_inserts=True,&lt;BR /&gt; upsert_matching_field="FID")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append will work fine if I change Analyse Excel file from:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Source = gis.content.analyze(item=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;uploaded_item&lt;/SPAN&gt;&lt;SPAN&gt;.id, file_type ='&lt;STRONG&gt;excel&lt;/STRONG&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Source = gis.content.analyze(item=&amp;nbsp;&lt;SPAN&gt;uploaded_item&lt;/SPAN&gt;&lt;SPAN&gt;.id, file_type ='&lt;STRONG&gt;microsoft excel&lt;/STRONG&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Changing the file_type to &lt;STRONG&gt;microsoft excel&amp;nbsp;&lt;/STRONG&gt;however will prevent the coordinates from being updated. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;(looking at the output for analyze source, the excel file is being read as a csv for some reason.)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 05:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/receiving-quot-create-replica-internal-error-quot/m-p/842710#M3581</guid>
      <dc:creator>VictorZhou1</dc:creator>
      <dc:date>2020-10-29T05:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving "Create replica internal error." when using multi-sheet excel to append feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/receiving-quot-create-replica-internal-error-quot/m-p/1022765#M5494</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;In case anyone have this problem as well.&lt;/P&gt;&lt;P&gt;This is part of a bug:&lt;BR /&gt;&lt;SPAN&gt;#BUG-000135035&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Workaround:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Cutting the data to be into smaller parts (depending on the data) allow the smaller parts to be successfully appended to the targeted layer."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 21:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/receiving-quot-create-replica-internal-error-quot/m-p/1022765#M5494</guid>
      <dc:creator>VictorZhou1</dc:creator>
      <dc:date>2021-02-02T21:21:51Z</dc:date>
    </item>
  </channel>
</rss>

