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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Frederico
Frequent Visitor

DataFormat.Error: We couldn't convert to Number. Details CG105

Hello,

 

I am uploading an excel database which there is a column with "Plant" information, that could be just numbers (0951) or number mixed with letters (53A0). In the moment it is uploaded, this column does already suffer a change to "text", but when I close&apply, it brings me erros into this column with the message: "DataFormat.Error: We couldn't convert to Number. Details CG105".

 

Any ideas about this error?

 

Thank yor for the support.

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @Frederico,

 

Are you sure that when you are making the final step in the query that is getting as text and not as number?

 

When you do an upload from a excel spreadsheet by default it give the format of the first 200 rows, so if there is only numbers it will transform to numbers and not text. 

 

Go to the query editor and lookup the step with the name Changed Type (should be the 2nd or 3rd one on the list on the right) then go to the column Plant and check if it's number or text, then force it to text.

 

Should fix your problem.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

rema
Advocate I
Advocate I

Hi Frederico,

You got this error because your columnc contents are not only numbers they are alphanumeric so they couldnt totally get converted.

 

Thanks!

Rema

View solution in original post

2 REPLIES 2
rema
Advocate I
Advocate I

Hi Frederico,

You got this error because your columnc contents are not only numbers they are alphanumeric so they couldnt totally get converted.

 

Thanks!

Rema

MFelix
Super User
Super User

Hi @Frederico,

 

Are you sure that when you are making the final step in the query that is getting as text and not as number?

 

When you do an upload from a excel spreadsheet by default it give the format of the first 200 rows, so if there is only numbers it will transform to numbers and not text. 

 

Go to the query editor and lookup the step with the name Changed Type (should be the 2nd or 3rd one on the list on the right) then go to the column Plant and check if it's number or text, then force it to text.

 

Should fix your problem.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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