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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

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. 
Would really appreciate if anyone can advise how to fix this.

KD_PBI_DA100_0-1659619752930.png

 

1 ACCEPTED SOLUTION

try without the "as table"  part

 

(Filebinary) =>

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

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

Anonymous
Not applicable

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"

 

try without the "as table"  part

 

(Filebinary) =>

Anonymous
Not applicable

many thanks @lbendlin The trick worked in Dataflow. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.