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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
wynhodgkiss
Helper III
Helper III

get data from .txt files on sharepoint

Hi,

I have a number of .txt files stored in separate sharepoint folders. Any ideas as to why I can connect to these using PowerQuery in excel but not using PowerQuery in Power BI?

When using PowerQuery in excel, I can connect to the sharepoint folder and filter to the specific file and when I expand the content I can then select the File Origin to get the correct encoding (UTF-8) and my data is then presented in a single column ready to be split.

When using PowerQuery in Power BI Desktop, I can connect to the sharepoint folder and filter to the specific file but when I attempt to expand the content I get the below error message:

Screenshot 2022-11-18 144149.png

 

 

 

 

 

 

 

 

My Excel version is 

Microsoft® Excel® for Microsoft 365 MSO (Version 2210 Build 16.0.15726.20188) 64-bit

My PowerBI Desktop version is: 2.110.1161.0 64-bit (October 2022)

 

thanks

1 ACCEPTED SOLUTION
JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @wynhodgkiss  🙂

From my understanding, you can:

 

  • Connect to sharepoint; JoaoMarcelino_0-1668785922614.png
  • Filter folder you want to get; JoaoMarcelino_1-1668785977293.png
  • Filter the file you wish to expand;JoaoMarcelino_2-1668786155590.png

     

  • When you choose "Binary" in the "Content" column, this is the resulting code, with the encoding in the end:
    JoaoMarcelino_3-1668788950122.png

Are these the corresponding steps that you've followed and your Power Query writes?

If not, consider running these steps and adjust the code in accordance 🙂

Hope I was of assistance!
Cheers
Joao Marcelino

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

 

 

View solution in original post

3 REPLIES 3
JoaoMarcelino
Responsive Resident
Responsive Resident

@wynhodgkiss I'm happy to know it is fixed, I'm glad to help 🙂

JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @wynhodgkiss  🙂

From my understanding, you can:

 

  • Connect to sharepoint; JoaoMarcelino_0-1668785922614.png
  • Filter folder you want to get; JoaoMarcelino_1-1668785977293.png
  • Filter the file you wish to expand;JoaoMarcelino_2-1668786155590.png

     

  • When you choose "Binary" in the "Content" column, this is the resulting code, with the encoding in the end:
    JoaoMarcelino_3-1668788950122.png

Are these the corresponding steps that you've followed and your Power Query writes?

If not, consider running these steps and adjust the code in accordance 🙂

Hope I was of assistance!
Cheers
Joao Marcelino

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

 

 

Thanks @JoaoMarcelino . When I tried to connect to the same sharepoint folder via power bi today it works.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI 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