<?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: MakeTableView_management causes an exception when outside of ArcMap in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636205#M49512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I execute that line of code in ArcMap, in the python window, it creates a tableView "Actions". The source table is VegetationMgmt.owner.Actions and it doesn't overwrite that source table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forgive my ignorance but I'm really new to this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2012 17:15:16 GMT</pubDate>
    <dc:creator>SteveLong</dc:creator>
    <dc:date>2012-06-04T17:15:16Z</dc:date>
    <item>
      <title>MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636201#M49508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to script the process of creating a replica in a stand alone python script. The geodatabase I'm creating the replica for, (CHECK_OUT type), includes business table I that want in the file geodatabase. If I execute the following line of code in ArcMap in the python window it works well and ArcMap adds the view to the current map. And, it persists from session to session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeTableView_management("VegetationMgmt.owner.Actions", "Actions", "AID &amp;gt; 0")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I execute it in a stand alone script after setting up the workspace:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "...\SpatialVegMgmt_NT38.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it produces an error of VegetationMgmt.owner.Actions already exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help on why it works inside ArcMap but not outside?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 16:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636201#M49508</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2012-06-04T16:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636202#M49509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you set your overwriteoutput in your code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
env.overwriteOutput = True&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636202#M49509</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T03:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636203#M49510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm, no I have not. That would not overwrite the original table would it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 17:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636203#M49510</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2012-06-04T17:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636204#M49511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that is what you are doing in your code by setting your workspace to SDE and creating the tableview with the same name as the source.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 17:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636204#M49511</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-06-04T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636205#M49512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I execute that line of code in ArcMap, in the python window, it creates a tableView "Actions". The source table is VegetationMgmt.owner.Actions and it doesn't overwrite that source table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forgive my ignorance but I'm really new to this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 17:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636205#M49512</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2012-06-04T17:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636206#M49513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would suspect it is because you are using the default workspace in ArcMap and setting SDE as your workspace in your stand-alone script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 12:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636206#M49513</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-06-05T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView_management causes an exception when outside of ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636207#M49514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your replies Mathew. That did the trick. I changed the workspace to sde.DEFAULT and the maketableview executed without a hitch. Now I'm getting another error when I try to create the replica but I'll re-post as it's a different topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-management-causes-an-exception-when/m-p/636207#M49514</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2012-06-05T16:25:33Z</dc:date>
    </item>
  </channel>
</rss>

