r/learnSQL • • 9h ago

How to fix a error 1100?

SQL Error [1100]: Query execution failed: INVALID_FUNCTION_ARGUMENT: Invalid format: "01/07/2026" is malformed at "/07/2026"

Query execution failed: INVALID_FUNCTION_ARGUMENT: Invalid format: "01/07/2026" is malformed at "/07/2026"

INVALID_FUNCTION_ARGUMENT: Invalid format: "01/07/2026" is malformed at "/07/2026"

AI Aint helping

3 Upvotes

10 comments sorted by

7

u/Imaginary__Bar 9h ago

How do I fix this error that the system is telling me that my date is in the incorrect format?

Put your date in the correct format.

0

u/Imaginary__Bar 9h ago

You can start by doing a SELECT on that date field and seeing what format it spits out.

That's not 100% reliable but it might point you in the right direction.

2

u/QPGMR_de 9h ago

Which RDBMS? Can it be, that the date should be in ISO form '2026-01-07'? (assuming your date is MM/DD/YYYY)

4

u/Mobile-Analyst-9617 9h ago

This is sql server, and op needs to fix their date

1

u/atarivcs 8h ago

How do you expect us to help when you have not shared the full actual query, or at least that portion of the query

1

u/Bofact 59m ago

?

Why to share tables names and columns?

1

u/rvicta 7h ago

Have you tried 2026-01-07 as the date format?

Edit: Just noticed someone asked the same thing

1

u/Discordbothost 6h ago

Test the conversion on one literal before changing the whole column. Use 13/07/2026 if your source is day/month/year: it makes a swapped day/month mask obvious. Your original date is ambiguous, so a parse that succeeds could still produce the wrong date.

1

u/Ok_Housing6995 1h ago

Cast this as date and check the date format

0

u/According-Annual-586 9h ago

It’s a difficult error to decipher, I know, but it’s telling you that the date you’re passing into your function is in an invalid format

I’d probably start diagnosing from there