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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Foguete
Helper I
Helper I

Query crashes when changing for an older date

Hi ! 

 

I have a problem. 

I am conected by OBDC with a query that seems to work properly as it returns datas. 

However, when I change the date for an older one in my query, Power Query returns the follow message:

Foguete_0-1668004498644.png

 

- Query when the date allows a return:

Foguete_2-1668004592616.png

 

- Query when I change the date for an older one, returning above error:

Foguete_3-1668004640605.png

 

 

Any idea what could produce this type of error, because I am very lost to be fair.

 

Kind regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Foguete ,

From the error message it seems that this is a data type conversion error. I found three similar threads, please see if they help:

1. Check the field data type first and query within the desired data type:

sql server - Data conversion or data mapping error in SQL

2. join between mismatching data types:

php - Why am I getting "Data conversion or data mapping error. SQLCODE=-802" on a simple DB2 select ...

3. sql - SQL0802 - Data Conversion or Data Mapping Error

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Foguete ,

From the error message it seems that this is a data type conversion error. I found three similar threads, please see if they help:

1. Check the field data type first and query within the desired data type:

sql server - Data conversion or data mapping error in SQL

2. join between mismatching data types:

php - Why am I getting "Data conversion or data mapping error. SQLCODE=-802" on a simple DB2 select ...

3. sql - SQL0802 - Data Conversion or Data Mapping Error

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Thank you !

 

Indeed, the problem was coming from the only division in the SQL Query.

 

So to solve I added :

WHERE   the_Dividing_Column <> 0 

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors