cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

Expression Error: The Type specified wasn't recognized. Dataflow Cust Function

Good Day, I created a function in PBI Desktop Query Editor. and it works fine to process the files. Then I copied this function in a Dataflow which was okay. but when I invoke the function in the dataflow to add a New column, and pass the required input which is binary content; I get this error. I tried googling but couldn;t find anything useful. 

 

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

what type did you specify?  Please show the relevant bits of your Power Query code.

Hi, here's the power query code:

(Filebinary as binary) as table=>

let
Source = Excel.Workbook(Filebinary),

#"Cost_Sheet" = Source{[Item="Cost Info",Kind="Sheet"]}[Data],

#"Removed Top Rows" = Table.Skip(#"Cash_Sheet",91),

#"Removed Other Columns" = Table.SelectColumns(#"Removed Top Rows",{"Column2", "Column3", "Column4", "Column5", "Column6", "Column7"}),

#"Kept Range of Rows" = Table.Range(#"Removed Other Columns",0,3),

#"Promoted Headers" = Table.PromoteHeaders(#"Kept Range of Rows", [PromoteAllScalars=true]),

in
#"Promoted Headers"

 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Top Kudoed Authors
Users online (4,460)