Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
brechtarnou
New Member

Certain dataset tables/columns are not returned from the Admin - WorkspaceInfo GetScanResult endpoin

Hi all,

 

When we use the power bi api for fetching the metadata of a certain power bi system, not all metadata is returned as would be expected. Certain datasets do not return their tables and columns. We are not able to pinpoint why some datasets do return all their metadata and others don't. We use the Admin - WorkspaceInfo GetScanResult endpoint.

 

The workspace was newly created for the testing purpose and the datasets are recently published.

 

Does anyone have the same issue?

 

If there is extra information required, I can always ellaborate more.

 

Thanks in advance.

Kind regards,

Brecht

4 REPLIES 4
jpretorius
Advocate I
Advocate I

Hi @brechtarnou,

 

In order for the tables to be populated in the WorkspaceInfo GetScanResult the dataset needs to have been refreshed at least once in the Power BI Service. 

 

Hope that helps

Best regards

James

 

Hi @jpretorius,

 

The issue is only occuring when we upload an excel file directly from the app.portal.powerbi.

If we refresh we still are not able to see the columns of that dataset.

 

If we upload the exact same file via the desktop app, we can find our columns that are in our dataset.

 

Thanks in advance.

 

Kr,

Brecht

V-lianl-msft
Community Support
Community Support

Hi @brechtarnou ,

 

If you set the datasetSchema or datasetExpressions parameters to true , you must fully enable metadata scanning in order for data to be returned. For more information, see Enable tenant settings for metadata scanning.

What type of authentication are you using?

The user must have administrator rights (such as Microsoft 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.

Here is the blog for your reference:

https://debbiesmspowerbiazureblog.home.blog/category/power-bi-admin-scanner-api/ 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Liang,

 

We use the service principal to authenticate.

 

All the steps of the blog were also followed. We have enabled both flags for our security groups.

 

The thing is that we have certain datasets that return all the metadata, having the tables and the columns/measures. Other datasets in the same workspace do not return all the metadata.

But we cannot see a clear reason why certain datasets return their metadata and others not.

 

Kind regards,

Brecht

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors