<?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 Model Builder operation issue in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833808#M726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, this is my first GeoNet post so forgive me if I've asked my questions in the wrong place!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal of my current project is to create a map animation of global COVID-19 case numbers, where the animation shows changing daily case numbers, symbolized by graduated symbols. The COVID data that I have is just a table with various data for every country, every day, since 12/31/2019. I cannot join it to a &lt;EM&gt;country&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;feature class because it would be a 1:M cardinality, and I'd be unable to symbolize the data. So I've attempted to use model builder to automate the querying, joining, and exporting processes. I created one workable model that allowed me to query the COVID data, join the queried data to a country feature class, and create a permanent feature class from that. This means, however, that I would need to go in and change the date variable over and over, manually, to create new feature classes for each date. So, I tried to understand the use of - and then utilize - &lt;STRONG&gt;iterators&lt;/STRONG&gt;, to create everything I wanted with one button click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the&amp;nbsp;&lt;STRONG&gt;Iterate Field Values&lt;/STRONG&gt; iterator, so that the model would take each date (of which there are 230+ records for each date, because each country is represented in the table), and create a new table from it. Then the model would join that date table to the country feature class, and create a new permanent feature class. This new FC I would use for my animation. However, I received an error at the&amp;nbsp;&lt;EM&gt;iterator&lt;/EM&gt; part of the model, and cannot figure out how to fix it (one error is an unexpected error that needs a bug report submitted). I've attached photos of the model, error window, and COVID table snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time using model builder, and I know I'm doing something wrong. Any help would be appreciated! And, let me know what other info you may need, as I'm sure what I've provided is not exhaustive.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2020 01:51:03 GMT</pubDate>
    <dc:creator>JackCharde1</dc:creator>
    <dc:date>2020-07-10T01:51:03Z</dc:date>
    <item>
      <title>Model Builder operation issue</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833808#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, this is my first GeoNet post so forgive me if I've asked my questions in the wrong place!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal of my current project is to create a map animation of global COVID-19 case numbers, where the animation shows changing daily case numbers, symbolized by graduated symbols. The COVID data that I have is just a table with various data for every country, every day, since 12/31/2019. I cannot join it to a &lt;EM&gt;country&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;feature class because it would be a 1:M cardinality, and I'd be unable to symbolize the data. So I've attempted to use model builder to automate the querying, joining, and exporting processes. I created one workable model that allowed me to query the COVID data, join the queried data to a country feature class, and create a permanent feature class from that. This means, however, that I would need to go in and change the date variable over and over, manually, to create new feature classes for each date. So, I tried to understand the use of - and then utilize - &lt;STRONG&gt;iterators&lt;/STRONG&gt;, to create everything I wanted with one button click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the&amp;nbsp;&lt;STRONG&gt;Iterate Field Values&lt;/STRONG&gt; iterator, so that the model would take each date (of which there are 230+ records for each date, because each country is represented in the table), and create a new table from it. Then the model would join that date table to the country feature class, and create a new permanent feature class. This new FC I would use for my animation. However, I received an error at the&amp;nbsp;&lt;EM&gt;iterator&lt;/EM&gt; part of the model, and cannot figure out how to fix it (one error is an unexpected error that needs a bug report submitted). I've attached photos of the model, error window, and COVID table snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time using model builder, and I know I'm doing something wrong. Any help would be appreciated! And, let me know what other info you may need, as I'm sure what I've provided is not exhaustive.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 01:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833808#M726</guid>
      <dc:creator>JackCharde1</dc:creator>
      <dc:date>2020-07-10T01:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder operation issue</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833809#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 30px; "&gt;UPDATE (but with issues still)!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; "&gt;I've figured out how to get the entire model to run successfully. I used&amp;nbsp;&lt;EM&gt;Iterate Row Selection&lt;/EM&gt;, which allows me to group records by the unique values of a particular field, create a &lt;EM&gt;Table View&lt;/EM&gt;, and use that view for other geoprocessing tools. So now I can group the COVID tabular data by date, create a new table, and join that table to my&amp;nbsp;&lt;EM&gt;Countries&lt;/EM&gt; feature class&lt;SPAN style="font-size: 22px;"&gt;. When looking at the attributes for the final output feature class created by the model, all of the fields from both the &lt;EM&gt;Countries&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;COVID-19&lt;/EM&gt;&lt;EM&gt; &lt;/EM&gt;attribute tables are there, but all&amp;nbsp;COVID-19 fields are &amp;lt;Null&amp;gt;. So I checked the tables created by the&amp;nbsp;&lt;EM&gt;Iterate&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;Create Table&lt;/EM&gt;, and they are ALL empty.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px; "&gt;I am not sure why the output of the&amp;nbsp;&lt;EM&gt;Create Table&lt;/EM&gt; tool is empty, but maybe it has to do with the&amp;nbsp;&lt;EM&gt;Iterate&lt;/EM&gt; tool? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px; font-family: 'arial black', sans-serif; "&gt;Any suggestions would be much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px; "&gt;(Below is an image of my updated model!)&lt;IMG alt="Updated model with a different iterator." class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/500275_Project_Model_updated.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 00:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833809#M727</guid>
      <dc:creator>JackCharde1</dc:creator>
      <dc:date>2020-07-15T00:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder operation issue</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833810#M728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 30px; "&gt;SOLVED!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks to Esri's &lt;STRONG&gt;Shitij Mehta&lt;/STRONG&gt;, who presented the&amp;nbsp;&lt;EM&gt;Model Builder: Tips and Tricks&lt;/EM&gt; technical workshop today at Esri's User Conference 2020 and answered my question posted here in this thread.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Instead of using the&amp;nbsp;&lt;EM&gt;Create Table&lt;/EM&gt; tool, she suggested I use&amp;nbsp;&lt;EM&gt;Copy Rows&lt;/EM&gt;, which worked! The image below is of the final model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/500416_pastedImage_8.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 18:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833810#M728</guid>
      <dc:creator>JackCharde1</dc:creator>
      <dc:date>2020-07-15T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder operation issue</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833811#M729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 22px;"&gt;I actually ended up having this solution fail! So frustrating!&lt;/SPAN&gt;&amp;nbsp;(created a new post with an updated model and pictures)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;STRONG&gt;It did correctly iterate through the non-spatial table and give me an individual table for each day. However, it did not join each day to my countries shapefile. Instead, it kept attaching the 12/31/2019 table to the countries.shp, and I don't know why.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/943577-model-builder-join-tool-output-is-wrong"&gt;This is the newer post with updates and persisting issues&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-operation-issue/m-p/833811#M729</guid>
      <dc:creator>JackCharde1</dc:creator>
      <dc:date>2020-08-21T20:28:47Z</dc:date>
    </item>
  </channel>
</rss>

