<?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: ArcGIS 10.1 schema.ini file causes arcpy.CopyRows_management to fail in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60210#M4807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using a new engine for reading and writing to text files at 10.1, however we should still honor schema.ini files. It would be helpful to get a sample of your text file and the schema.ini to test the issue. In addition, i would recommend just running the GP tool from Desktop to take python out of the equation, the problem will likely still be reproducible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 20:14:34 GMT</pubDate>
    <dc:creator>ChrisFox3</dc:creator>
    <dc:date>2012-08-17T20:14:34Z</dc:date>
    <item>
      <title>ArcGIS 10.1 schema.ini file causes arcpy.CopyRows_management to fail</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60208#M4805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had this python program working for a while where it pulls in a tab delimited text file and creates a file geodatabase table, using arcpy.CopyRows_management tool. The schema.ini file was used to set up the fields. When we upgraded to 10.1 I now get the error that the text file is not available or not the right type. I renamed the schema.ini file to something else and ran it again and there were no errors, but the table created did not have the right schema. The Help files state that although the schema.ini file is not needed it will still honor them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug or do I need to do this another way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 17:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60208#M4805</guid>
      <dc:creator>DDArnett</dc:creator>
      <dc:date>2012-08-17T17:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 schema.ini file causes arcpy.CopyRows_management to fail</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60209#M4806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 10.1 help &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//005s00000010000000"&gt;&lt;BR /&gt;'&amp;gt;Adding an ASCII or text file table&lt;/A&gt;&lt;SPAN&gt; says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is one instance in which a schema.ini file will be created by ArcGIS when opening a delimited text file: when the format for a certain field cannot be reliably determined. In this case, a schema.ini file will be created containing the presumed format of the field.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Could you post the first few lines of your text file? It looks like your particular file may be hard to interpret. You may have to re-write your schema.ini code to make it ingest properly. (This doesn't explain why it worked okay in 10.0 though.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 19:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60209#M4806</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-08-17T19:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 schema.ini file causes arcpy.CopyRows_management to fail</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60210#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using a new engine for reading and writing to text files at 10.1, however we should still honor schema.ini files. It would be helpful to get a sample of your text file and the schema.ini to test the issue. In addition, i would recommend just running the GP tool from Desktop to take python out of the equation, the problem will likely still be reproducible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 20:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60210#M4807</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2012-08-17T20:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 schema.ini file causes arcpy.CopyRows_management to fail</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60211#M4808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is working now. I needed to remove spaces around the '=', and then make sure that all column headings matched both in name and type. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 14:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60211#M4808</guid>
      <dc:creator>DDArnett</dc:creator>
      <dc:date>2012-08-20T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS 10.1 schema.ini file causes arcpy.CopyRows_management to fail</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60212#M4809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3149"&gt;Chris Fox&lt;/A&gt; and &lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt;​ ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar issue, but when I use Table to Table (Conversion) my custom Schema.ini file is overwritten by the tool.&amp;nbsp; So if I try to force a field to be a specific type the tool deletes my changes and makes it's own file reverting back to the incorrect field types.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer to hard code each field in the Schema.ini file as long as ArcGIS doesn't overwrite it.&amp;nbsp; Is there a way to lock the file down?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;System:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Windows 7&lt;/P&gt;&lt;P&gt;ArcGIS 10.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Example Schema.ini:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[AOIs.csv]&lt;/P&gt;&lt;P&gt;Col1=Facility_Name Text Width 20&lt;/P&gt;&lt;P&gt;Col2=Date Date&lt;/P&gt;&lt;P&gt;Col3=Leader Text Width 50&lt;/P&gt;&lt;P&gt;Col4=Occurrence Text Width 35&lt;/P&gt;&lt;P&gt;Col5=Nature_of_AOI Text Width 35&lt;/P&gt;&lt;P&gt;Col6=Mapsite Text Width 150&lt;/P&gt;&lt;P&gt;Col7=Distance Text Width 25&lt;/P&gt;&lt;P&gt;Col8=Start_Point Text Width 20&lt;/P&gt;&lt;P&gt;Col9=End_Point Text Width 20&lt;/P&gt;&lt;P&gt;Col10=Total_Length Text Width 20&lt;/P&gt;&lt;P&gt;Col11=Starts_in Text Width 5&lt;/P&gt;&lt;P&gt;Col12=Comment Text Width 255&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Example input CSV/Text:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Facility_Name,Date,Leader,Occurrence,Nature_of_AOI,Mapsite,Distance,Start_Point,End_Point,Total_Length,Starts_in,Comment&lt;/P&gt;&lt;P&gt;Place #1,2/1/2015 00:00,"Appleseed, Johnny",Daily,AOI A,"Site-1",376 Upstream,"012345, 0123456",,,No,At the Termination Point.&lt;/P&gt;&lt;P&gt;Place #2,2/2/2015 00:00,"Wayne, Bruce",Daily,AOI B,"Site-2",376 Upstream,"012345, 0123456","012345, 0123456",,No,At the Termination Point.&lt;/P&gt;&lt;P&gt;Place #3,2/3/2015 00:00,"Kent, Clark",Daily,AOI C,"Site-3",376 Upstream,"012345, 0123456",,,No,At the Termination Point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 13:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-10-1-schema-ini-file-causes-arcpy-copyrows/m-p/60212#M4809</guid>
      <dc:creator>JohnSemanchik</dc:creator>
      <dc:date>2015-03-26T13:14:26Z</dc:date>
    </item>
  </channel>
</rss>

