Hi
I have been pulling in 5 columns of date data from a datawarehouse to views and converting the date information from int to varchar8 then to datetime in views before importing to powerbi. This has been working ok for sometime but recently I started getting the message when refreshing the data in desktop or from the enterprise gateway: the conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
The data is pulled in and converted from datetime to date in the report. Can anyone help as the data in the views looks ok? I use CAST(CAST(ShippingDateRequested_SK AS VARCHAR(8)) AS DATETIME) AS [Shipping Date Requested] to convert from int to date time in the SQL views.
Thanks