<?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: Only create excel files from specified expression. in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/only-create-excel-files-from-specified-expression/m-p/795881#M1294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if any one else ends up with this problem I found a simple solution. The "Get Count" tool added after my "Iterated Output" counts all tables that have rows with data.&amp;nbsp; Setting the output of "Get Count" as a precondition for "Table To Excel" only produces excel tables with data.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Final Tool" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/451641_FinalGWOTool.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 13:23:17 GMT</pubDate>
    <dc:creator>BrandonPetry2</dc:creator>
    <dc:date>2019-06-27T13:23:17Z</dc:date>
    <item>
      <title>Only create excel files from specified expression.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/only-create-excel-files-from-specified-expression/m-p/795880#M1293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built a model that iterates through my feature classes while only selecting attributes that have a specified expression and exports the tables to excel.&amp;nbsp; Hopefully that made sense.&amp;nbsp; The model works and excel files are created with only the attributes that pertain to my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that it creates excel files for every feature class even if there is no data, (No data since there is an expression).&amp;nbsp;&amp;nbsp;&amp;nbsp;How/where can I add in another option to only export files that have my specified expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below and attached&amp;nbsp;is a view of the model.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="451402" alt="Model Builder Image" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/451402_ModelBuilder.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum it up (easily), the tool as it stands, will find 1 feature class with data out of 10 and export 10 feature classes.&amp;nbsp; It needs to only export the feature class with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thought is having a statement, "if table has data, then export to excel", but I am not sure how to add this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/only-create-excel-files-from-specified-expression/m-p/795880#M1293</guid>
      <dc:creator>BrandonPetry2</dc:creator>
      <dc:date>2019-06-25T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Only create excel files from specified expression.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/only-create-excel-files-from-specified-expression/m-p/795881#M1294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if any one else ends up with this problem I found a simple solution. The "Get Count" tool added after my "Iterated Output" counts all tables that have rows with data.&amp;nbsp; Setting the output of "Get Count" as a precondition for "Table To Excel" only produces excel tables with data.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Final Tool" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/451641_FinalGWOTool.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:23:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/only-create-excel-files-from-specified-expression/m-p/795881#M1294</guid>
      <dc:creator>BrandonPetry2</dc:creator>
      <dc:date>2019-06-27T13:23:17Z</dc:date>
    </item>
  </channel>
</rss>

