This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
i try to use try_convert to convert varchar to date. The column includes some underscores:
When i use the try_convert, i get a conversion error:
In my opinion, this should not happen, or am I missing something?
Thanks!
I've got the same problem with a script of mine, using CONVERT. This feels like a bug, but Fabric is still in preview so some of this is to be expected...
But yes, there seems to be an issue here. Interestingly if you take the SQL code and hard code the date as a string and run it then it works fine (see below), just seems to be when doing it with a column from a table...
Works fine:-
SELECT TRY_CONVERT(DATE, '2023-03-01')
Check out the April 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |