In a Azure Function I have connect to the power bi service and can get a dataset by using the FindByName or GetByName but the Database.Model value is null. Which means i cannot refresh the dataset or update anything.
While debugging can see all of the datasets in the workspace. any help gratefully recevie. thanks
using (Server as_server = new Microsoft.AnalysisServices.Tabular.Server())
{
as_server.Connect(connectionString);
Microsoft.AnalysisServices.Tabular.Database db = as_server.Databases.FindByName(database);
Model m = db.Model;
//my model m is allways null pointless to go on
}
I am using Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64 19.9.0.1-Preview and Microsoft.AnalysisServices.NetCore.retail.amd64 19.9.0.1-Preview