<?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: Accessing &amp;quot;derived output&amp;quot; values of Append tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486419#M70740</link>
    <description>&lt;P&gt;not sure I follow, but anyway, the first element of a python list is 0, if index 1 is being queried and doesn't exist, that is why you are getting the error&lt;/P&gt;&lt;P&gt;another possibility is that a list is being returned (index 0) which may contain more than 1 element eg 0 and 1) so you would have to get the list then index into it&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 17:01:36 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-06-06T17:01:36Z</dc:date>
    <item>
      <title>Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486214#M70738</link>
      <description>&lt;P&gt;I have a simple script which uses the Append gp tool with the option to update existing records (upsert). I am trying to access&amp;nbsp; derived output parameters&amp;nbsp;"&lt;STRONG&gt;appended_row_count&lt;/STRONG&gt;" and "&lt;SPAN&gt;&lt;STRONG&gt;updated_row_count&lt;/STRONG&gt;". Are these elements of the list? I am getting&amp;nbsp;&lt;STRONG&gt;The index 1 is out of range error&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I check the Get count gp tool output parameter ("&lt;STRONG&gt;row_count&lt;/STRONG&gt;") it is being accessed as the first element of the list. It does not seem to be working for me for the other tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How to get these two long integer values in the py script?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486214#M70738</guid>
      <dc:creator>Sfortunatamente</dc:creator>
      <dc:date>2024-06-06T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486419#M70740</link>
      <description>&lt;P&gt;not sure I follow, but anyway, the first element of a python list is 0, if index 1 is being queried and doesn't exist, that is why you are getting the error&lt;/P&gt;&lt;P&gt;another possibility is that a list is being returned (index 0) which may contain more than 1 element eg 0 and 1) so you would have to get the list then index into it&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 17:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486419#M70740</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-06-06T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486507#M70743</link>
      <description>&lt;P&gt;Yeah, I put the question is a quite complicated way. Look at the screenshot.&lt;/P&gt;&lt;P&gt;the code is:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;loaded = arcpy.management.Append(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;inputs=inputLayer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;target=destTable,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;schema_type="NO_TEST",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;field_mapping=None,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;subtype="",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;expression="",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;match_fields="keyfield keyfield",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;update_geometry="UPDATE_GEOMETRY"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;it appends the data. If you look at the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/append.htm" target="_self"&gt;tool description&lt;/A&gt; in the section of the Derived Output you see three parameters. I do not know how to get a second and third long integer value. When printing "loaded" I get only path to target feature class.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 18:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486507#M70743</guid>
      <dc:creator>Sfortunatamente</dc:creator>
      <dc:date>2024-06-06T18:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486531#M70745</link>
      <description>&lt;P&gt;Sorry, my fault. I have Pro 3.2. Three parameters in the Append tool are available in version 3.3..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 18:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1486531#M70745</guid>
      <dc:creator>Sfortunatamente</dc:creator>
      <dc:date>2024-06-06T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1565196#M73282</link>
      <description>&lt;P&gt;You can get the output like this,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt; # Print derived output and messages
    print("Derived Output (Target Layer):", append[0])  # The first element is the target layer path
    print("Messages:")
    for message in append.getMessages().splitlines():
        print(message)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Dec 2024 16:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1565196#M73282</guid>
      <dc:creator>JonathanMurphy2</dc:creator>
      <dc:date>2024-12-05T16:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1565198#M73283</link>
      <description>&lt;P&gt;Whoops, hit enter too quickly. Updated to use the variable you set for the append function,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# Print derived output and messages
    print("Derived Output (Target Layer):", loaded[0])  # The first element is the target layer path
    print("Messages:")
    for message in lloaded.getMessages().splitlines():
        print(message)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 16:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1565198#M73283</guid>
      <dc:creator>JonathanMurphy2</dc:creator>
      <dc:date>2024-12-05T16:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1650990#M74701</link>
      <description>&lt;P&gt;I don't think the messages output is a reliable solution to accessing those counts values...&lt;BR /&gt;&lt;BR /&gt;We stumbled onto this thread and feel the need to reiterate the question: how do we &lt;EM&gt;reliably&lt;/EM&gt;&amp;nbsp;access the LONG values promised by the documentation (appended_row_count and updated_row_count) with ArcPy?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 12:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1650990#M74701</guid>
      <dc:creator>D_Atkins</dc:creator>
      <dc:date>2025-09-17T12:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing "derived output" values of Append tool</title>
      <link>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1670440#M74960</link>
      <description>&lt;P&gt;result =&amp;nbsp;arcpy.management.Append(............)&lt;/P&gt;&lt;P&gt;result.getOutput(0) =&amp;gt;&amp;nbsp;Updated Target Dataset&lt;/P&gt;&lt;P&gt;result.getOutput(1) =&amp;gt;&amp;nbsp;Appended Row Count&lt;/P&gt;&lt;P&gt;result.getOutput(2) =&amp;gt;&amp;nbsp;Updated Row Count&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 13:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-quot-derived-output-quot-values-of/m-p/1670440#M74960</guid>
      <dc:creator>NicolasDELAVAL66</dc:creator>
      <dc:date>2025-12-04T13:22:20Z</dc:date>
    </item>
  </channel>
</rss>

