<?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 layer returns 0 records, both from toolbox and arcpy. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197239#M8744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you describe would be a huge issue if it broadly applied to ArcGIS Pro, so I am guessing it is something specific to your data sets or parameters.&amp;nbsp; Can you provide some more specifics on what data sources are involved and the syntax you are using to call/use the tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2019 14:26:26 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2019-10-21T14:26:26Z</dc:date>
    <item>
      <title>Make query layer returns 0 records, both from toolbox and arcpy.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197238#M8743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a known issue? The same exact code works in ArcMap 10.7.1 toolbox and arcpy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 23:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197238#M8743</guid>
      <dc:creator>ScottBridwell</dc:creator>
      <dc:date>2019-10-18T23:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Make query layer returns 0 records, both from toolbox and arcpy.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197239#M8744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you describe would be a huge issue if it broadly applied to ArcGIS Pro, so I am guessing it is something specific to your data sets or parameters.&amp;nbsp; Can you provide some more specifics on what data sources are involved and the syntax you are using to call/use the tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197239#M8744</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-10-21T14:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Make query layer returns 0 records, both from toolbox and arcpy.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197240#M8745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like in the ArcPro version, there is an additional parameter called &lt;EM&gt;spatial_properties&lt;/EM&gt;, that wasn't in the ArcMap version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting this property seems to resolve my issue, e.g: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.MakeQueryLayer_management(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_db_conn,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'layer',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'select * from my_table',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid_fields='objectid',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; spatial_properties='DO_NOT_DEFINE_SPATIAL_PROPERTIES'&lt;/STRONG&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess in ArcMap the default behavior was to not provide spatial properties whereas in ArcPro the default behavior assumes you will provide them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 21:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/make-query-layer-returns-0-records-both-from/m-p/197240#M8745</guid>
      <dc:creator>ScottBridwell</dc:creator>
      <dc:date>2019-10-21T21:45:55Z</dc:date>
    </item>
  </channel>
</rss>

