<?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 arcpy.Sort_management gets Error 00210 Cannot create output... in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-sort-management-gets-error-00210-cannot/m-p/535226#M41925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hope someone out there scan help me. I have a dbf file which I created using InsertCursor commands. From all that I can see the file is just fine. It is an address file of property owners within a certain buffer. I want to sort the records (usually not bigger than 200 records) by property owners so dulplicate owner records can be reduced. I have not been able to see another way of doing this besides using the Sort_management command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Sort_management(NotifPath+"11-TEST10-XX.dbf",NotifPath+"11-Sort10-XX.dbf",[["OWNERNAME","ASCENDING"]])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the command in ArcMap 10.0 it seems to sorting, but then ends with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000210: Cannot create output N:\IT\Products\Notifications\11-TEST08-XY.dbf Failed to execute (Sort).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried many things to get it too work. arcpy.overwriteOutput is True. Sometimes I hve tried an output file named only "11-sort" and it still fails. I noticed an oddity as well. If "11-sort" exits before I run the command, the command fails again and the preexisting "11-sort" file have been deleted from my Windows NotifPath folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have arcpy.env.workspace = NotifPath which is defined correctly as "N:\IT\Products\Notifications\" and use it regularly earlier inn the program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm at a loss to knnow what to do next. Can anybody help with this command or is there some otherway to sort a specific field in&amp;nbsp; dbf table? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jim Moore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Feb 2011 17:43:44 GMT</pubDate>
    <dc:creator>JimMoore</dc:creator>
    <dc:date>2011-02-18T17:43:44Z</dc:date>
    <item>
      <title>arcpy.Sort_management gets Error 00210 Cannot create output...</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sort-management-gets-error-00210-cannot/m-p/535226#M41925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hope someone out there scan help me. I have a dbf file which I created using InsertCursor commands. From all that I can see the file is just fine. It is an address file of property owners within a certain buffer. I want to sort the records (usually not bigger than 200 records) by property owners so dulplicate owner records can be reduced. I have not been able to see another way of doing this besides using the Sort_management command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Sort_management(NotifPath+"11-TEST10-XX.dbf",NotifPath+"11-Sort10-XX.dbf",[["OWNERNAME","ASCENDING"]])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the command in ArcMap 10.0 it seems to sorting, but then ends with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000210: Cannot create output N:\IT\Products\Notifications\11-TEST08-XY.dbf Failed to execute (Sort).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried many things to get it too work. arcpy.overwriteOutput is True. Sometimes I hve tried an output file named only "11-sort" and it still fails. I noticed an oddity as well. If "11-sort" exits before I run the command, the command fails again and the preexisting "11-sort" file have been deleted from my Windows NotifPath folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have arcpy.env.workspace = NotifPath which is defined correctly as "N:\IT\Products\Notifications\" and use it regularly earlier inn the program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm at a loss to knnow what to do next. Can anybody help with this command or is there some otherway to sort a specific field in&amp;nbsp; dbf table? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jim Moore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 17:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sort-management-gets-error-00210-cannot/m-p/535226#M41925</guid>
      <dc:creator>JimMoore</dc:creator>
      <dc:date>2011-02-18T17:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Sort_management gets Error 00210 Cannot create output...</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sort-management-gets-error-00210-cannot/m-p/535227#M41926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lookup SearchCursor, and the fifth argument.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 18:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sort-management-gets-error-00210-cannot/m-p/535227#M41926</guid>
      <dc:creator>NiklasNorrthon</dc:creator>
      <dc:date>2011-02-18T18:01:05Z</dc:date>
    </item>
  </channel>
</rss>

