<?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: Model builder, find minimum value, Iterate feature class in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845849#M3123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thanks again for your continuing help on this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running ArcView 10 (sp5) if that makes any difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 14:33:01 GMT</pubDate>
    <dc:creator>jamiefinney</dc:creator>
    <dc:date>2014-08-06T14:33:01Z</dc:date>
    <item>
      <title>Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845840#M3114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i'm struggling to finalize a model i'm making. from my final results i want to extract the lowest (minimum) value and save it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm using an "iterate feature classes" tool so i need to be able to add %name% into the expression so it will find the lowest value for each of the files that goes into the tool&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column Elev_Diff is the column i want the minimum value from&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the name of the file will be a variable (from iterator) called %name%&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845840#M3114</guid>
      <dc:creator>jamiefinney</dc:creator>
      <dc:date>2014-08-04T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845841#M3115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Use summary statistics tool, statistics field will be your &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Elev_Diff and statistics will be MIN, don't use any case field. This will create a table with one row, containing your minimum Elev_Diff.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;2. Then Iterate field value of this table to get your name parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845841#M3115</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-04T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845842#M3116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finding the minimum value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be difficult to do as shapefiles don't fully support subqueries (See link &lt;A href="http://support.esri.com/es/knowledgebase/techarticles/detail/31843"&gt;here&lt;/A&gt;). However, if the data were stored within a Personal Geodatabase (MDB) this could be done using the following query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elev_Diff in (select MIN(Elev_Diff) from &amp;lt;featureclass&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting a file with the name of its input:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest adding another tool to the end of the model, Copy Features, to copy the selected features to a new file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845842#M3116</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2014-08-04T14:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845843#M3117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for both your suggestions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian;&lt;/P&gt;&lt;P&gt;your method looks the more promising of the two. I've converted the data into a geodatabase but i can't seem to get the query to validate. i'm sure its something obvious i'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Elev_Diff] in (select MIN([Elev_Diff]) from %name%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Riyas;&lt;/P&gt;&lt;P&gt;your method would work but would require more processing to create points and bring data back into the tables so i'd be keen to avoid this method if i can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 15:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845843#M3117</guid>
      <dc:creator>jamiefinney</dc:creator>
      <dc:date>2014-08-04T15:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845844#M3118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Jamie, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how I set up my model. I put all of the &lt;SPAN&gt;shapefiles&lt;/SPAN&gt; into a Personal Geodatabase, then used the iterate tool to loop through them and create a new feature class using the following expression: &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN&gt;Area_SqFt&lt;/SPAN&gt;] in (select MIN( [&lt;SPAN&gt;Area_SqFt&lt;/SPAN&gt;]) from %Name%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-no-proof:yes;"&gt;&lt;IMG __jive_id="2996" height="393" src="https://community.esri.com/legacyfs/online/2996_image001.png" width="765" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-no-proof:yes;"&gt;&lt;IMG __jive_id="2997" height="535" src="https://community.esri.com/legacyfs/online/2997_image002.png" width="810" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845844#M3118</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2014-08-04T16:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845845#M3119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your continuing help on this query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as best as i can see i've got exactly the same query as you but i'm getting an error see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 08:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845845#M3119</guid>
      <dc:creator>jamiefinney</dc:creator>
      <dc:date>2014-08-05T08:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845846#M3120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;No problem. Do you get the error when running the model or verifying the SQL expression? If it happens during the verify, this would be expected because the verification does not substitute the value of the inline variable when evaluating an expression. When the tool runs, the value of the inline variable is substituted in the expression and the results are created based on the substituted values. (See link &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002w0000005w000000"&gt;here&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845846#M3120</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2014-08-05T13:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845847#M3121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still having trouble getting this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data is now held in a geodatabase but i'm sill getting errors (see attached) when the model runs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've used the query using the feature class to feature class tool and select tool in model builder with the same error outcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845847#M3121</guid>
      <dc:creator>jamiefinney</dc:creator>
      <dc:date>2014-08-06T13:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845848#M3122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Can you send a picture of your model and the settings of the "Name” variable?&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845848#M3122</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2014-08-06T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845849#M3123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thanks again for your continuing help on this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running ArcView 10 (sp5) if that makes any difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845849#M3123</guid>
      <dc:creator>jamiefinney</dc:creator>
      <dc:date>2014-08-06T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845850#M3124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;I believe that the issues being faces are related to the geodatabase referenced in G (7_Match_DTM_Assessment.gdb) and used for the FC to FC in B. This is currently a File Geodatabase (.&lt;SPAN&gt;gdb&lt;/SPAN&gt;) and needs to be a Personal Geodatabase with a .&lt;SPAN&gt;mdb&lt;/SPAN&gt; extension.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845850#M3124</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2014-08-06T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845851#M3125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats worked at last. i had no idea this query would work in a personal geodatabase rather than a file one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just curious is there a reason for this or a method that would work for a file geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 15:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845851#M3125</guid>
      <dc:creator>jamiefinney</dc:creator>
      <dc:date>2014-08-06T15:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder, find minimum value, Iterate feature class</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845852#M3126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;I'm glad to hear this worked! The reason that it won't work in a File Geodatabase is because it requires the use of a &lt;SPAN&gt;subquery&lt;/SPAN&gt; ("&lt;SPAN&gt;Elev_Diff&lt;/SPAN&gt; in (select MIN(&lt;SPAN&gt;Elev_Diff&lt;/SPAN&gt;) from &amp;lt;&lt;SPAN&gt;featureclass&lt;/SPAN&gt;&amp;gt;”) which isn't supported in a File Geodatabase as of yet. One way that this could be worked around is by running the process through Python and finding the minimum value there instead.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 15:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-find-minimum-value-iterate-feature/m-p/845852#M3126</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2014-08-06T15:06:45Z</dc:date>
    </item>
  </channel>
</rss>

