cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Importing data into Excel from Databricks over ODBC OAuth / Simba Spark Driver

Michael_Galli
Contributor III

Hi all,
I am refering to this article
Connect to Azure Databricks from Microsoft Excel - Azure Databricks | Microsoft Learn

I use the latest SimbaSparkODBC-2.8.2.1013-Windows-64bit driver and configured in like in that documentation.
In Databricks I use a Serverless Warehouse (Current, v 2024.25)
I use Windows 11, Excel version 2403

Now when filtering data in Excel - Power query on that warehouse, in the Databricks query history I get the following error:

[UNBOUND_SQL_PARAMETER] Found the unbound parameter: _753. Please, fix `args` and provide a mapping of the parameter to either a SQL literal or collection constructor functions such as `map()`, `array()`, `struct()`. SQLSTATE: 42P02; line 36 pos 18

The query looks like this -> note the "?"

select
  `COLUMN1`,
from
  `catalog`.`schema`.`table`
where
  `PERIOD` = ?  and `PERIOD` is not null

Any idea on how to fix this?

1 ACCEPTED SOLUTION

Accepted Solutions

@Michael_Galli, MSFT team should evaluate, if they can resolve the issue they will. If determined to be a Databricks/Simba issue, Databricks team will get involved.

https://azure.microsoft.com/en-us/support/create-ticket

Best regards,

Raphael Balogo
Sr. Technical Solutions Engineer
Databricks

View solution in original post

5 REPLIES 5

raphaelblg
Databricks Employee
Databricks Employee

Hi @Michael_Galli, I've never seen this scenario before. Given the fact you're using a MSFT tech stack I'd recommend opening a support ticket with MSFT. 

Best regards,

Raphael Balogo
Sr. Technical Solutions Engineer
Databricks

Michael_Galli
Contributor III

Can you provide a link please?

@Michael_Galli, MSFT team should evaluate, if they can resolve the issue they will. If determined to be a Databricks/Simba issue, Databricks team will get involved.

https://azure.microsoft.com/en-us/support/create-ticket

Best regards,

Raphael Balogo
Sr. Technical Solutions Engineer
Databricks

Aydin
New Contributor II

Hi @Michael_Galli, we're currently experiencing the same issue. I've just asked our internal support team to raise a ticket with Microsoft but thought it would be worth reaching out to you. Have you had any luck resolving this issue?

Here is the resolution I got from Databricks support:
"The reason they changed the default value of EnableNativeParameterizedQuery to 0 in v2.8 is that Databricks DBSQL server does not support Prepare when using native parameterized queries, so SQLPrepare will have a regression if the Native parameterized query is turned on by default and used by Power BI. The PG team also noticed that youโ€™ve also turned on the UseNativeQuery. If you can turn off this (set UseNativeQuery=0), then it should also fix the issue even if they do not set EnableNativeParameterizedQuery=1 . Please note EnableNativeParameterizedQuery=1 was enabled in v2.7.3, before that, the query will also break if UseNativeQuery=1 "
hope this helps..

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group