<?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: The user-specified map layer does not exist when opening query table .net sdk in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309094#M10046</link>
    <description>&lt;P&gt;Sorry, without database I can't&amp;nbsp; help you.&lt;/P&gt;&lt;P&gt;Try to comment SubFields and WhereClause properties, then uncomment one by one and check how it works&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 14:46:26 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2023-07-18T14:46:26Z</dc:date>
    <item>
      <title>The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1308952#M10036</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using query definition which contains multiple tables having the join.&amp;nbsp;&lt;/P&gt;&lt;P&gt;var queryDefinition = new QueryDef&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Tables = @"dbo.Table1 table1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LEFT JOIN dbo.Table2 table2 ON table1.ID = table2.Table1ID&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LEFT JOIN dbo.Table3 table3 ON table2.ID = table3.Table2ID",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; WhereClause = $"table1.Name = {name}"&lt;BR /&gt;};&lt;/P&gt;&lt;DIV&gt;using var table1Table = table1FeatureLayer.GetTable();&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;using var database = (Geodatabase)table1Table.GetDatastore();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var queryTableDescription = new QueryTableDescription(queryDefinition);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var queryTable = database.OpenQueryTable(queryTableDescription);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can have multiple data sources so I am fetching the database from the feature layer present in the required data source.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But when opening the query table I am getting this error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;ArcGIS.Core.Data.Exceptions.GeodatabaseEnterpriseException: 'The user-specified map layer does not exist.'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the meaning of this error? I am not able to understand.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221628"&gt;@Aashis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 11:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1308952#M10036</guid>
      <dc:creator>RITASHKOUL</dc:creator>
      <dc:date>2023-07-18T11:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309050#M10042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think problem is related with query definition string. Have you tried to specify fields directly (without table1, table2, table3)?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309050#M10042</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-18T13:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309055#M10043</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp; No I cant do that since I have same name columns in those tables.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309055#M10043</guid>
      <dc:creator>RITASHKOUL</dc:creator>
      <dc:date>2023-07-18T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309072#M10044</link>
      <description>&lt;P&gt;I mean write string like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var queryDefinition = new QueryDef
{
      Tables = @"dbo.Table1
      LEFT JOIN dbo.Table2 ON dbo.Table1.ID = dbo.Table2.Table1ID
      LEFT JOIN dbo.Table3 ON dbo.Table2.ID = dbo.Table3.Table2ID",
      WhereClause = $"dbo.Table1.Name = {name}"
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another one thing that "WhereClause" doesn't know about "table1", which is defined in "Tables" string.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309072#M10044</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-18T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309082#M10045</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;Now I have included the database name as well since without that I am getting table not found. But after adding database name I am getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS.Core.Data.Exceptions.GeodatabaseEnterpriseException: 'The specified attribute column does not exist.'&lt;/P&gt;&lt;P&gt;Even if all the columns mentioned in the sub fields are present in the table.&lt;/P&gt;&lt;P&gt;var queryDefinition = new QueryDef&lt;BR /&gt;{&lt;BR /&gt;Tables = @"dbname.dbo.Table1&lt;BR /&gt;LEFT JOIN dbname.dbo.Table2 ON dbname.dbo.Table1.ID = dbname.dbo.Table2.Table1ID&lt;BR /&gt;LEFT JOIN dbname.dbo.Table3 ON dbname.dbo.Table2.ID = dbname.dbo.Table3.Table2ID",&lt;BR /&gt;SubFields = "dbname.dbo.Table1.Id, dbname.dbo.Table1.Name"&lt;BR /&gt;WhereClause = $"dbo.Table1.Name = {name}"&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309082#M10045</guid>
      <dc:creator>RITASHKOUL</dc:creator>
      <dc:date>2023-07-18T14:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309094#M10046</link>
      <description>&lt;P&gt;Sorry, without database I can't&amp;nbsp; help you.&lt;/P&gt;&lt;P&gt;Try to comment SubFields and WhereClause properties, then uncomment one by one and check how it works&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309094#M10046</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-18T14:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: The user-specified map layer does not exist when opening query table .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309612#M10056</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/643744"&gt;@RITASHKOUL&lt;/a&gt;&amp;nbsp;Please refer to the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#evaluating-a-querydef-on-a-join-using-where-clause" target="_self"&gt;snippets page&lt;/A&gt; on setting query defn with Joins.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/the-user-specified-map-layer-does-not-exist-when/m-p/1309612#M10056</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2023-07-19T16:51:35Z</dc:date>
    </item>
  </channel>
</rss>

