<?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: MakeQueryLayer doesn't return results in a python script in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342610#M74536</link>
    <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Yes the connection file and location are valid. It's the same connection that was used in the MakeQueryLayer Tool and Python Console and in both cases a result was obtained.&lt;/P&gt;&lt;P&gt;Also, the Python Script works when querying&amp;nbsp; POLYGON or POINT tables while using the same connection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LINESTRING/MULTILINESTRING geometries seem to be the issue. But I don't understand is that they work when using Add Data/Query Layer, MakeQueryLayer Tool but not inside a python script.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 12:41:32 GMT</pubDate>
    <dc:creator>AdminRFVL</dc:creator>
    <dc:date>2023-10-27T12:41:32Z</dc:date>
    <item>
      <title>MakeQueryLayer doesn't return results in a python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342298#M74502</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an issue using the MakeQueryLayer Geoprocessing tool in a python script. I'm querying a Oracle Spatial DB (Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the geoprocessing tool from the Data Management Tools (MakeQueryLayer_1.JPG) I get a result. I then "Send to Python Window " to get the python command (MakeQueryLayer_2).JPG). Once again I get a result.&lt;/P&gt;&lt;P&gt;But when I create a python script using the same previous code to run from a ArcGIS Toolbox, the query returns no values. I tried to troubleshoot with a DBA and the conclusion is that when the Query comes from the Python Script, it doesn't reach the database.&lt;BR /&gt;&lt;BR /&gt;What's even weirder is that it only happens when I query a POLYLINE dataset. When I query POINTS or POLYGONS, it works fine.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 20:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342298#M74502</guid>
      <dc:creator>AdminRFVL</dc:creator>
      <dc:date>2023-10-26T20:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: MakeQueryLayer doesn't return results in a python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342390#M74512</link>
      <description>&lt;P&gt;So one question I have based upon your 3rd image is the *.sde connection file.&amp;nbsp; Is the correct *.sde connection file and location?&amp;nbsp; It could be "blank" so it's therefore not seeing your eGDB.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 21:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342390#M74512</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-10-26T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: MakeQueryLayer doesn't return results in a python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342610#M74536</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Yes the connection file and location are valid. It's the same connection that was used in the MakeQueryLayer Tool and Python Console and in both cases a result was obtained.&lt;/P&gt;&lt;P&gt;Also, the Python Script works when querying&amp;nbsp; POLYGON or POINT tables while using the same connection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LINESTRING/MULTILINESTRING geometries seem to be the issue. But I don't understand is that they work when using Add Data/Query Layer, MakeQueryLayer Tool but not inside a python script.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 12:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1342610#M74536</guid>
      <dc:creator>AdminRFVL</dc:creator>
      <dc:date>2023-10-27T12:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: MakeQueryLayer doesn't return results in a python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1345611#M74827</link>
      <description>&lt;P&gt;I have identified the problem.&lt;/P&gt;&lt;P&gt;The data I'm querying has M-Values and the arcpy.management.MakeQueryLayer within a script doesn't support it.&lt;/P&gt;&lt;P&gt;As a workaround I convert my geom to 2D (SDO_CS.MAKE_2D(c1.GEOM) AS GEOM) since I do not need&amp;nbsp; the M values in my geoprocessing.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could it be a bug ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 16:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-doesn-t-return-results-in-a-python/m-p/1345611#M74827</guid>
      <dc:creator>AdminRFVL</dc:creator>
      <dc:date>2023-11-03T16:00:24Z</dc:date>
    </item>
  </channel>
</rss>

