The data source is not embedded within a (parent) data source.
Views (18765)
This error comes when you try to add new datasource to the top of the query.
QueryBuildDataSource qbds;
qbds = query.addDataSource(tableNum(newTable)); // This is wrong
You should add new table to the Main datasource instead.
query.dataSourceTable(tableNum(newTable)).addDataSource(..) // This is correct
QueryBuildDataSource qbds;
qbds = query.addDataSource(tableNum(newTable)); // This is wrong
You should add new table to the Main datasource instead.
query.dataSourceTable(tableNum(newTable)).addDataSource(..) // This is correct
This was originally posted here.
*This post is locked for comments