Forum Discussion
Accokeekian
6 years agoFrequent Visitor
"Unexpected error" when reading sharepoint folder full of large text files using Dataflows
Hi there, Excited for the new features of dataflows from the Nov 2019 update which allows the same "combine" files experience as in power query on desktop. Unfourtunately, when I attempt to load ...
fabo
Advocate III
6 years agoThank you for replying Accokeekian .
My Excel files have .xlsm extension so it doesn't seem to be the file type. I leave you the mashup text, it might be useful somehow (translated from spanish):
section Section1;
shared data_oferta_prog = let
Source = SharePoint.Files("https://xxxxxxxxxxx.sharepoint.com/sites/xxxxxxxxxxx", [ApiVersion = 15]),
#"Filtered rows" = Table.SelectRows(Source, each ([Extension] = ".xlsm")),
#"Keep content" = Table.SelectColumns(#"Filtered rows", {"Content"}),
#"Filtered hidden files" = Table.SelectRows(#"Keep content", each [Attributes]?[Hidden]? <> true)
in
#"Filtered hidden files";
shared #"Example file" = let
Source = SharePoint.Files("https://xxxxxxxxxxx.sharepoint.com/sites/xxxxxxxxxxx", [ApiVersion = 15]),
#"Filtered rows" = Table.SelectRows(Source , each ([Extension] = ".xlsm")),
#"Keep content" = Table.SelectColumns(#"Filtered rows", {"Content"}),
#"Filtered hidden files" = Table.SelectRows(#"Keep content", each [Attributes]?[Hidden]? <> true),
Navegation = #"Filtered hidden files"{0}[Content]
in
Navegation;
shared Parameter = let
Parameter = #"Example file" meta [IsParameterQuery = true, IsParameterQueryRequired = true, Type = type binary]
in
Parameter;
Thanks!
jmdh
Advocate IV
6 years agoHope this helps: I have faced the same issue many times.
Now i prefer to use SharePoint.Contents instead of SharePoint.Files which is both easier to reach the files i want ie (their folder) and seems to work well.
This unexpected error has started in may or June i believe and no one seems to have acknoledged it.
I would love an extension to the API allowing to directly access a given folder.