web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Consolidating a Sharep...
Power Apps
Unanswered

Consolidating a Sharepoint Folder - problem with XLSX files

(0) ShareShare
ReportReport
Posted on by 7

Hello,

 

First off, here is my excel version:

CM_Flatiron_0-1669038081036.png

 

What I've done is created a query that locates the content of a sharepoint folder seen below:

CM_Flatiron_1-1669038184376.png

 

After that, I referenced this query for a series of new queries. This is an example of my "new accounts opened" query which is functioning correctly.

let
Source = SharepointFolder,
#"New Accounts Opened1" = Source{[Name="New Accounts Opened"]}[Content],
#"Sorted Rows" = Table.Sort(#"New Accounts Opened1",{{"Name", Order.Descending}}),
#"Kept First Rows" = Table.FirstN(#"Sorted Rows",1),
#"Filtered Hidden Files1" = Table.SelectRows(#"Kept First Rows", each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File", each #"Transform File"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Table.ColumnNames(#"Transform File"(#"Sample File"))),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Account Number", type text}, {"Account RR Code", type text}, {"Account Name", type text}, {"Account Short Name", type text}, {"Account Open Date", Int64.Type}, {"Last Trade Date", Int64.Type}, {"Account Credit Code", type text}, {"Account Debit Code", type text}, {"Account Currency", type text}, {"54-101 Coding", Int64.Type}, {"Account Trade Date Balance", type number}, {"Account Settlement Date Balance", type number}, {"Account Market Value", type number}, {"Current Status of account", Int64.Type}, {"Account Type", type text}, {"Account Service Code", Int64.Type}, {"Client Code", type text}, {"Broker Code", type text}})
in
#"Changed Type"

As you can see in the pane, it's a CSV file.

CM_Flatiron_2-1669038361504.png

unfortunately, if I try this with "new accounts pending" query it doesn't work.

CM_Flatiron_3-1669038426193.png

This is the error code I receive:

 

We didn't recognize the format of your first file (). Please filter the list of files so it contains only supported types (Text, CSV, Excel workbooks, etc.) and try again.

 

I would rather not convert xlsx files into CSV just for my tool to work, so any help would be greatly appreciated.

 

Cheers,

CM

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard