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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nrowey
Helper I
Helper I

Error DataFormat.Error: We couldn't convert to Number trying to add a data flow.

Trying to create a new data flow keep getting this error: 

"DataFormat.Error: We couldn't convert to Number. 24200C. RootActivityId = 0be9b5d6-87b4-42e6-a4d2-30d2dd930d48.Param1 = DataFormat.Error: We couldn't convert to Number. 24200C Request ID: 3ffa7555-ce42-da36-73c8-f01616a25627."

I am connecting to Gen2 file Blob Azure where data is loaded as all Text , Date and Decimal format.

It seems like the Data is getting reformated by the DataFlow.

I have tried transforming after same result.

Is there a way to find the cause and fix this?

Thanks   

 

1 ACCEPTED SOLUTION

Looks like the only column left that is being converted to number is Postingamount. For testing, try converting Postingamount to Text too. If the dataflow runs, then my guess is a text has accidentally ended up in the Postingamount column.

View solution in original post

6 REPLIES 6
aybarsacar
Frequent Visitor

Hi all,

Running into same error. How were you able to debug which column is creating the error.

My data source has around 100 attributes and I wasn't able to get a descriptive error log from Power BI that would direct me to the source.

How would I know which column creates the type casting error from the error log?

Cheers, 

nrowey
Helper I
Helper I

problem jumped to date columns , I switched everythig to text as you sugested and it looks like it will get me there.

I did not know you could change the import conversion that way.  Thanks for the help.    

Good to hear. Just be aware, if Postingamount column has to be aggregated in your report, it has to have decimal number as data type. Text column cannot be aggregated using SUM function in DAX.

Tutu_in_YYC
Super User
Super User

Sounds like the auto conversion is trying to convert text to number. Open the dataflow and modify the data type change step for the column with issue, to type text. 

I changed below excluding the dates and one Numeric still same error..
Table.TransformColumnTypes(#"Expanded table column", {{"Source.Name"type text}, {"companyid"type text}, {"accountingdate"type datetime}, {"accountnumber"type text}, {"control"type text}, {"control2"type text}, {"controltype"type text}, {"detaildescription"type text}, {"journalid"type text}, {"postingamount"type number}, {"postingsequence"type text}, {"refer"type text}, {"schedulenumber"type text}, {"statcount", Int64.Type}, {"rowlastupdated"type datetime}, {"cora_acct_code"type text}})

Looks like the only column left that is being converted to number is Postingamount. For testing, try converting Postingamount to Text too. If the dataflow runs, then my guess is a text has accidentally ended up in the Postingamount column.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.