<?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: ERROR 001156 when using Append in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113309#M8861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;Hmmm... this page seems to say it's not possible:&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01151-01175-001156.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01151-01175-001156.htm"&gt;001156: Failed on input OID ; could not write value '' to output field .—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;A value could not be added to the output field; for example, text values cannot be added to numeric fields, and text values cannot be added to text fields if the values are longer than the field length.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 22:03:28 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2017-06-02T22:03:28Z</dc:date>
    <item>
      <title>ERROR 001156 when using Append</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113307#M8859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm attempting to use append to add data from one table to another, but I am getting the below error (I am writing this in a script, but have tested the append tool in ArcMap as well with the same error):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\Users\zieglerhm\Documents\ArcGIS\Projects\CW2020_IRP_DataProcessing\Script\WorkSummaryDataImport_v0.2.py", line 184, in &amp;lt;module&amp;gt;&lt;BR /&gt; arcpy.management.Append(gm_reh_sum_mem, gm_reh_sum_target, "NO_TEST", gm_reh_sum_fldmap, "Mechanical Cleaning/Root Removal")&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 3995, in Append&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: ERROR 001156: Failed on input OID 1, could not write value '' to output field REHABLENGTH&lt;BR /&gt;Failed to execute (Append).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the field in the source table is of type string while the field being mapped to in the target table is of type double. I was under the impression that field mapping would automatically convert to the new field data type, and the following discussion seems to be using this principle:&amp;nbsp;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/158922/change-field-type-using-field-mapping-for-list-of-tables-using-python" title="https://gis.stackexchange.com/questions/158922/change-field-type-using-field-mapping-for-list-of-tables-using-python"&gt;arcpy - Change Field Type using Field Mapping for List of Tables using Python - Geographic Information Systems Stack Exc…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered this error before, and if so, how did you solve it? Should field mapping change to the data type of the output field automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 20:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113307#M8859</guid>
      <dc:creator>HannesZiegler2</dc:creator>
      <dc:date>2017-06-02T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001156 when using Append</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113308#M8860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of links on this error message... you will probably have to &lt;A href="http://support.esri.com/Search-Results#search?q=Error 001156"&gt;sift through them here&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 20:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113308#M8860</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-02T20:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001156 when using Append</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113309#M8861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;Hmmm... this page seems to say it's not possible:&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01151-01175-001156.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01151-01175-001156.htm"&gt;001156: Failed on input OID ; could not write value '' to output field .—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;A value could not be added to the output field; for example, text values cannot be added to numeric fields, and text values cannot be added to text fields if the values are longer than the field length.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 22:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113309#M8861</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2017-06-02T22:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001156 when using Append</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113310#M8862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, the workaround is to copy it to a numeric value before appending, and update your remap table.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gm_reh_sum_mem&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"REHABLENGTHF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"DOUBLE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CalculateField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gm_reh_sum_mem&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; REHABLENGTHF&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"float(!REHABLENGTH!)"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PYTHON_9.3"&lt;/SPAN&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113310#M8862</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T06:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001156 when using Append</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113311#M8863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, that's the only solution I have found as well, I was hoping there was a more elegant way of doing it. I actually can't believe that there isn't, esri should make it easier to change column attribute types when field mapping. I know that the table to table tool allows you to change the field type being copied out to, but I can't figure out how to accomplish that when using the table to table tool in python. Anyway, thank you guys for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 11:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-when-using-append/m-p/113311#M8863</guid>
      <dc:creator>HannesZiegler2</dc:creator>
      <dc:date>2017-06-05T11:45:03Z</dc:date>
    </item>
  </channel>
</rss>

