<?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 Table to table - field cache? in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588922#M1210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used ArcPy to import a csv file as a table into a GDB. Fine, it worked as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I figured I had to add some columns, so I changed the csv file and tun the python again. In the result, some columns were imported incorrectly. So I retried from within ArcDesktop, but got the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I right clicked on the CSV in the Catalog and saw a messed up field list that didn't correspond to the actual fields in the CSV. Two fields were even doubled because when running the tool the second time, I had changed the Data type of 2 fields manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498852_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;When I rename the CSV, the fields just show up as they should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/498853_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;I figure there has to be a cache for those properties, but I don't know how to reset that cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking because just renaming won't help. My tables have specific naming conventions for iterations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jul 2020 11:15:39 GMT</pubDate>
    <dc:creator>WernerStangl</dc:creator>
    <dc:date>2020-07-04T11:15:39Z</dc:date>
    <item>
      <title>Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588922#M1210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used ArcPy to import a csv file as a table into a GDB. Fine, it worked as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I figured I had to add some columns, so I changed the csv file and tun the python again. In the result, some columns were imported incorrectly. So I retried from within ArcDesktop, but got the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I right clicked on the CSV in the Catalog and saw a messed up field list that didn't correspond to the actual fields in the CSV. Two fields were even doubled because when running the tool the second time, I had changed the Data type of 2 fields manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/498852_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;When I rename the CSV, the fields just show up as they should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/498853_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;I figure there has to be a cache for those properties, but I don't know how to reset that cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking because just renaming won't help. My tables have specific naming conventions for iterations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2020 11:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588922#M1210</guid>
      <dc:creator>WernerStangl</dc:creator>
      <dc:date>2020-07-04T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588923#M1211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you say you changed the data types of the fields manually, you have to ensure that the whole column contains data of that type.&amp;nbsp; Any value which differs from the data type will change the whole field.&lt;/P&gt;&lt;P&gt;Also, can you identify what was different in the two tables so people don't have to scroll up and down looking for differences &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2020 13:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588923#M1211</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-04T13:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588924#M1212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but that doesn't touch the issue. I mentioned that just to explain why according to the first field table, there were two "START" and "END_" fields. The main point is: The fields in the field table of ArcCatalog do not match the fields the csv actually has - unless I rename the .csv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2020 19:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588924#M1212</guid>
      <dc:creator>WernerStangl</dc:creator>
      <dc:date>2020-07-05T19:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588925#M1213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field names contained spaces they would be replaced by underscores&lt;/P&gt;&lt;P&gt;if the csv field name was a reserved word, it would also be changed and&lt;/P&gt;&lt;P&gt;duplicate field names are not allowed&lt;/P&gt;&lt;P&gt;two tables of the same name wouldn't be permitted in a gdb&lt;/P&gt;&lt;P&gt;those are the only basic rules I can remember offhand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2020 20:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588925#M1213</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-05T20:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588926#M1214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I used ArcPy to import a csv file as a table into a GDB.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is your workflow and which tools, specifically, are you using to import the CSV into the GDB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jul 2020 20:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588926#M1214</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-07-05T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588927#M1215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really simple: I used this code to import the CSV into my gdb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Table to Table&lt;BR /&gt;print ("1/3: Import table")&lt;BR /&gt;arcpy.TableToTable_conversion(Dump_Domain_csv, the_geom_gdb, "Dump_Domain", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I ran this script for the first time, Dump_Domain_csv had the structure/fields as in the first screenshot. It worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I changed my Dump_Domain_csv outside of ArcGIS (Excel). Now it has the fields of the second screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER, when rerunning the same python code as above, it still applies the old fields.&lt;/P&gt;&lt;P&gt;Then I opened ArcCatalog to check the properties and it said it still had the original structure (screenshot1).&lt;/P&gt;&lt;P&gt;Then I checked my CSV if it was somehow weird or messed up, but it was fine.&lt;/P&gt;&lt;P&gt;Then I simply renamed the csv file from Dump_Domain_csv to DumpDomain_csv and ... tada, it works and the fields show up as they should (screenshot2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I have said, my solution can't be just not to use the original file name...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 15:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588927#M1215</guid>
      <dc:creator>WernerStangl</dc:creator>
      <dc:date>2020-07-06T15:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588928#M1216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have added this to your workflow if you are having naming of table and field issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the table from the table of contents, if it was added.&lt;/P&gt;&lt;P&gt;Delete the table from the gdb in catalog.&lt;/P&gt;&lt;P&gt;Refresh the gdb in catalog.&lt;/P&gt;&lt;P&gt;Save project&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588928#M1216</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-06T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588929#M1217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same issue as Werner Stangl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my csv file structures of original (left) and renewed (right) ones. There are no spaces or special characters in the field names.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="509192" class="jive-image image-4" src="https://community.esri.com/legacyfs/online/509192_pastedImage_11.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I originally had strx and stry in my csv file.&amp;nbsp;I deleted strx and stry since I do not use them and reimported the same csv in ArcGIS. For some reason, ArcGIS overwrites the variable names, strlon and strlat, with strx and stry (left one in the&amp;nbsp;image&amp;nbsp;below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="509191" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/509191_pastedImage_3.jpg" /&gt;&lt;/P&gt;&lt;P&gt;The correct names are imported only when I&amp;nbsp;saved the csv file with a different name (right one in the image).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could renew the name this time, but I do not want to do it every time I update&amp;nbsp;my data in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried what is written in this thread such as:&lt;/P&gt;&lt;P&gt;1) Use &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;TableToTable_conversion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) Delete all the csv files from ArcGIS, save the project, create the csv file again, refresh the gdb, and import the csv again.&lt;/P&gt;&lt;P&gt;3) (I also tried) Reboot my computer to refresh everything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, none of them worked out since ArcGIS imports csv with a wrong field name in the first place. I suspect the same thing as Werner&amp;nbsp;that this issue has to do with&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;a cache for field names, but not sure.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2020 21:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/588929#M1217</guid>
      <dc:creator>HeejinKim</dc:creator>
      <dc:date>2020-10-04T21:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table to table - field cache?</title>
      <link>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/1090245#M2884</link>
      <description>&lt;P&gt;Exactly same issue here. ArcGis remembers fields in csv created months ago, so I gave up using single name and create very long random name during every run. B-i-i-g pain. Every script that using csv is much longer now.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 04:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/table-to-table-field-cache/m-p/1090245#M2884</guid>
      <dc:creator>FelixPertziger</dc:creator>
      <dc:date>2021-08-19T04:02:34Z</dc:date>
    </item>
  </channel>
</rss>

