date data type to a datetime data type resulted in an out-of-range value

Copper Contributor

I've a 3rd party reporting software using SQL as the database.  During ETL, I saw this error:

 

"System.Exception: "The statement has been terminated.". Description: The conversion of a date data type to a datetime data type resulted in an out-of-range value."

 

Is there any adjustment require at SQL?

1 Reply

@James Lau 

 

I suggest you can :

1. compare each fields’ data types between reports and physical tables to find out which field is the root cause.

2. Drop the convent function in report and check out the original value. Perhaps the value is not a validated date time.

3. Revise the report to bypass that invalidated value or fix that value just temporarily, ex. display it as String type for that field. If you would like fix it in database, you can investigate the reason of that entry first. Please inform relevant member(s) once you decide to fix it in database.

 

Regards, 

Sten