<?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: another question - same script - previous post &amp;quot;new to python - trouble with ...&amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138780#M10852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that is what I am doing in 2 and 3 of my post.&amp;nbsp; I have my script in a toolbox and am running it from that tool box.&amp;nbsp; But the only way it completely works is if the attribute table is not open. It can be a layer in the TOC and turned on, but it cannot be open for viewing the attribute table.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 21:11:07 GMT</pubDate>
    <dc:creator>TerrySilveus</dc:creator>
    <dc:date>2011-04-19T21:11:07Z</dc:date>
    <item>
      <title>another question - same script - previous post &amp;amp;quot;new to python - trouble with ...&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138778#M10850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my script (you can see it here &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/28628-new-to-python-trouble-with-error-trapping"&gt;http://forums.arcgis.com/threads/28628-new-to-python-trouble-with-error-trapping&lt;/A&gt;&lt;SPAN&gt;) I am opening a search cursor with a where clause and modifying an update cursor based on some content found in the search cursor.&amp;nbsp; Before that, I check to see if the field to modify is present, and if not I add it.&amp;nbsp; I'm seeing certain behavior and I need to understand if this is what is expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Running from WinPy, if I have the map document open with these datasets, then nothing happens.&amp;nbsp; No field addition, no update. (Understandable because the table is open)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Running as a script tool from within arcGIS, if I have the attribute table open, the field gets added, but not update of contents occur.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Running as script tool from within arcGIS, if I do not have the attribute table open, the field gets added and the contents of the field are updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is with what happens in 2 above.&amp;nbsp; I would think that it would have more of a problem adding the field than it would have updating a field if it exists.&amp;nbsp; And in 1 above, why would it behave any different with a table open and locked than the behavior seen in step 2.&amp;nbsp; I would think if a write were going to be denied because of locking issues, it would be denied in the same way for both scenarios.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the behavior I've observed typical locking behavior between python and arcGIS?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 20:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138778#M10850</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-19T20:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: another question - same script - previous post "new to python - trouble with ..."</title>
      <link>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138779#M10851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From experience, either run the tool from Arctoolbox within an ArcMap (not a script outside of ArcToolbox while arcmap is running) or don't crank up Arcmap at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138779#M10851</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-04-19T21:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: another question - same script - previous post "new to python - trouble with ..."</title>
      <link>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138780#M10852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that is what I am doing in 2 and 3 of my post.&amp;nbsp; I have my script in a toolbox and am running it from that tool box.&amp;nbsp; But the only way it completely works is if the attribute table is not open. It can be a layer in the TOC and turned on, but it cannot be open for viewing the attribute table.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/another-question-same-script-previous-post-amp-amp/m-p/138780#M10852</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-19T21:11:07Z</dc:date>
    </item>
  </channel>
</rss>

