<?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 problem creating an UpdateCursor for an OLE DB in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-creating-an-updatecursor-for-an-ole-db/m-p/249335#M19254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to simply do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;updateRows = arcpy.UpdateCursor("Database Connections/Marshall_East.odc/LeaseSchedule")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is failing with the following RuntimeError:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Handling run-time error: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An underlying database error occurred. [LeaseSchedule]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to "Check each OLE DB status value" from within the arcpy environment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a SearchCursor on the same DB, and iterating over the rows works fine.&amp;nbsp; Any clues would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dustin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2011 18:10:59 GMT</pubDate>
    <dc:creator>DustinReagan</dc:creator>
    <dc:date>2011-08-30T18:10:59Z</dc:date>
    <item>
      <title>problem creating an UpdateCursor for an OLE DB</title>
      <link>https://community.esri.com/t5/python-questions/problem-creating-an-updatecursor-for-an-ole-db/m-p/249335#M19254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to simply do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;updateRows = arcpy.UpdateCursor("Database Connections/Marshall_East.odc/LeaseSchedule")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which is failing with the following RuntimeError:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Handling run-time error: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An underlying database error occurred. [LeaseSchedule]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to "Check each OLE DB status value" from within the arcpy environment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a SearchCursor on the same DB, and iterating over the rows works fine.&amp;nbsp; Any clues would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dustin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 18:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-creating-an-updatecursor-for-an-ole-db/m-p/249335#M19254</guid>
      <dc:creator>DustinReagan</dc:creator>
      <dc:date>2011-08-30T18:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating an UpdateCursor for an OLE DB</title>
      <link>https://community.esri.com/t5/python-questions/problem-creating-an-updatecursor-for-an-ole-db/m-p/249336#M19255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't know about how to "check each OLE DB status value", but some probable issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. You forgot to delete the searchcursor object, and locks persit on the table (that's why you can't update it).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Since your ODBC table (probably) doesn't have an OBJECTID field, the ESRI updatecursor method might not work. I know it used to be in v9.3 that your couldn't use the cursor sort parameter (in a search or update cursor) unless there was an OBJECTID field. You could always make your table drink the ESRI-brand coolaid and import it using CopyRows or TableToTable or some other tool - thus auto creating an OBJECTID field...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 22:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-creating-an-updatecursor-for-an-ole-db/m-p/249336#M19255</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-08-30T22:35:22Z</dc:date>
    </item>
  </channel>
</rss>

