<?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: Export Output of Collect Values Tool in Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79448#M2782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your fix, I apologizefor continuing to bother you, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an 'invalid parameters' error again.&amp;nbsp; I've tried to investigate what python is doing here but I'm not sure why this error is occuring. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the error and the model image once again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you could point me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2013 14:52:47 GMT</pubDate>
    <dc:creator>ShinoRah</dc:creator>
    <dc:date>2013-03-28T14:52:47Z</dc:date>
    <item>
      <title>Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79440#M2774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to model builder, I have built a model which calculates mean and minimum distance between features. It also counts how many of those near features fall within a given 'buffer' around a feature. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user can select upto 6 buffer (/radius) lengths.&amp;nbsp; The tool will run and the final result is an excel file.&amp;nbsp; The excel file includes how many features fell within that given buffer but does not include the buffer distances that the user manually input in the beginning.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So for those forgetful users, I'd like to add a column in the excel file that shows the buffer length.&amp;nbsp; I have added an image to this post, which shows visually what I want, because I'm not sure how coherent this explanation is. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully there is someone out there who can help me.&amp;nbsp; I've tried the merge, union and calculate values tool to somehow bring it all together, but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Mar 2013 18:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79440#M2774</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-03-23T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79441#M2775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I've tried the merge, union and calculate values tool to somehow bring it all together, but no luck.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think Calculate Value is the tool you need to use. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make the output for your merge (right before you export to Excel, renamed "OutputTable" below) a precondition to Calculate Value - then have your calculate value tool look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;AddRadiusField(r"%OutputTable%","%RadiusColumns%")&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os
import arcpy
def RadiusTable(rc,tbl):
&amp;nbsp; arcpy.AddField(tbl,"RADIUS","FLOAT")
&amp;nbsp; rc = ";".split(rc)
&amp;nbsp; Rows = arcpy.UpdateCursor(tbl)
&amp;nbsp; k = 0
&amp;nbsp; for Row in Rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Row.setValue("RADIUS",rc&lt;K&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; k += 1
&amp;nbsp; del Row, Row
&amp;nbsp; return tbl
&lt;/K&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Type: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then connect its output to your export to Excel tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79441#M2775</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T23:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79442#M2776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Expression:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;AddRadiusField(r"%OutputTable%","%RadiusColumns%")&lt;BR /&gt;&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response.&amp;nbsp; I have included another photo to show how I am trying to incorporate your great advice. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After reading up on how inline model variables and iterators work, I am thinking I need to change all the blue ovals ("Seach Radius") to "RadiusColumns" as defined in your expression. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am unable to duplicate this label since model builder only allows unique names. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, Following your suggestions would allow me to delete the 'collect values' tool at the top, yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shehin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79442#M2776</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-03-25T13:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79443#M2777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;After reading up on how inline model variables and iterators work, I am thinking I need to change all the blue ovals ("Seach Radius") to "RadiusColumns" as defined in your expression. &lt;BR /&gt;&lt;BR /&gt;But I am unable to duplicate this label since model builder only allows unique names. &lt;BR /&gt;&lt;BR /&gt;Also, Following your suggestions would allow me to delete the 'collect values' tool at the top, yes?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, you need to set the Collect Values output (named RadiusColumn) as a precondition to the Calculate Value tool. It is read by Calculate Value as a ";" delimited string, hence the "split" to convert it into a list lf values. The Collect Values is not an iterator, it will just collect those values in one step. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output of the Calculate value is a table, it should be the input for your Export Table To MS Excel tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first input should be the table that comes out of your other processing (the one with the automatic name that I suggested renaming).&amp;nbsp; I'm assuming in my calc value code (you should check) that the table rows are coming out in the correct order to match the order of the values in RadiusColumns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks again Curtis, &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 15:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79443#M2777</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-25T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79444#M2778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Expression:&lt;BR /&gt;&lt;BR /&gt;AddRadiusField(r"%OutputTable%","%RadiusColumns%")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Code block:&lt;BR /&gt; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

Code:
import os
import arcpy
def RadiusTable(rc,tbl):
&amp;nbsp; arcpy.AddField(tbl,"RADIUS","FLOAT")
&amp;nbsp; rc = ";".split(rc)
&amp;nbsp; Rows = arcpy.UpdateCursor(tbl)
&amp;nbsp; k = 0
&amp;nbsp; for Row in Rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Row.setValue("RADIUS",rc&lt;K&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; k += 1
&amp;nbsp; del Row, Row
&amp;nbsp; return tbl

&lt;/K&gt;&lt;/PRE&gt;&lt;BR /&gt;Data Type: &lt;BR /&gt;&lt;BR /&gt;table&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi again Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code block you so graciously provided for me, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just wondering if I need to define 'AddRadiusField' somewhere in the model?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reason being, I get this error when trying to run:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AddRadiusField(r"Z:\Scratch\1303\130114_temp1.dbf","%RadiusColumns%") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.NameError'&amp;gt;: name &lt;/SPAN&gt;&lt;STRONG&gt;'AddRadiusField' is not defined&lt;/STRONG&gt;&lt;SPAN&gt;Failed to execute (Calculate Value).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Mon Mar 25 12:07:18 2013 (Elapsed Time: 8.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (130117).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Mon Mar 25 12:07:24 2013 (Elapsed Time: 5 minutes 30 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79444#M2778</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2021-12-10T23:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79445#M2779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I get this error when trying to run:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;ERROR 000539: Error running expression: &lt;BR /&gt;AddRadiusField(r"Z:\Scratch\1303\130114_temp1.dbf","%RadiusColumns%") &lt;BR /&gt;&amp;lt;type 'exceptions.NameError'&amp;gt;: name &lt;STRONG&gt;'AddRadiusField' is not defined&lt;/STRONG&gt;Failed to execute (Calculate Value). &lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry, I made a mistake in my post - the function names need to match. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing, those two inputs should be preconditions to the Calculate Value tool so you are sure they have been calculated before the Calculate Value tool runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Calculate Value parameters:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;&lt;SPAN style="color:blue;"&gt;&lt;STRONG&gt;RadiusTable&lt;/STRONG&gt;&lt;/SPAN&gt;(r"%OutputTable%","%RadiusColumns%")&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os
import arcpy
def RadiusTable(rc,tbl):
&amp;nbsp; arcpy.AddField_management(tbl,"RADIUS","FLOAT")
&amp;nbsp; rc = ";".split(rc)
&amp;nbsp; Rows = arcpy.UpdateCursor(tbl)
&amp;nbsp; k = 0
&amp;nbsp; for Row in Rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Row.setValue("RADIUS",rc&lt;K&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; k += 1
&amp;nbsp; del Row, Row
&amp;nbsp; return tbl
&lt;/K&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Type: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;Table&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79445#M2779</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T23:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79446#M2780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the corrected code, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a python specific error when I incorporate your suggestions, I am not at all familiar with python and so a little overwhelmed with this attached error message, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you can point in me in the direction I would take to begin solving this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 19:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79446#M2780</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-03-26T19:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79447#M2781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had the parameters in the wrong order, sorry. The parameters are passed in the order they are listed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's&amp;nbsp; my fix:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Calculate Value parameters:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;&lt;SPAN style="color:blue;"&gt;&lt;STRONG&gt;RadiusTable&lt;/STRONG&gt;&lt;/SPAN&gt;(r"%OutputTable%","%RadiusColumns%")&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os
import arcpy
def RadiusTable(&lt;SPAN style="color:blue;"&gt;tbl,rc&lt;/SPAN&gt;):
&amp;nbsp; arcpy.AddField_management(tbl,"RADIUS","FLOAT")
&amp;nbsp; rc = ";".split(rc)
&amp;nbsp; Rows = arcpy.UpdateCursor(tbl)
&amp;nbsp; k = 0
&amp;nbsp; for Row in Rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Row.setValue("RADIUS",rc&lt;K&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; k += 1
&amp;nbsp; del Row, Row
&amp;nbsp; return tbl
&lt;/K&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Type: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;Table&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79447#M2781</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T23:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79448#M2782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your fix, I apologizefor continuing to bother you, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an 'invalid parameters' error again.&amp;nbsp; I've tried to investigate what python is doing here but I'm not sure why this error is occuring. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the error and the model image once again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you could point me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 14:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79448#M2782</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-03-28T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79449#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to use preconditions to control the order of processing. Your merge must run first before the Calculate Value so the "Output Table" dbf will have been created before the CV starts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output of your Calculate Value is a table -- which you then want to provide as input to your export to Excel function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23043[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 15:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79449#M2783</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-28T15:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79450#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have many input tables for the "Export table to MS Excel" tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I've read, I don't think this is possible, and when I tried to connect the Radius output to it, the connection with the 'output table' automatically disappears and many of the tools go blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps there is a similair tool to 'export table to MS excel' that allows multiple input? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe there is a way I could do this where I continue trying to connect the radius output to the merge tool, as I had initially?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts you have on this will be very much appreciated!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 20:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79450#M2784</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-03-28T20:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79451#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you're missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Calculate Value tool I wrote for you takes the output of the Merge (the precondition connect just makes the merge happens first) and modifies that table. The CV output should then go to the your export tool (make sure it is set to type TABLE&amp;nbsp; so it will be accepted by the tool!)&amp;nbsp; The merge output should not be connected to your export tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 01:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79451#M2785</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-29T01:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79452#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Curtis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your response. I have made the following changes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have diconnected the merge output from the export to excel tool and replaced it with the output of the CV tool.&amp;nbsp; Now the output of the CV tool is the input to the Export to Excel.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under the 'Fields to Export' (in the export to excel tool), I have no options as I did when the merge tool was connected.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not having a selection for this field is not allowed by the tool and so the tool remains blank. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering how I can fix that?&amp;nbsp; Am I supposed to have fields in this 'Radius' table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks agian,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79452#M2786</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-04-01T16:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79453#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It appears the export to excel tool needs validation that Calculate Value can't provide. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the validation to work, connect the Merge output to Add Field and add the RADIUS field. Connect the output of Add Field to your export tool. This way the export tool will be aware of your new field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you still want to populate that RADIUS field with values, so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Connect the output of Add Field to the Calculate Value tool as a precondition, and the CV's output to the export tool as a precondition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure this will all work, but it's worth a try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 23:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79453#M2787</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-04-01T23:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export Output of Collect Values Tool in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79454#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok I think I am getting close thanks to all of your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clue what this error means .. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: RadiusTable(r"Z:\Scratch\srah\130114_temp1.dbf","'600 Meters';'750 Meters';'1000 Meters';'1500 Meters';'2000 Meters';'2500 Meters'") &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 19:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-output-of-collect-values-tool-in-model/m-p/79454#M2788</guid>
      <dc:creator>ShinoRah</dc:creator>
      <dc:date>2013-04-08T19:35:54Z</dc:date>
    </item>
  </channel>
</rss>

