I am using Power BI (Microsoft.PowerBI.Api.Models) SDK Model in our C# Application . When we Import report it returns importstate only success or failed but I need some more information in my code like Import Error if ImportState is Failed. How can I get such information.
This is the below piece of code .
When Looking at Import Model Class ,it does not have any property exposed which denotes ImportError .What is the solution to figure out ImportError if ImportState is Failed
Import import = await io.PostImportWithFileAsyncInGroup(GroupID, file, ImportConflictHandlerMode.Abort, cancellationToken: token);
publicclassImport {public Guid Id { get; set; }publicstring Name { get; set; }publicstring ImportState { get; set; }public IList<Report> Reports { get; set; }public IList<Dataset> Datasets { get; set; }public DateTime? CreatedDateTime { get; set; }public DateTime? UpdatedDateTime { get; set; } }