<?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: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361137#M28486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the sql stuff is dependent on where the data resides... some queries like double-quotes around the field names, some square brackets, some doesn't matter... I think they all agree on single-quotes around strings as in 'Y'.&lt;/P&gt;&lt;P&gt;One thing that is not clear amongst the flavors is whether things separate by 'and' requires round brackets or not or whether and is AND or and (ie case). &amp;nbsp;So off you go to&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm"&gt;SQL reference for query expressions used in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;and track down the source where the data resides to check the appropriate conditions for your data source. &amp;nbsp;You didn't indicate whether everything was the same between versions or not and I guess nothing popped up in the version change history.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 18:26:56 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-08-25T18:26:56Z</dc:date>
    <item>
      <title>ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361134#M28483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a python script that is used as a toolbox that allows users to plug in a few variables and then a map is created for them, filtering the layers based on their input. It works fine in ArcMap 10.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for some reason it has errors in ArcMap 10.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where it bombs is the MakeTableView tool. The error statement is saying I have an improper SQL statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What has changed from 10.2 to 10.3 that would make my SQL statement invalid?&lt;/P&gt;&lt;P&gt;Anyone know how to fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the end user wants to use 10.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 22:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361134#M28483</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-24T22:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361135#M28484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that seeing the sql statement would help. You can also look through the change list and bug fixed list here, part way down the link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/05/09/the-links"&gt;/blogs/dan_patterson/2016/05/09/the-links&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 00:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361135#M28484</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-25T00:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361136#M28485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good point...&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's the print out of my SQL statement plus the error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;DISPOSITION_TRANSACTION_SID = 923413 AND PRIMARY_CONTACT_YRN = 'Y'&lt;BR /&gt;ERROR 000358: Invalid expression&lt;BR /&gt;Failed to execute (MakeTableView).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISPOSITION_TRANSACTION_SID and PRIMARY_CONTACT_YRN are both fields in tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the&amp;nbsp;script runs fine when I run it in 10.2 but bombs in 10.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it matter what version of ArcGIS the mxd was created in? the original one was probably&amp;nbsp;10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 18:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361136#M28485</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-25T18:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361137#M28486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the sql stuff is dependent on where the data resides... some queries like double-quotes around the field names, some square brackets, some doesn't matter... I think they all agree on single-quotes around strings as in 'Y'.&lt;/P&gt;&lt;P&gt;One thing that is not clear amongst the flavors is whether things separate by 'and' requires round brackets or not or whether and is AND or and (ie case). &amp;nbsp;So off you go to&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm"&gt;SQL reference for query expressions used in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;and track down the source where the data resides to check the appropriate conditions for your data source. &amp;nbsp;You didn't indicate whether everything was the same between versions or not and I guess nothing popped up in the version change history.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 18:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361137#M28486</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-25T18:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361138#M28487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the data is sitting in ArcSDE and&amp;nbsp;is the same data. It's only the ArcGIS version that's different (10.2 vs 10.3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the past the SQL hasn't been an issue. I'll see if fiddling with double-single quotes helps or round/square/curly brackets helps or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I remove that reference to that module that script works fine so it is something about the MakeTableView_Management tool that has changed or as you suggest, maybe something about how SQL needs to be formatted in 10.2 vs 10.3?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 22:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361138#M28487</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-25T22:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361139#M28488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately the double quotes around the field names didn't help. I also tried the square brackets.&lt;/P&gt;&lt;P&gt;I was looking earlier in my script and I have a SQL statement (using the same format) that I was using in a definition query on a layer (also stored in SDE) and that worked fine in both 10.2 and 10.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was about to copy/paste my module (after adding double quotes)&amp;nbsp;here but it looks like all formatting disappears (spaces, tabs etc). So here it is on an FTP site:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="ftp://ftp.geobc.gov.bc.ca/pub/outgoing/_SouthCoast_Region/clientNameModule.txt"&gt;ftp://ftp.geobc.gov.bc.ca/pub/outgoing/_SouthCoast_Region/clientNameModule.txt&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 22:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361139#M28488</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-25T22:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361140#M28489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I rarely use queries, but when I do, I find the python minilanguage useful for getting rid of those pesky pluses and backslashes and weird stuff. &amp;nbsp;try replacing the "" with[ ] and the like, I do like ( ) around sub queries and I would still check on the 'and' thing&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; test &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'("{}" = {}) AND ("{}" = \'Y\')'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;test&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"a"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; AND &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"c"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361140#M28489</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T16:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361141#M28490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the backend DBMS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 01:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361141#M28490</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-08-26T01:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361142#M28491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oracle. Not sure what version. I can find out if the version of Oracle matters.&lt;/P&gt;&lt;P&gt;but that part remains the same... when I run in 10.2 or 10.3 it's still the same DBMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361142#M28491</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-26T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361143#M28492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think the Oracle version will matter, but knowing it is Oracle may help troubleshoot.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 17:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361143#M28492</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-08-26T17:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361144#M28493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend using&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/addfielddelimiters.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/addfielddelimiters.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;AddFieldDelimiters—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;.&amp;nbsp;See the sample code below:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

lst_ws &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'D:\Xander'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r&lt;SPAN class="string token"&gt;'D:\Xander\GeoNet\ExtractFeatures\Indonesia.gdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r&lt;SPAN class="string token"&gt;'D:\Xander\Apoyo\ConsumoCartera\mdb\test.mdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r&lt;SPAN class="string token"&gt;'Database Connections\Desarrollo 10.1.sde'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; ws &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lst_ws&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddFieldDelimiters&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddFieldDelimiters&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ws&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="string token"&gt;"({0} = {1}) AND ({2} = '{3}')"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fld1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will yield:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;("a" = 10) AND ("c" = 'Y')
(a = 10) AND (c = 'Y')
(&lt;A&gt; = 10) AND (&lt;C&gt; = 'Y')
(a = 10) AND (c = 'Y')&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/C&gt;&lt;/A&gt;&lt;/CODE&gt;&lt;A&gt;&lt;/A&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361144#M28493</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361145#M28494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately that didn't seem to do it either. Same error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(DISPOSITION_TRANSACTION_SID = 923413) AND (PRIMARY_CONTACT_YRN = 'Y')&lt;BR /&gt;ERROR 000358: Invalid expression&lt;BR /&gt;Failed to execute (MakeTableView).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I altered my script to use the AddFieldDelimiter:&amp;nbsp;&lt;/P&gt;&lt;P&gt;t1 = self.bcgw + '\\WHSE_TANTALIS.TA_TENANTS' # gobetween table &lt;BR /&gt; t2 = self.bcgw + '\\WHSE_TANTALIS.TA_INTERESTED_PARTIES'&lt;BR /&gt; &lt;BR /&gt; # fields for joining the tables&lt;BR /&gt; t1Field = 'DISPOSITION_TRANSACTION_SID'&lt;BR /&gt; joinField = 'INTERESTED_PARTY_SID'&lt;BR /&gt; contField = 'PRIMARY_CONTACT_YRN'&lt;BR /&gt; &lt;BR /&gt; # only pulling out client identified as "Primary Contact"&lt;BR /&gt; # editing out and trying AddFieldDelimiters&lt;BR /&gt;&lt;SPAN&gt; # &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Farcmap%2Flatest%2Fanalyze%2Farcpy-functions%2Faddfielddelimiters.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/addfielddelimiters.htm&lt;/A&gt;&lt;BR /&gt; # whereClause = t1Field + " = " + str(dispID) + " AND \"PRIMARY_CONTACT_YRN\" = \'Y\'"&lt;BR /&gt; wcList = [t1Field, contField]&lt;BR /&gt; wc1 = arcpy.AddFieldDelimiters(self.bcgw, t1Field)&lt;BR /&gt; wc2 = arcpy.AddFieldDelimiters(self.bcgw, contField)&lt;BR /&gt; whereClause = "({0} = {1}) AND ({2} = '{3}')".format(wc1, str(dispID), wc2, 'Y')&lt;/P&gt;&lt;P&gt;arcpy.AddMessage(whereClause)&lt;BR /&gt; legal = 'LEGAL_NAME' # field names in the TA_INTERESTED_PARTIES table&lt;BR /&gt; first = 'FIRST_NAME'&lt;BR /&gt; last = 'LAST_NAME'&lt;BR /&gt; txtClientName = 'Interest Holder: ' # resetting txtClientName&lt;BR /&gt; &lt;BR /&gt; arcpy.MakeTableView_management (t1, "t1View", whereClause)&lt;BR /&gt; arcpy.AddMessage("created t1View")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-python"&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361145#M28494</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-29T16:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361146#M28495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you will have to&amp;nbsp;implement:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/parsefieldname.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/parsefieldname.htm"&gt;ParseFieldName—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;to get the fully qualified field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361146#M28495</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-08-29T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361147#M28496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm not familiar with that and the help seems to make it look more like a way to connect to the database(?) Or it creates some long string to connect(?)&lt;/P&gt;&lt;P&gt;can you explain how this would be used in the context of my MakeTableView problem?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361147#M28496</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-29T17:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361148#M28497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank God a colleague of mine was able to help me out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was not a syntax thing but an ESRI Bug of some sort that's referenced in another thread:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/170160#comment-581568" title="https://community.esri.com/thread/170160#comment-581568"&gt;https://community.esri.com/thread/170160#comment-581568&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeTableView doesn't work properly in some situations using 10.3 even though the exact same script using the exact same dataset will work in 10.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI : please fix this ASAP! Copying out my table into another table to add ObjectID before making my virtual table seems kinda redundant and pointless...&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone from ESRI read these forums please add to your to-do list - please and thank you! &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 18:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361148#M28497</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-30T18:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361149#M28498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from that thread, it is painfully obvious that no one filed a bug report... I hope you do this time, If they get filed they get fixed and no one's time gets wasted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 19:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361149#M28498</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-30T19:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361150#M28499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a bug submission page somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 19:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361150#M28499</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2016-08-30T19:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: MakeTable_View works in 10.2 but not in 10.3? Why?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361151#M28500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Via the usual route... tech support&amp;nbsp;&lt;A class="link-titled" href="http://support.esri.com/contact-tech-support" title="http://support.esri.com/contact-tech-support"&gt;http://support.esri.com/contact-tech-support&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log a case, you will need to provide data usually for testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the importance of objectid fields is discussed in the help topics which also raises the importance of reporting the types and sources of tabular data one works with. &amp;nbsp;Information on how to create them is also given...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-objectid-fields.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/fundamentals-of-objectid-fields.htm"&gt;Fundamentals of ObjectID fields—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 20:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-maketable-view-works-in-10-2-but-not-in-10-3/m-p/361151#M28500</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-30T20:19:41Z</dc:date>
    </item>
  </channel>
</rss>

