r/learnSQL • • 18h 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

2 Upvotes

11 comments sorted by

7

u/Imaginary__Bar 17h 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 17h 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 18h 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 17h ago

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

1

u/reditandfirgetit 42m ago

I doubt it. Thats a valid date format in sql server. If it is, it's potentially a false positive

1

u/atarivcs 16h 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 9h ago

?

Why to share tables names and columns?

1

u/rvicta 15h ago

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

Edit: Just noticed someone asked the same thing

1

u/Discordbothost 14h 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 9h ago

Cast this as date and check the date format

1

u/reditandfirgetit 43m ago

What function, what engine