Hi
I can successfully run the codes and get results if I run the query directly in MicroSoft SQL Server. In Alteryx, in SQL editor I would get a success test message " A successful connection was made and no errors were found parsing the query" and get an error message
"Error: Input Data (1): Error SQLExecute: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services." once I run the workflow.
Does anyone know how to fix this or know the possible reasons for this error? Thanks.
Solved! Go to Solution.
Some things to check:
I'm not sure what the issue is, as I have no idea what you're doing/running, but the error seems to be something that the driver needs for the query.
The query works in the native SQL driver environment and it's not complicated, which are with an inner join of two tables stored in the same server.
When you say it's something the driver needs for the query, is it something I can fix in Alteryx setup or it's something IT need to check from SQL server side?
Thanks.
If it works in Alteryx using the Native SQL driver, then it must be something on the ODBC Driver. v17 is not outdated and so I'm not sure what it could be, maybe an SSL config on the SQL server or something as I believe there's been updates that the v18 driver handles. I'm far from an expert on that though and tend to stay away from networking issues when I can.
I would flick over to the Native Driver (either Quick Connect or OleDB) for now, and log a ticket with your IT explaining the difference in being able to execute. They may have some advice on the ODBC Driver working. The only thing you could really do I think is update to v18 of the ODBC Driver.
Here's some Stack Overflow comments on this: