<?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: Import CSV files based on Field Name in Feature Dataset in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411350#M82000</link>
    <description>&lt;P data-unlink="true"&gt;Another way to do this is within ModelBuilder.&amp;nbsp; ModelBuilder has the &lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/modelbuilder-toolbox/iterate-row-selection.htm" target="_self"&gt;Iterate Row Selection&lt;/A&gt;&amp;nbsp;and &lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/modelbuilder-toolbox/iterate-field-value.htm" target="_self"&gt;Iterate Field Value&lt;/A&gt;&amp;nbsp;&amp;nbsp;iterator which you could use to grab the value of the CSV REF field into a model variable.&amp;nbsp; You could then use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" target="_self"&gt;inline substitution&lt;/A&gt;&amp;nbsp;with this model variable to construct the pathname to the CSV file, then feed that pathname into the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-table.htm" target="_self"&gt;Table To Table&lt;/A&gt; tool to create a .gdb table.&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/examples-of-using-iterators-in-modelbuilder.htm" target="_self"&gt;This topic&lt;/A&gt; explains all the iterators available to you.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 01:58:46 GMT</pubDate>
    <dc:creator>Dale_Honeycutt</dc:creator>
    <dc:date>2024-04-18T01:58:46Z</dc:date>
    <item>
      <title>Import CSV files based on Field Name in Feature Dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1410775#M81942</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Feature Class which shows the extent of a number of associated CSV files containing DTM points. Using a select by location query, I have created a second feature class which contains a subset of those CSV files I want to import to a GDB.&lt;/P&gt;&lt;P&gt;My question is, is there a way to import CSV files based on the field name in the feature class so I only import those CSV files?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101185iA976BB6CBBC5A4EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table.JPG" alt="Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Explorer.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101186iAF8081BCBBD00221/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Explorer.JPG" alt="Explorer.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 07:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1410775#M81942</guid>
      <dc:creator>Paul_Duffy_Waters_of_LIFE</dc:creator>
      <dc:date>2024-04-17T07:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV files based on Field Name in Feature Dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1410890#M81952</link>
      <description>&lt;P&gt;You could make a list of the table names and use Python to iterate over the list and add the tables to the map.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/table.htm#:~:text=script%20will%20add%20a%20table" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/table.htm#:~:text=script%20will%20add%20a%20table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 13:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1410890#M81952</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-04-17T13:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV files based on Field Name in Feature Dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411350#M82000</link>
      <description>&lt;P data-unlink="true"&gt;Another way to do this is within ModelBuilder.&amp;nbsp; ModelBuilder has the &lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/modelbuilder-toolbox/iterate-row-selection.htm" target="_self"&gt;Iterate Row Selection&lt;/A&gt;&amp;nbsp;and &lt;A href="https://pro.arcgis.com/en/pro-app/3.2/tool-reference/modelbuilder-toolbox/iterate-field-value.htm" target="_self"&gt;Iterate Field Value&lt;/A&gt;&amp;nbsp;&amp;nbsp;iterator which you could use to grab the value of the CSV REF field into a model variable.&amp;nbsp; You could then use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" target="_self"&gt;inline substitution&lt;/A&gt;&amp;nbsp;with this model variable to construct the pathname to the CSV file, then feed that pathname into the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-table.htm" target="_self"&gt;Table To Table&lt;/A&gt; tool to create a .gdb table.&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/examples-of-using-iterators-in-modelbuilder.htm" target="_self"&gt;This topic&lt;/A&gt; explains all the iterators available to you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 01:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411350#M82000</guid>
      <dc:creator>Dale_Honeycutt</dc:creator>
      <dc:date>2024-04-18T01:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV files based on Field Name in Feature Dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411416#M82012</link>
      <description>&lt;P&gt;Thanks Bob, thats' a good solution&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 07:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411416#M82012</guid>
      <dc:creator>Paul_Duffy_Waters_of_LIFE</dc:creator>
      <dc:date>2024-04-18T07:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV files based on Field Name in Feature Dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411417#M82013</link>
      <description>&lt;P&gt;Thanks Dale, that would work alright!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 07:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411417#M82013</guid>
      <dc:creator>Paul_Duffy_Waters_of_LIFE</dc:creator>
      <dc:date>2024-04-18T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV files based on Field Name in Feature Dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411422#M82014</link>
      <description>&lt;P&gt;I ended up doing this in a roundabout fashion as I hadn't received the above suggestions in time.&lt;/P&gt;&lt;P&gt;I used the selection from the Feature Class to create a text file containing a list of the files I wanted called "PullFiles.txt"&lt;/P&gt;&lt;P&gt;I created a new folder called "HSO_WB_Files" and used PowerShell to copy the relevant files to that folder using the below script found online:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paul_Duffy_Waters_of_LIFE_0-1713425071621.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101329i0486B9BCA1A8EF83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paul_Duffy_Waters_of_LIFE_0-1713425071621.png" alt="Paul_Duffy_Waters_of_LIFE_0-1713425071621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I batch imported all the CSV files into a GDB.&lt;/P&gt;&lt;P&gt;I then used a Model to Iterate through all the files and create XY point files from each&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paul_Duffy_Waters_of_LIFE_1-1713425401068.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101330iF0E3A2F55D0F1DCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paul_Duffy_Waters_of_LIFE_1-1713425401068.png" alt="Paul_Duffy_Waters_of_LIFE_1-1713425401068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The suggestions by Bob and Dale are more elegant, but this worked anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 07:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/import-csv-files-based-on-field-name-in-feature/m-p/1411422#M82014</guid>
      <dc:creator>Paul_Duffy_Waters_of_LIFE</dc:creator>
      <dc:date>2024-04-18T07:33:36Z</dc:date>
    </item>
  </channel>
</rss>

