<?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 in python script fails after Update to 10.3.1 on 64 bit OS in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68522#M5595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is strange, because I have other MakeTableView statements with a where clause that run before this one and they all run fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the line that throws the error in 10.3&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/181046_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/180898_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the field properties of the Summary_CondoPin table&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/181047_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I did notice about the Summary_CondoPin table is the where clause returns zero records. So maybe that has something to do with the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I mentioned before, this line runs fine without error in 10.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2016 22:48:01 GMT</pubDate>
    <dc:creator>Kathleen_Crombez</dc:creator>
    <dc:date>2016-02-11T22:48:01Z</dc:date>
    <item>
      <title>MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68516#M5589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since upgrading ArcGIS Desktop from 10.2.2 to 10.3.1, we receive a new error in our python scripts that use MakeTableView -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeTableView_management(sourcewrkspc + sourcedata, "in_memory\\" + layer, whereclause).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script error is as follows:&lt;/P&gt;&lt;P&gt;ERROR 000358: Invalid expression&lt;/P&gt;&lt;P&gt;Failed to execute (MakeTableView).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further tests revealed that the arcpy.MakeTableView does not work on tables with no OBJECTID. Registering the table with the database generates an OBJECTID and gets rid of the error, but this is not an option for some of our tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this problem with 10.3.1 and know why this error happens? Is there a fix besides creating a workaround to add an OBJECTID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 00:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68516#M5589</guid>
      <dc:creator>JessicaFraver1</dc:creator>
      <dc:date>2015-12-24T00:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68517#M5590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing indicated here &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/make-table-view.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/make-table-view.htm"&gt;Make Table View—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;But the procedure is described here and MakeTableView is the route to do so... &lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/tables/fundamentals-of-objectid-fields.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/tables/fundamentals-of-objectid-fields.htm"&gt;Fundamentals of ObjectID fields—Help | ArcGIS for Desktop&lt;/A&gt; and be sure to check the sublinks.&lt;/P&gt;&lt;P&gt;Did you try it somewhere else than in-memory? or perhaps without a whereclause to narrow down whether it is for some inputs, all, or a combination?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 01:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68517#M5590</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-24T01:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68518#M5591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are experiencing the same issue here. We also cannot add an OBJECTID to the table we are accessing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find any other fixes or workarounds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68518#M5591</guid>
      <dc:creator>AlisonGaiser1</dc:creator>
      <dc:date>2016-01-19T19:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68519#M5592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, we still don't understand what happened to make either the tables/views without an object ID, or the MakeTableVIew tool, behave differently with 10.3.1. We ended up adding a step in the script to search for the ObjectID field. If there is an ObjectID proceed with MakeTableView, if no ObjectID, CopyRows to in-memory. The remainder of the script is the same. This in not ideal for several reasons, but it works for us for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In response to Dan's reply:&lt;/P&gt;&lt;P&gt;"Did you try it somewhere else than in-memory? or perhaps without a whereclause to narrow down whether it is for some inputs, all, or a combination?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried modifying output location and whereclause in different combinations, but nothing worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find another workaround, or potential cause of this error, can you please post it? I will do the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 21:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68519#M5592</guid>
      <dc:creator>JessicaFraver1</dc:creator>
      <dc:date>2016-01-19T21:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68520#M5593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have run into the same error using the arcpy.MakeTableView_management function on a feature class that HAS and OBJECTID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also using a where clause in the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script runs perfectly in 10.2 but fails on this function in 10.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 21:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68520#M5593</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-01-29T21:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68521#M5594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide an example of a where clause that fails?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 02:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68521#M5594</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-01-30T02:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68522#M5595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is strange, because I have other MakeTableView statements with a where clause that run before this one and they all run fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the line that throws the error in 10.3&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/181046_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/180898_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the field properties of the Summary_CondoPin table&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/181047_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I did notice about the Summary_CondoPin table is the where clause returns zero records. So maybe that has something to do with the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I mentioned before, this line runs fine without error in 10.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68522#M5595</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-02-11T22:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68523#M5596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Everything between 10.2.x and 10.3.x is the same?&lt;UL&gt;&lt;LI&gt;Background processing enabled/disabled for both?&lt;/LI&gt;&lt;LI&gt;64-bit Geoprocessing installed/not for both?&lt;/LI&gt;&lt;LI&gt;If connecting to SDE, same DMBS drivers installed for both?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;What is the backend storage for the Summary_CondoPin table?&lt;/LI&gt;&lt;LI&gt;What does ArcPy.AddFieldDelimiter return for field delimiters?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although using AddFieldDelimiter feels anal retentive at times, it is the most robust way of building expressions so they are transferrable across multiple data stores.&amp;nbsp; Does using the following work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.MakeTableView_management(
&amp;nbsp;&amp;nbsp;&amp;nbsp; Summary_CondoPin,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Frequency_CondoPin',
&amp;nbsp;&amp;nbsp;&amp;nbsp; """{} &amp;gt; 1 AND {} IS NULL""".format(arcpy.AddFieldDelimiters(Summary_CondoPin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'FREQUENCY'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(Summary_CondoPin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Comment')))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68523#M5596</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T22:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68524#M5597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The machine running 10.2.2 has Windows Server 2008 R2 Enterprise 64-bit OS. (Virtual)&lt;/P&gt;&lt;P&gt;The python shell launches as Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The machine running 10.3.1 has Windows 7 Professional 64-bit OS.&lt;/P&gt;&lt;P&gt;The python shell launches as Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not certain how to test for background processing. Both machine were set up with the standard install.&lt;/P&gt;&lt;P&gt;The script was written on the Windows 7 machine before upgrading from 10.2.2 to 10.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Summary_CondoPin table is in a file geodatabase located on a Windows Server 2012 R2 Standard 64-bit OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14552947329164415" data-renderedposition="226_8_895_16" jivemacro_uid="_14552947329164415" modifiedtitle="true"&gt;&lt;P&gt;print """{} &amp;gt; 1 AND {} IS NULL""".format(arcpy.AddFieldDelimiters(Summary_CondoPin, 'FREQUENCY'), arcpy.AddFieldDelimiters(Summary_CondoPin, 'Comment'))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returned FREQUENCY &amp;gt; 1 AND Comment IS NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the syntax you provided me for the MakeTableView failed with the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp; File "X:\ParcelFeaturesQC\ParcelFeaturesQC.py", line 676, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; startArcSDE(True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp; File "X:\ParcelFeaturesQC\ParcelFeaturesQC.py", line 619, in startArcSDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QC.runCondoPinCheck()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp; File "X:\ParcelFeaturesQC\ParcelFeaturesQC.py", line 519, in runCondoPinCheck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeTableView_management(Summary_CondoPin,'Frequency_CondoPin', """{} &amp;gt; 1 AND {} IS NULL""".format(arcpy.AddFieldDelimiters(Summary_CondoPin, 'FREQUENCY'), arcpy.AddFieldDelimiters(Summary_CondoPin, 'Comment')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 7047, in MakeTableView&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;ExecuteError: ERROR 000358: Invalid expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #e23d39; font-size: 10pt;"&gt;Failed to execute (MakeTableView).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68524#M5597</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-02-12T16:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68525#M5598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested some variations of your situation in 10.3.1 using file geodatabases, and I don't run into that error.&amp;nbsp; At this point, all I can suggest is going down the Esri Support incident route.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68525#M5598</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-02-12T18:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68526#M5599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for taking the time to try to figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 19:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68526#M5599</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-02-12T19:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68527#M5600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wanted to chime in that we are having the same issue with MakeTableView not working in 10.3.1 environments but the same exact script running just fine in 10.2 environment (we store the scripts on a network drive so it is the same script in each instance that is run).&amp;nbsp; We tried adding the OBJECTID to the table (in this case a SQL View), based on comments in this post,&amp;nbsp; but that did not solve the problem for us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our python statement looks like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;arcpy.MakeTableView_management(UTILITY_BILLING_CUSTOMERS, Utility_Billing_Customers_View, "", "", "OBJECTID OBJECTID VISIBLE NONE;...&amp;lt;many fields here&amp;gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in case that's of interest to anyone.&amp;nbsp; No WHERE clause is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like a bug and hopefully will be addressed in 10.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68527#M5600</guid>
      <dc:creator>AnnStark2</dc:creator>
      <dc:date>2016-02-18T00:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68528#M5601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone logged a call with Esri? If so, anyone have a bug number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are up and running by adding in the OBJECTID field in our materialized views so not sure what kind of call we would post to Esri Canada?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 13:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68528#M5601</guid>
      <dc:creator>AlisonGaiser1</dc:creator>
      <dc:date>2016-02-18T13:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68529#M5602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This continues to be an issue for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have several scripts that have been written over the years that we either have set to run on scheduled tasks or we run annually during different times of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of these scripts now fail at version 10.3.1 due to this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;ERROR 000358: Invalid expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is occurring on both the MakeTableView and MakeFeatureLayer methods.&lt;/P&gt;&lt;P&gt;All of our tables and layers have OBJECTID fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope that someone from ESRI can track the error down and fix it soon. We have already upgraded all our desktop machines to 10.3.1 and are hoping to upgrade our servers in a couple months. But this issue is going to leave us dead in the water if it isn't fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 21:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68529#M5602</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-03-24T21:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68530#M5603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If no one has reported it, there will be no error report.&amp;nbsp; If one has been filed, then you could ask your tech support for a contact number.&lt;/P&gt;&lt;P&gt;some links&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/get-started/administering-desktop/error-reporting-for-arcgis-software-crash-data.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/get-started/administering-desktop/error-reporting-for-arcgis-software-crash-data.htm"&gt;Error reporting for ArcGIS software—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;then each version of arcmap contains a document like this, so since you are using an older than current release version, chec to see if the error had been reported and solved.&amp;nbsp; If it isn't on the list, it probably wasn't reported...it is buried in a huge list.. or hasn't been fixed, or it isn't a software error but a user error or procedural difference of opinion.&amp;nbsp; Here it is anyway\&lt;/P&gt;&lt;P&gt;&lt;A href="http://downloads.esri.com/support/downloads/other_/104-IssuesAddressedList.pdf" title="http://downloads.esri.com/support/downloads/other_/104-IssuesAddressedList.pdf"&gt;http://downloads.esri.com/support/downloads/other_/104-IssuesAddressedList.pdf&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 23:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68530#M5603</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-24T23:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68531#M5604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a few bugs had been reported that seemed relevant to this issue.&lt;/P&gt;&lt;P&gt;Both said the issue had been fixed in version 10.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just upgraded to 10.4 and am still having this error occur.&lt;/P&gt;&lt;P&gt;These scripts run fine in version 10.2.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 15:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68531#M5604</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-03-31T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68532#M5605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kathleen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found a workaround for this? Did Esri get back to you about a bug report? We are testing an upgrade from 10.1 to 10.3.1 and found a vital script is failing after a MakeTableView (error is actually thrown by a subsequent SelectLayerByAttribute).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 15:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68532#M5605</guid>
      <dc:creator>Waan</dc:creator>
      <dc:date>2016-05-25T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68533#M5606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On my blog near the top, I have links to the change logs performed in arcmap, if you want to wade through and see if one is mentioned that involves maketableview, this would be the shortest path other than filing a bug error yourself.&amp;nbsp; Have a look&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/55413"&gt;The ...py... links&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 15:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68533#M5606</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-25T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68534#M5607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, I was actually wading through some of them when you replied. While there were some fixes to MakeTableView in 10.3 and 10.4, they seemed to deal with specific issues, e.g. when working on a .csv. I didn't see anything to indicate a broader fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I re-opened a ticket with Esri about this issue. For the sake of completeness in this thread, here's my piece of code that bombs ... this is a table and a feature class in a file geodatabase:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;wellboretable = workspace + "tbl_wellbores"
wellbores = workspace + "wellbores"
arcpy.MakeTableView_management(wellboretable, "wellboretable_layer")
arcpy.AddJoin_management("wellboretable_layer", "UniqueId", wellbores, "UniqueId", "KEEP_ALL")
arcpy.SelectLayerByAttribute_management("wellboretable_layer", "NEW_SELECTION", "(\"tbl_wellbores.Deviation\" = '' OR \"tbl_wellbores.Deviation\" IS NULL) AND \"wellbores.Length_ft\" &amp;gt;= 3000")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lest anyone thinks the syntax in the select statement is bad, I used GetCount_management, Exists, ListFields, and CopyRows_management to verify that data existed, the join worked, and the fields were typed accurately. I also tried using single and double quotes instead but still received an error. Interestingly, I noticed GetCount_management would return 0 after a bomb, so I used a CLEAR_SELECTION throughout my testing. To make this even simpler, I tried the following after the join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.SelectLayerByAttribute_management("wellboretable_layer", "NEW_SELECTION", "\"tbl_wellbores.OBJECTID\" = 1")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... which still threw the same ERROR 000358. To be sure, I used a SearchCursor to verify that an OBJECTID of 1 exists in this table view. I emphasize that all of this code works fine in 10.1. I didn't spot anything in 10.3 (or 10.3.1) documentation that the SelectByAttribute syntax or SQL syntax had changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see what Esri has to say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:37:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68534#M5607</guid>
      <dc:creator>Waan</dc:creator>
      <dc:date>2021-12-10T22:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: MakeTableView in python script fails after Update to 10.3.1 on 64 bit OS</title>
      <link>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68535#M5608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a print statement after this line to ensure that the paths are correct&lt;/P&gt;&lt;P&gt;wellboretable = workspace + &lt;SPAN class="string"&gt;"tbl_wellbores"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;I am wondering if a \ is missing before tbl_wellbores&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;One incarnation won't give you the correct path, the second would produce an error and the 3rd would work and the last is an alternative (then there is the join thing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; workspace = r"c:\Temp\path"
&amp;gt;&amp;gt;&amp;gt; workspace + "tbl_wellbores"
'c:\\Temp\\pathtbl_wellbores'
&amp;gt;&amp;gt;&amp;gt; workspace = r"c:\Temp\path\"
Traceback (&amp;nbsp; File "&amp;lt;interactive input&amp;gt;", line 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; workspace = r"c:\Temp\path\"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^
SyntaxError: EOL while scanning string literal
&amp;gt;&amp;gt;&amp;gt; workspace = r"c:\Temp\path" + "\tbl_wellbores"
&amp;gt;&amp;gt;&amp;gt; workspace
'c:\\Temp\\path\tbl_wellbores'
&amp;gt;&amp;gt;&amp;gt; workspace = "c:/Temp/path" + "/tbl_wellbores"
&amp;gt;&amp;gt;&amp;gt; workspace
'c:/Temp/path/tbl_wellbores'
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/maketableview-in-python-script-fails-after-update/m-p/68535#M5608</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T22:37:42Z</dc:date>
    </item>
  </channel>
</rss>

