<?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: A column was specified that does not exist in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/a-column-was-specified-that-does-not-exist/m-p/390446#M1305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: nheick&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After looking at your script, here are my comments.&amp;nbsp; I am still learning myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Since you are not referencing any of the built-in modules, I would probably remove the first import statement for performance reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Looking at the function definition for SearchCursor and your error, it looks like you have the sort_fields argument where the fields argument should be.&amp;nbsp; Thus, it is looking for the field "Test A" and can't find it.&amp;nbsp; You probably just need another "" argument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; I believe you will need an update cursor with a where clause that will select the record you want to update.&amp;nbsp; I believe SearchCursors are only for reading records.&amp;nbsp; You will probably want to use the OBJECTID for your where clause, or else the update cursor would probably keep updating the first record it finds in the table.&amp;nbsp; You might have 5 records with duplicate values in the field Test, where the first record gets updated up to value testvalue_5 and the other ones are still left as testvalue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nathan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 02:07:02 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-10-11T02:07:02Z</dc:date>
    <item>
      <title>A column was specified that does not exist</title>
      <link>https://community.esri.com/t5/transportation-questions/a-column-was-specified-that-does-not-exist/m-p/390445#M1304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgraves73&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a python script that keeps returning the attached error. I've researched the error and some of the threads have &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;suggested simple fixes such as spaces in the field heading or long file paths to the data but this is not case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically the script is identifying duplicate records and placing a 1,2,3 to make these duplicate records unique (see attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any assistance would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 01:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/a-column-was-specified-that-does-not-exist/m-p/390445#M1304</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-11T01:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: A column was specified that does not exist</title>
      <link>https://community.esri.com/t5/transportation-questions/a-column-was-specified-that-does-not-exist/m-p/390446#M1305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: nheick&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After looking at your script, here are my comments.&amp;nbsp; I am still learning myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Since you are not referencing any of the built-in modules, I would probably remove the first import statement for performance reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Looking at the function definition for SearchCursor and your error, it looks like you have the sort_fields argument where the fields argument should be.&amp;nbsp; Thus, it is looking for the field "Test A" and can't find it.&amp;nbsp; You probably just need another "" argument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; I believe you will need an update cursor with a where clause that will select the record you want to update.&amp;nbsp; I believe SearchCursors are only for reading records.&amp;nbsp; You will probably want to use the OBJECTID for your where clause, or else the update cursor would probably keep updating the first record it finds in the table.&amp;nbsp; You might have 5 records with duplicate values in the field Test, where the first record gets updated up to value testvalue_5 and the other ones are still left as testvalue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nathan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 02:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/a-column-was-specified-that-does-not-exist/m-p/390446#M1305</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-11T02:07:02Z</dc:date>
    </item>
  </channel>
</rss>

