<?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 How to open the same query layer in two map in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-the-same-query-layer-in-two-map/m-p/1255677#M9391</link>
    <description>&lt;P&gt;Opening several query layers with the same definition query via&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var desc = db.GetQueryDescription(sql, name);
var table = db.OpenTable(desc);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;leads to a featureclass already exists exception.&lt;/P&gt;&lt;P&gt;Is there any way to instead get the already existing feature class? Currently we iterate through all MapProjectItems to find the existing opened featureclass, but this can be slow when maps need to be loaded.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 14:48:38 GMT</pubDate>
    <dc:creator>Naomi-</dc:creator>
    <dc:date>2023-02-07T14:48:38Z</dc:date>
    <item>
      <title>How to open the same query layer in two map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-the-same-query-layer-in-two-map/m-p/1255677#M9391</link>
      <description>&lt;P&gt;Opening several query layers with the same definition query via&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var desc = db.GetQueryDescription(sql, name);
var table = db.OpenTable(desc);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;leads to a featureclass already exists exception.&lt;/P&gt;&lt;P&gt;Is there any way to instead get the already existing feature class? Currently we iterate through all MapProjectItems to find the existing opened featureclass, but this can be slow when maps need to be loaded.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-the-same-query-layer-in-two-map/m-p/1255677#M9391</guid>
      <dc:creator>Naomi-</dc:creator>
      <dc:date>2023-02-07T14:48:38Z</dc:date>
    </item>
  </channel>
</rss>

