<?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: CSV import Zip Code field problem in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566843#M91088</link>
    <description>&lt;P&gt;are you using&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-geodatabase.htm" target="_blank"&gt;Table To Geodatabase (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if not give it a try&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2024 17:08:50 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-12-10T17:08:50Z</dc:date>
    <item>
      <title>CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566837#M91087</link>
      <description>&lt;P&gt;ArcGIS Pro 3.2.2&lt;/P&gt;&lt;P&gt;I am importing about 72,000 rows of data that include addresses.&amp;nbsp; This is from a CSV file that is created from a database and is in plain text with no data type associated.&amp;nbsp; When we import the file to ArcGIS Pro, a large amount of zip codes show as NULL, when they are actually something like 12345-6789.&amp;nbsp; Pro is setting the data type to a long integer and then dropping any values with a dash in it.&amp;nbsp; We cannot figure out how to get Pro to import them as a 10 digit text type.&amp;nbsp; When we try exporting it and changing the data type to text, it does not affect the missing values - so this seems to be happening upon import.&amp;nbsp; We can manually change it in Excel before import and that fixes it; however, we are trying to automate this procedure in the model builder and need a better way.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 16:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566837#M91087</guid>
      <dc:creator>DamienMscisz</dc:creator>
      <dc:date>2024-12-10T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566843#M91088</link>
      <description>&lt;P&gt;are you using&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-geodatabase.htm" target="_blank"&gt;Table To Geodatabase (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if not give it a try&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 17:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566843#M91088</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-12-10T17:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566860#M91090</link>
      <description>&lt;P&gt;Excel's "field" settings don't carry over. What you should do is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create the database table and define its fields how you need&lt;/LI&gt;&lt;LI&gt;Use the "Append" tool to load data from your source into the table&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By setting the schema first, you won't get any mistaken assumptions on the program side.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 17:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566860#M91090</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-12-10T17:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566873#M91098</link>
      <description>&lt;P data-unlink="true"&gt;Similar to Dan and Josh,&lt;BR /&gt;&lt;BR /&gt;You may already be using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-table.htm" target="_self"&gt;Export Table (conversion)&lt;/A&gt;&amp;nbsp; and use the field mapping available.&lt;BR /&gt;&lt;BR /&gt;I am including some documentations link for you to have a look on how ArcGIS Pro imports.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/excel/work-with-excel-in-arcgis-pro.htm" target="_self"&gt;Work with Microsoft Excel files in ArcGIS Pro&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;A few considerations in the following section&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/excel/work-with-excel-in-arcgis-pro.htm#:~:text=Format%20a%20table,ArcGIS%20Pro." target="_self"&gt;Format a table in Microsoft Excel for use in ArcGIS Pro.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/excel/work-with-excel-in-arcgis-pro.htm#:~:text=Excel%20does%20not%20enforce%20field%20types%20for%20values%20during%20data%20entry%20the%20way%20standard%20databases%20do%2C%20so%20the%20field%20type%20specified%20in%20Excel%20is%20not%20used%20in%20determining%20the%20field%20type%20exposed%20in%20ArcGIS.%20Instead%2C%20the%20field%20type%20in%20ArcGIS%20is%20determined%20by%20the%20Microsoft%20driver." target="_self"&gt;Note&lt;/A&gt;: "&lt;/EM&gt;&lt;SPAN class="ph"&gt;Excel&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;does not enforce field types for values during data entry the way standard databases do, so the field type specified in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Excel&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is not used in determining the field type exposed in ArcGIS. Instead, the field type in ArcGIS is determined by the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Microsoft&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;driver."&lt;BR /&gt;&lt;BR /&gt;I would second the two suggestions mentioned above.&lt;BR /&gt;&lt;BR /&gt;Hope that help shed some light.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 17:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566873#M91098</guid>
      <dc:creator>JessicaMcCann</dc:creator>
      <dc:date>2024-12-10T17:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566952#M91106</link>
      <description>&lt;P&gt;I had this problem last week as well.&amp;nbsp; One fix was to append the tables.&lt;/P&gt;&lt;P&gt;However, my work around was doing the Table to GDB conversion.&amp;nbsp; Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 19:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566952#M91106</guid>
      <dc:creator>LauraGosnold</dc:creator>
      <dc:date>2024-12-10T19:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566965#M91111</link>
      <description>&lt;P&gt;Another option is to copy a row in the csv that contains the hyphenated zip to the 2nd row right under the headers. If you just try and import the data, Pro only looks at the first row of data to make it's field type decisions.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 20:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1566965#M91111</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2024-12-10T20:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1567047#M91125</link>
      <description>&lt;P&gt;I have csv files dumped from my GPS and Pro sets all text fields to 8000 characters in width. This is a known non lethal bug. I am old school and use a schema.ini file to override this. When you open a csv file, Pro scans the field values in the first line of the csv file (below the column name header if it has one) to set the field type based on the value encountered. If the first value in the zipcode field is 123456789 then it would interpret the field type as Long (integer) whereas if the first value is 12345-6789 it would set the field type to Text as mentioned elsewhere. A schema.ini file can be used to override these setting.&lt;/P&gt;&lt;P&gt;An empty schema.ini file can be manually created and then edited in Notepad but can also be created *automatically and populated if one doesn’t exist. In any case the schema.ini and csv file(s) must reside in the same folder for this to work. &amp;nbsp;You can have many csv files in the folder but only one schema.ini file. The content of the schema.ini file is structured such that each csv file has its own section or none at all. In your case it might look like this wherein the first line is the csv filename in [brackets], Col2 is named &lt;STRONG&gt;zipcodes&lt;/STRONG&gt; (the problematic field) and you are setting it to a &lt;STRONG&gt;Text&lt;/STRONG&gt; field type of &lt;STRONG&gt;Width&lt;/STRONG&gt; 20 characters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryNorthey_2-1733868523977.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121367iD224B2B2091690AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryNorthey_2-1733868523977.png" alt="BarryNorthey_2-1733868523977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;*You can use the &lt;STRONG&gt;Export Table&lt;/STRONG&gt; GP tool to export the Input csv to a new Output csv Table and its section will populate automatically in the existing schema.ini file in the target folder or a new schema.ini file will be created and populated. &amp;nbsp;This simplifies typing and editing. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryNorthey_1-1733868305326.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121366iD73891A90BEC23D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryNorthey_1-1733868305326.png" alt="BarryNorthey_1-1733868305326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The use of a schema.ini file might be useful when trying to automate a workflow.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 22:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1567047#M91125</guid>
      <dc:creator>BarryNorthey</dc:creator>
      <dc:date>2024-12-10T22:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: CSV import Zip Code field problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1568140#M91236</link>
      <description>&lt;P&gt;To add to the previous responses, Zip+4 should be stored in a text field rather than a long integer.&amp;nbsp; This ArcMap document talks about it but ArcGIS Pro is similar in the workflow.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/faq-is-it-possible-to-generate-zip-4-data-using-busines-000014901" target="_blank"&gt;FAQ: Is It Possible to Generate ZIP+4 Data Using ArcGIS Business Analyst?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 21:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-import-zip-code-field-problem/m-p/1568140#M91236</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2024-12-12T21:31:05Z</dc:date>
    </item>
  </channel>
</rss>

