<?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: &amp;quot;Make Query Layer&amp;quot; issue between ArcMap and Pro. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442879#M34648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I run the tool in Pro it doesn't allow me to continue without selecting ARN or MOD_DATE before continuing. I tried typing in OBJECTID and it gives an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2019 17:55:17 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-06-13T17:55:17Z</dc:date>
    <item>
      <title>"Make Query Layer" issue between ArcMap and Pro.</title>
      <link>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442877#M34646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I&amp;nbsp;run&amp;nbsp;the following&amp;nbsp;query in python 2.7&amp;nbsp; it allows me to use OBJECTID as the unique ID field but in python 3 it does not. Does anyone know why or how to get it to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ROW_NUMBER&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;OVER&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;BY&lt;/SPAN&gt; ARN&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; OBJECTID&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ARN&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; MOD_DATE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Shape &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; dbo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;vw_GC_ARN
‍&lt;SPAN class="line-numbers-rows"&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;full code I was using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeQueryLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
 lro16&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"parcels"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"""SELECT (ROW_NUMBER() OVER(ORDER BY ARN)) as OBJECTID, ARN, MOD_DATE, Shape FROM dbo.vw_GC_ARN"""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OBJECTID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POLYGON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; srid&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"5320"&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442877#M34646</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T19:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: "Make Query Layer" issue between ArcMap and Pro.</title>
      <link>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442878#M34647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could be how the GP tool is interpreting the column (Long vs Short integer) upon creation and may be a bug. If you run the GP tool manually in Pro, do you experience the same issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442878#M34647</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2019-06-13T17:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: "Make Query Layer" issue between ArcMap and Pro.</title>
      <link>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442879#M34648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I run the tool in Pro it doesn't allow me to continue without selecting ARN or MOD_DATE before continuing. I tried typing in OBJECTID and it gives an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-make-query-layer-quot-issue-between-arcmap/m-p/442879#M34648</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-13T17:55:17Z</dc:date>
    </item>
  </channel>
</rss>

