Error The data source is not embedded within a (parent) data source in Ax

Description: 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

Related Posts

Previous
Next Post »

1 comments:

comments
November 20, 2020 at 1:15:00 PM GMT+5:30 delete

hi Umesh,
do you declare the "query" first before you use it? i try your method but the system show me message error "Variable query has not been declared."

Reply
avatar

Thanks for comments.....