Facing Error while reading Excel file through ODBC connector

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
atul9806
Participant
Posts: 96
Joined: Tue Mar 06, 2012 6:12 am
Location: Pune
Contact:

Facing Error while reading Excel file through ODBC connector

Post by atul9806 »

Hi All
I know this is a repeating question but I didn't find the answer so asking again

I am facing the issue while writing the SQL statement to fetch the data from the ODBC connection.
I am confused with the table name of that xls sheet. I imported the data with the system tables. while importing the metadata I can see the data of xls in view tab but unable to read file in stage.

When I tried to build a query to read the data, it shows the table name as
"DSUNKNOWN.sheet1$" but after writing the query when I validating it with view data, its not working :'(

Please help
~Atul Singh
<a href=http://www.datagenx.net>DataGenX</a> | <a href=https://www.linkedin.com/in/atulsinghds>LinkedIn</a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How are you building the query? Can you try using generated SQL, where you enter the table name manually? If you use the SQL Builder, make very sure that you include the step of adding the table name.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
atul9806
Participant
Posts: 96
Joined: Tue Mar 06, 2012 6:12 am
Location: Pune
Contact:

Post by atul9806 »

Hi Ray
I am not able to see what you written here. It is saying its a premium content.

But As I got, Yes, I build the query with SQL builder given in stage.
~Atul Singh
<a href=http://www.datagenx.net>DataGenX</a> | <a href=https://www.linkedin.com/in/atulsinghds>LinkedIn</a>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

atul9806 wrote:I am not able to see what you written here. It is saying its a premium content.
Been that way for a long time here.

memberbenefits/

They don't come any more premium than Ray. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
dave239
Participant
Posts: 1
Joined: Wed Oct 10, 2012 1:11 pm

Post by dave239 »

Problem with reading excel file must be corruption I would suggest you following utility for opening files http://www.recoverytoolbox.com/repair_excel.html
Post Reply