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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
naoyixue1
Post Patron
Post Patron

Cannot load the file with xlsx into Fabric thru Gen2

Hey all,

 

I tried to load the file from sharepoint to Fabric with Gen2 but it shows format error, but I really can open and see the file in sharepoint. (see below error message)

 

1: I tried to apply EXCEL.WOKBOOK to pull the content.

naoyixue1_0-1744925947820.png

 

2: I tried to open the file directly but also failed

naoyixue1_1-1744926062195.png

This is the source where I uploaded into sharepoint with 'xlsx' format and I can open and read this file.

naoyixue1_2-1744926155405.png

 

Do you have any thoughts or idea to solve that fomat issue? Thanks!

1 ACCEPTED SOLUTION
v-csrikanth
Community Support
Community Support

Hi @naoyixue1
Please do follow the steps that might resolve your issue:

 

 

  • This will make sure Power Query receives the file as a valid .xlxs package and avoids the format or missing main part errors.

  • Make sure the file isn’t checked out or locked, and that you have permission to access it using the same credentials in Power BI/Fabric.

  • This method is confirmed and commonly used when SharePoint files show as accessible in the browser but fail in Power Query.

 

 

 

If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.

View solution in original post

10 REPLIES 10
v-csrikanth
Community Support
Community Support

Hi @naoyixue1 
We haven't heard from you since last response and just wanted to check whether the solution provided has worked for you. If yes, please Accept as Solution to help others benefit in the community.
Thank you.

If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.

 

v-csrikanth
Community Support
Community Support

Hi @naoyixue1
Please do follow the steps that might resolve your issue:

 

 

  • This will make sure Power Query receives the file as a valid .xlxs package and avoids the format or missing main part errors.

  • Make sure the file isn’t checked out or locked, and that you have permission to access it using the same credentials in Power BI/Fabric.

  • This method is confirmed and commonly used when SharePoint files show as accessible in the browser but fail in Power Query.

 

 

 

If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.

v-csrikanth
Community Support
Community Support

Hi @naoyixue1 
I wanted to follow up since I haven't heard from you in a while. Have you had a chance to try the suggested solutions?
If your issue is resolved, please consider marking the post as solved. However, if you're still facing challenges, feel free to share the details, and we'll be happy to assist you further.
Looking forward to your response!

Best Regards,
Cheri Srikanth 

@v-csrikanth Hey Cheri, sorry i still got the same issue even following the suggested solution. 

If you try to open the file locally in Power Query for Excel or Power BI Desktop using the Excel connector, what error do you get?

 

Furthermore, if you use the excel connector in Dataflows and upload a copy of that same file, what error do you get when you connect to the file? Could you please share a screenshot?

 

Do try to save the file as a different format such as .xlsm and then back to xlsx as that'll try to fix the corrupted bits that a file may have as long as such process is done entirely through Excel

v-csrikanth
Community Support
Community Support

Hi @naoyixue1 
I wanted to follow up since I haven't heard from you in a while. Have you had a chance to try the suggested solutions?
If your issue is resolved, please consider marking the post as solved. However, if you're still facing challenges, feel free to share the details, and we'll be happy to assist you further.
Looking forward to your response!

Thanks 
Cheri Srikanth

v-csrikanth
Community Support
Community Support

Hi @naoyixue1 
As suggested by @lbendlin could you confirm the which extension are you using to pull the data.

Thanks 
Cheri Srikanth

naoyixue1
Post Patron
Post Patron

@lbendlin Thanks, but it still doesn't work. I think overall it's a format issue, since I directly click to explode the file, it still says format issue. 
Hey all, any other thoughts?

Maybe the file is not actually an xlsx, maybe it is a xls or csv file with the wrong extension.

lbendlin
Super User
Super User

Power Query is case sensitive. Try Excel.Workbook  or click on the link under [Content].

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors