Excel: An unsupported SQL data type was encountered
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 42
- Joined: Wed Aug 31, 2011 2:56 am
- Location: St. Gallen - CH
- Contact:
Excel: An unsupported SQL data type was encountered
I got the same error as Sonia in this post and cannot find any workaround.
@Sonia, can you please put the solution you have found to solve this issue?
@Sonia, can you please put the solution you have found to solve this issue?
MGS
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 42
- Joined: Wed Aug 31, 2011 2:56 am
- Location: St. Gallen - CH
- Contact:
I'a currently using an ODBC Stage, but I get this error and I have tried to change the data type in the ODBC Stage but the problem remains.ray.wurlod wrote:It may be that you have an ODBC driver for Excel, even though Excel itself is not installed. In that case you can use an ODBC stage. ...
The full error is the following:
Ext2Excel..Transformer_1: |Ext2Excel..ODBC_0.DSLink2: DSD.BCIOpenW call to function SQLPrepare failed.
SELECT MESSAGETYPEID,MESSAGESEVERITY,MESSAGETEXT FROM `Tabelle1$`
SQLSTATE=S1004, DBMS.CODE=0
[DataStage][SQL Client]An unsupported SQL data type was encountered|
MGS
Yeah, forget Excel... right royal pita!
Do a table import of your ODBC DSN and use the definition it creates in your job.
While I would truly hope it isn't the cause, you could also try
Do a table import of your ODBC DSN and use the definition it creates in your job.
While I would truly hope it isn't the cause, you could also try
Code: Select all
SELECT `MESSAGETYPEID` FROM `Tabelle1$`
-
- Premium Member
- Posts: 42
- Joined: Wed Aug 31, 2011 2:56 am
- Location: St. Gallen - CH
- Contact:
I have done an ODBC Table Definition Import in DS and used in ODBC Stage to write to it, in oder to have an Excel file with the data from my Hash Table.
For what do you suggest a Select stmt when I want to Insert?
Anyhow can't get it work due to the Data Type errorHash_Table --> Transformer --> ODBC Stage (for Excel)
For what do you suggest a Select stmt when I want to Insert?
MGS
Not much really, we had to fiddle around a bit ourselves so can't be sure which bits were right. Did find it liked those funny quotes though (the one below the ~), just make sure the column names match the first row of the excel sheet (your Tabelle1 is the name of a sheet rather than a named section I assume?)
Re: Excel: An unsupported SQL data type was encountered
Try to check your odbc drive connection and if your execl may be correct, delete and try to do one more time.