<?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: Make Query Table error in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113372#M3873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what the problem was, but MakeQueryTable is more suited to complex queries involving multiple tables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 02:17:00 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2011-07-27T02:17:00Z</dc:date>
    <item>
      <title>Make Query Table error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113370#M3871</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;BR /&gt;&lt;SPAN&gt;I have made a very extensive model in ModelBuilder that keeps getting a 999999 error when trying to run a "Make Query Table" tool.&amp;nbsp; The message dialogue says it has trouble processing a certain, below is the python script of where the error occurs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Process: Make Query Table...
gp.MakeQueryTable_management("'W:\\JointDepartments\\Tyler\\Model_Test\\New Personal Geodatabase.mdb\\PropMast'", QueryTable, "USE_KEY_FIELDS", "PropMast.OBJECTID", "PropMast.parcel_code PropMast.parcel_code;PropMast.property_use_code 
...
...
...
PropMast._bedroom_units;PropMast._bedroom_units_1 PropMast._bedroom_units_1;PropMast._or_more_units &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure why this field is causing the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Mon Jul 25 16:49:01 2011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Syntax error in query expression 'PropMast._bedroom_units'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Make Query Table).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Time: Mon Jul 25 16:49:01 2011 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 20:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113370#M3871</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2011-07-25T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Table error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113371#M3872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fortunately, I was able to solve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using the Make Query tool, I was able to use another tool, Create Feature Layer, which allowed me to select feature attribute data within the layer and the model is successfully running.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113371#M3872</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2011-07-26T18:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Table error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113372#M3873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what the problem was, but MakeQueryTable is more suited to complex queries involving multiple tables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 02:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113372#M3873</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-07-27T02:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Table error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113373#M3874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I create the Query Table, the next step in the model is to select records based on their attribute information.&amp;nbsp; When the model reaches this step it displays an error and states that there are too few selections, meaning it cannot make a selection.&amp;nbsp; However, when I make a feature layer it does work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 15:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113373#M3874</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2011-07-28T15:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Table error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113374#M3875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it helps, here is a code snipit. Sorry I know it's pretty cryptic. If you only have a single input table, then the MakeFeatureLayer (or makeTableView) tool would be most appropriate. The added complexity of MakeQueryTable is only "worth it" if you are relating/joining multiple tables. The code below joins two tables to an input FC table and then outputs a feature layer that is the spatial result of the tabular queries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;queryExp = "question_1_fma_summary.RMU_ID = rmu_polyid.RMU_ID AND rmu_polyid.RMU_POLYID = rmus_we_care_about.RMU_POLYID AND\
rmus_we_care_about.MM_POL_LBL = 'marginal' AND (\
(rmus_we_care_about.HCPUNIT_NM in ('S-COAST','COLUMBIA') AND question_1_fma_summary.COMPSOLD_DATE &amp;gt;= 20000101) OR\
(rmus_we_care_about.HCPUNIT_NM = 'STRAITS' AND question_1_fma_summary.COMPSOLD_DATE &amp;gt;= 20010501) OR\
(rmus_we_care_about.HCPUNIT_NM = 'OESF' AND question_1_fma_summary.COMPSOLD_DATE &amp;gt;= 20020501) OR\
(rmus_we_care_about.HCPUNIT_NM = 'N-PUGET' AND question_1_fma_summary.COMPSOLD_DATE &amp;gt;= 20011101))"
gp.MakeQueryTable_management(question1FmaSummaryTbl + ";" + rmuPolyIdTbl + ";" + rmusWeCareAboutFC, featureLayerFL, "ADD_VIRTUAL_KEY_FIELD", "", "", queryExp)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-error/m-p/113374#M3875</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T06:45:15Z</dc:date>
    </item>
  </channel>
</rss>

