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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
thomasreick
Resolver I
Resolver I

Combining multiple CSV-Files from Sharepoint-folder, ErrorMessage 404

Hello there,

I am actually struggling with combining of CSV-files from one SP-Fodler to have one resulting table only.

Using the Combine-button on zhe GUI has no effect

Using my OneDrive as the source of the files there is no problem combining the files.

 

Actually I cannot determine what might cause the error, so I kindly request Tips and Hints on how to solve this.

 

  • The Sharepoint we use is not managed by my boss or by myself but by "the Mother"-Company
  • We use this t hold additional information in CSV or Excel Files to load from SP to PowerQuery and PowerBI for reporting.
  • On monthly base we receive CSV-files with evaluation of customer interviews from the previous month
  • All files are of the same stucture.
  • SharepointUrl is stored in Paratmer spUrl
  • Loading the files (total size of 11 Files < 100kb) was shown as beeing newly loaded for >24h.

 

The M-Code is...

let

   Source=Sharepoint.Files(spUrl, [API-Version=15]),

   /*  Filter to the folder containing only CSV-Files, this list can be seen in PowerQuery(!) */

   #"FilteredRows" = Table.SelectRows(Source, each Text.EndsWith([FolderPath], "monthly/"),
   /* Combining all CSV-Files from the folder to one table for further transformation in PQ/PBI, results in an error*/

   #"Combine Csv" = Binary.Combine(#"FilteredRows"[Content])

in

   #"Combine Csv"

 

Row #"Combine Csv" produces an error:

DataSource.Error: Fehler beim Abrufen von Inhalten von "https://XXXXX.sharepoint.com/sites/....../_api/web/getfilebyserverrelativeurl('/sites/......../FileN..." (404) durch "Web.Contents": Not Found
Details:
DataSourceKind=SharePoint
DataSourcePath=https://XXXXX.sharepoint.com/sites/........................
Url=https://XXXXX.sharepoint.com/sites/...................._api/web/getfilebyserverrelativeurl('/sites/....

 

I kindly request help on what to check.

 

Thank you very much in advance

Have a nice 3rd Sunday of Advent.

Thomas

 

 

 

 

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

Your 3rd step with Binary.Combine is not correct. Delete that step and click on the double down arrows in the column with the binary content and go through the combine files wizard popup.

 

Pat

 

Microsoft Employee

Good Morning ppm1,

thank you for your answer.

I have got this Binary.Combine-Approach because the double-arrow button does NOT open the popup-window. That is why I have chosen this variation (insipred by this video) and asking for hints how to handle the combination properly.

 

Btw: the M-Code works for combining files out of my OneDrive, but this is bound to my login, not to the service user that we use.

 

Further ideas appreciated and welcome.

 

thx

Thomas

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.