<?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: Tab delimited import stripping leading zeros in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068643#M42071</link>
    <description>&lt;P&gt;The file is exported from my Clerk's software, there are no options for any formatting. After I do my edits it gets fed back into the same software so I'm trying to limit the number of times/software I use to tweak the format - errors always seem to creep in. I know a smattering of python, this'll give me a chance to learn more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 21:16:28 GMT</pubDate>
    <dc:creator>TychoGranville</dc:creator>
    <dc:date>2021-06-15T21:16:28Z</dc:date>
    <item>
      <title>Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068559#M42060</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a tab delimited file that I am the using table-to-table tool to bring into Pro. I change one of the fields&amp;nbsp; to type "text" (since all the records in that field are numbers) before running the tool. Opening the new table in Pro show the field as type text but all the leading zeros have been stripped. Just checked, and I get the same error with ArcMap. I can import the file into Excel and get the correct formatting, I'd like to skip the extra step. Am I doing it wrong, or is this a bug that didn't get fixed in Pro?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tycho&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 19:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068559#M42060</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2021-06-15T19:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068572#M42064</link>
      <description>&lt;P&gt;From my experience, importing text-based data is a gamble at best, and I rarely get it to go off without a hitch or requiring some post-processing. The tool tries to save you time and guess at the field types, but I wish it wouldn't.&lt;/P&gt;&lt;P&gt;If a bit of Python isn't out of the question, I'd suggest reading the file into a DataFrame using &lt;STRONG&gt;pandas&lt;/STRONG&gt;. It tends to do a &lt;EM&gt;much &lt;/EM&gt;better job with its inferences, and gives you more control over the fields and data types. Plus with the ArcGIS Python API's &lt;STRONG&gt;DataFrame.spatial &lt;/STRONG&gt;capabilities, you can write the results directly to a new or existing feature class.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 19:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068572#M42064</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-15T19:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068606#M42067</link>
      <description>&lt;P&gt;One can also use MS Excel?&lt;/P&gt;&lt;P&gt;1. Open a blank Excel Sheet. Go to &lt;EM&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/EM&gt; tab &amp;gt; &lt;EM&gt;&lt;STRONG&gt;From Text/ CSV&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1623788135794.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16039i2256FED0784811BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1623788135794.png" alt="JayantaPoddar_0-1623788135794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Select the CSV &amp;gt; Click &lt;EM&gt;&lt;STRONG&gt;Import&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;3. In the new dialog box, click &lt;EM&gt;&lt;STRONG&gt;Transform Data.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;You may choose "Tab" for Delimiter, if required.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_1-1623788358169.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16040iCE00FC68D469BCDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_1-1623788358169.png" alt="JayantaPoddar_1-1623788358169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. In "Transform Data" dialog box, right-click the field (you want the leading zeros), &amp;gt; Change Type &amp;gt; Text.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_2-1623788535701.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16041i90DBE9E1C75F1FDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_2-1623788535701.png" alt="JayantaPoddar_2-1623788535701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click "&lt;STRONG&gt;Replace Current&lt;/STRONG&gt;" for Change Column Type.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_3-1623788771170.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16045iA08E08105A6FB2E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_3-1623788771170.png" alt="JayantaPoddar_3-1623788771170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Click &lt;EM&gt;&lt;STRONG&gt;Close and Load&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_4-1623788872417.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16046iECB60BC9D44254C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_4-1623788872417.png" alt="JayantaPoddar_4-1623788872417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;6. Save the Excel file.&lt;/P&gt;&lt;P&gt;7. In ArcGIS Pro, execute &lt;STRONG&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/excel-to-table.htm" target="_self"&gt;Excel to Table&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Oops. I should have read your post completely.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 20:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068606#M42067</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-06-15T20:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068608#M42069</link>
      <description>&lt;P&gt;That's the step he's trying to eliminate from his process, though. Also, Excel doesn't really enforce data types, no matter what the column formatting is set to, and Pro is still just "guessing" on import.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10118"&gt;@TychoGranville&lt;/a&gt;where's the initial source of this data, by the way? Do you have any control over its format, or other means of accessing it?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 20:37:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068608#M42069</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-15T20:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068610#M42070</link>
      <description>&lt;P&gt;yes. I realized that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's really embarrassing&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_without_mouth:"&gt;😶&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 20:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068610#M42070</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-06-15T20:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068643#M42071</link>
      <description>&lt;P&gt;The file is exported from my Clerk's software, there are no options for any formatting. After I do my edits it gets fed back into the same software so I'm trying to limit the number of times/software I use to tweak the format - errors always seem to creep in. I know a smattering of python, this'll give me a chance to learn more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 21:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1068643#M42071</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2021-06-15T21:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1069172#M42126</link>
      <description>&lt;P&gt;I'm not sure how releevant this is for tab-delimited data, but I've noticed on occasion that a csv import (ArcMap 10.7) results in the SILENT creation of a &lt;STRONG&gt;schema.ini&lt;/STRONG&gt;, which affects how data is imported.&amp;nbsp; An example of what &lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/table-to-table.htm" target="_self"&gt;Table to Table&lt;/A&gt; created :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[BNE_GEOHUB_DATABASE_GIS.csv]&lt;BR /&gt;Col3=Project_No Double&lt;BR /&gt;Col10=DateDrilled Date&lt;BR /&gt;Col13=Bearing Double&lt;BR /&gt;Col14=Dip Double&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I'd check to see if one exists, as these things persist and do not update if you change the structure of your input data.&amp;nbsp; If you don't notice or edit &lt;STRONG&gt;schema.ini&lt;/STRONG&gt; it can screw up all future imports if your column order or data types are different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 23:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1069172#M42126</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2021-06-16T23:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1120127#M48281</link>
      <description>&lt;P&gt;Anything special one has to do to check if this schema.ini is getting created? Will this file be visible to Windows File Explorer in the same location as my CSV?&lt;/P&gt;&lt;P&gt;I'm having the same problem using Table to Table in Pro 2.7. I have already transformed the data in Excel, as described above, so that my ID field is text with leading zeros saved as a .CSV. I've even opened the CSV in Notepad to verify that the values are being stored with the leading zeros. When I use the Table to Table tool in ArcGIS Pro, I use Field Map-&amp;gt;Properties to force this field to come in as type text. Even after all these steps, my leading zeros get truncated in the resultant table!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 21:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1120127#M48281</guid>
      <dc:creator>JoeBryant1</dc:creator>
      <dc:date>2021-11-24T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1120359#M48310</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;schema.ini&lt;/STRONG&gt; is visible in the file system &lt;U&gt;if&lt;/U&gt; it is created.&amp;nbsp; It's not always created though, but you can create it manually.&lt;BR /&gt;&lt;BR /&gt;For example, consider two test files, one comma and one tab delimited, each with with one attribute with leading zeros:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_0-1637871687037.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28292iB4725552FEEE11BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_0-1637871687037.png" alt="MicZatorsky_AEC_0-1637871687037.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_1-1637871697858.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28293i963FB5F69B4BD469/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_1-1637871697858.png" alt="MicZatorsky_AEC_1-1637871697858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Without a &lt;STRONG&gt;schema.ini&lt;/STRONG&gt;, in Pro 2.8.3, you get this - no leading zeros for either:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_2-1637871768209.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28294iA429EFCCA752435D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_2-1637871768209.png" alt="MicZatorsky_AEC_2-1637871768209.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Create a &lt;STRONG&gt;schema.ini&lt;/STRONG&gt; file in the same folder as the data, and explicitly define the data type for the attribute with leading zeros as &lt;EM&gt;Text&lt;/EM&gt;.&amp;nbsp; You do not need to define the data type for all columns, just the columns you wish to change the type of:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_3-1637871833566.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28295iE97B72B4C96B1971/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_3-1637871833566.png" alt="MicZatorsky_AEC_3-1637871833566.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_5-1637872452814.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28297i3BDE6952540EDC5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_5-1637872452814.png" alt="MicZatorsky_AEC_5-1637872452814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then reopen the data in Pro, you'll see the data typing is honored:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_4-1637871868473.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28296iEF88B74F844070EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_4-1637871868473.png" alt="MicZatorsky_AEC_4-1637871868473.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 20:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1120359#M48310</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2021-11-25T20:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1120820#M48395</link>
      <description>&lt;P&gt;Very helpful - I'll have to give it a try. Thanks!&lt;/P&gt;&lt;P&gt;Edit: This worked perfectly. I'll be using and recommending this method going forward.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1120820#M48395</guid>
      <dc:creator>JoeBryant1</dc:creator>
      <dc:date>2021-11-30T18:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1241478#M63454</link>
      <description>&lt;P&gt;Works perfect, good solution&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1241478#M63454</guid>
      <dc:creator>NancyB</dc:creator>
      <dc:date>2022-12-15T09:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tab delimited import stripping leading zeros</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1623414#M96618</link>
      <description>&lt;P&gt;Thank you for providing this. Exactly what I needed when using Python.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 13:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tab-delimited-import-stripping-leading-zeros/m-p/1623414#M96618</guid>
      <dc:creator>Samuel_Firmenich</dc:creator>
      <dc:date>2025-06-13T13:40:46Z</dc:date>
    </item>
  </channel>
</rss>

