Welcome to the Alteryx Knowledge Base

Error: "SQLPrepare: [Simba][Hardy] (80) Syntax or semantic analysis" thrown in server while executing query: Invalid column reference
user

Created/Edited - 4/24/2026 by Henriette Haigh | Alteryx

Summary
When trying to read data from Hive, the error: "SQLPrepare: [Simba][Hardy] (80) Syntax or semantic analysis" is thrown in the server while executing a query.
Description
User is getting the following error while reading data from Hadoop Hive using the Input tool or streaming it out using the In-DB Data Stream Out tool: 
Input Data (1)	Error SQLPrepare: [Simba][Hardy] (80) Syntax or semantic analysis error thrown in server while executing query. Error message from server: Error while compiling statement: FAILED: SemanticException [Error 10002]: Line 1:33 Invalid column reference 'a.storenum' 

Alternatively, user is getting the following error trying to write to Hadoop Hive with the Output tool:
Output Data (2)    Unable to find field "test" in output record.


In the Visual Query Builder, the column names are prefaced by an 'a': 
2023-12-29_14-39-48.png


In the Output tool, you can see the table name precede the column name in the field map:
2023-12-29_14-41-33.png



In the Select In-DB tool, the table name is part of the column name in the format tablename.columname: 
2023-12-29_14-41-56.png
 
Environment
 
  • Alteryx Designer
    • All versions
  • Simba Hive ODBC Driver with DSN configured
    • Version 2.6 or greater
Cause

Simba introduced a new feature in their driver that ensures that all column names are unique when reading in data. This feature is resulting in Alteryx not being able to recognize column names.

Resolution

Note
The below resolutions apply only if the error appears in the context of this change to the column names. 

Solution A: Use Select * [...] in the query

  1. In the Alteryx workflow, open the Input tool that is throwing the error.
  2. Go to the SQL Editor tab.
  3. Remove references to individual columns from the query and use the wildcard asterisk (*) instead to read in all columns in the table. 2023-12-29_14-42-14.png

 

Solution B: Add a Server Side Property to the DSN

Note: This is not a global setting, it is set for each DSN, individually. 
  1. Go to the Windows ODBC Data Source Administrator
  2. Open the DSN that is being used to connect for editing
  3. Click on Advanced Options
  4. Click on Server Side Properties
  5. Add the property 
    hive.resultset.use.unique.column.names=false

      2023-12-29_14-42-38.png
 
6. Hit OK on all the windows to save the changes

 

Solution C: Add a Server Side Property to the Driver Configuration

Note: This is a global setting, it will apply to ALL DSNs using the driver. 

  1. Browse to the install folder for the Simba Hive ODBC driver. The default location is C:\Program Files\Simba Hive ODBC Driver
  2. Open the /lib folder inside the install folder 
  3. Double-click DriverConfiguration64.exe to open the driver configuration dialog
  4. Click on Advanced Options
  5. Click on Server Side Properties
  6. Add the property 
hive.resultset.use.unique.column.names=false
2023-12-29_14-42-55.png
7. Hit OK on all the windows to save the changes

Solution D: Add a Connection String parameter

  1. In the Alteryx workflow, open the tool (Input or Output) that is throwing the error.
  2. Add the following parameter to the connection string to turn off unique column names:
EnableUniqueColumnName=0;
 
2023-12-29_15-03-19.png
 
 
 
Was this article helpful?