Hi,
I am using query definition which contains multiple tables having the join.
var queryDefinition = new QueryDef
{
Tables = @dbo.Table1 table1
LEFT JOIN dbo.Table2 table2 ON table1.ID = table2.Table1ID
LEFT JOIN dbo.Table3 table3 ON table2.ID = table3.Table2ID",
WhereClause = $"table1.Name = {name}"
};
using var table1Table = table1FeatureLayer.GetTable();
using var database = (Geodatabase)table1Table.GetDatastore();
var queryTableDescription = new QueryTableDescription(queryDefinition);
var queryTable = database.OpenQueryTable(queryTableDescription);
I can have multiple data sources so I am fetching the database from the feature layer present in the required data source.
But when opening the query table I am getting this error:
ArcGIS.Core.Data.Exceptions.GeodatabaseEnterpriseException: 'The user-specified map layer does not exist.'
What is the meaning of this error? I am not able to understand.
@Wolf @UmaHarano @GKmieliauskas @Aashis
Thanks!