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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ali_Shakh
Helper II
Helper II

Sensitivity Label in Excel causes refresh error ( Data source error ) in Power BI Service

Hi all!

 

I've created a report in Power BI Desktop using various sources (all in Excel file, but with different connection properties e.g. from Web or Sharepoint Folder),

 

A main source for the report are Excel files sent daily to Outlook automatically and a Flow saves them into a Sharepoint Folder.

 

The report itself works fine, and updates fine in Desktop, but as soon as I publish the report to the Service, refresh option stops working and returns an error that data is corrupted

Ali_Shakh_0-1680102907709.png

It took me a while to realize (trial and errors) that the issue is in Sensitivity Label of Excel files I received,

as soon as I open them, choose a label and save a file everything works fine.

Ali_Shakh_1-1680104081106.png

Opening each file manually and selecting a label isn't an option (the whole idea of this report was to automate everything).

I tried to fool Power BI doing the following =>
in PQ before "Invoke Custom Function" I made a Sorting, so when the function runs and takes a first file (which I openned and selected a label) as a parameter for others the whole refresh issue will disapear, but...
as you can see, in that case only those that had labes are openned properly, other files have errors 

Ali_Shakh_2-1680104478175.png

so, does anyone know how to solve this problem?

1 ACCEPTED SOLUTION
Ali_Shakh
Helper II
Helper II

UPD:
after some trial and error I figured out the workaround, just replaced all Excel files with CSV and now all is good, it's kinda weird that there is no solution for Excel

View solution in original post

1 REPLY 1
Ali_Shakh
Helper II
Helper II

UPD:
after some trial and error I figured out the workaround, just replaced all Excel files with CSV and now all is good, it's kinda weird that there is no solution for Excel

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors