Reading multiple spreadsheet using unstructured datastage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
parilango
Participant
Posts: 10
Joined: Thu Jun 23, 2016 8:36 am

Reading multiple spreadsheet using unstructured datastage

Post by parilango »

I am trying to read multiple spreadsheet using unstructured stage but I am getting an error."Unstructured_Data_0: An error occurred when reading the specified file" If I click view it is opening blank page

if I have single spreadsheet excel. It is reading fine. any set up is missing?

Please help
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How did you configure the stage? Anything like what is detailed here?
-craig

"You can never have too many knives" -- Logan Nine Fingers
parilango
Participant
Posts: 10
Joined: Thu Jun 23, 2016 8:36 am

Post by parilango »

Input File : FileName.xls

Range Option: Specify the start row
Range expression: Sheet1!A1:K23
Sheet names to skip: 'Sheet2','Sheet3'
Column header: First Row of data ranges

when I click load it is giving error "An error occurred when reading the specified file"
View is opening the empty excel sheet
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't work with this stage so not sure how much help I can be but... let's start by clarifying what you mean by "read multiple spreadsheet" and "single spreadsheet excel". Are you talking about reading multiple files or a single spreadsheet file and you need data from multiple worksheets within it?

FYI, the article was about the latter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

If you want to read multiple Excel files by using one unstructured stage, you need to use a wild card. So if you have files like this:

File1.xls
File2.xls
File3.xls

you need to put:

File*.xls

in the "File name" box after clicking the Configure button. In that case, you also need to check "Use template file for design time" and specify a "Template file name:". All the files need to be just like the template file in structure.
Post Reply