on 07-05-2011 9:08 AM
Dear All,
We are facing a problem in loading Excel files when we are trying to load from Excel File Format.
Here is a sample input which we are giving.
1327334
65767502
66674783
This is going through excel files. I have about 100 excel files to be loaded everyday. And this was working fine when my DS was installed on WINDOWS environment.
But when we shift to UNIX. The output of this file format comes as :
1327334.0
6.5767502E7
6.6674783E7
I have no clue currently why is it happening and how to correct it.
I cant change for everyfile so a standard solution is what i am looking for. If i change to .csv , this works fine, but i cant change my 100 files to CSV as there are some complications in it.
I am on Data Services 3.2.
Kindly suggest.
DS uses different methods for reading from excel on windows and Unix so problem could be with the Unix interface
what is the datatype of the column after its imported in DS ? double or varchar(255) ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sometimes this issue can also be caused due to th transfer mechanism - Excel files are usually transferred using Binary method ... can yu check this ..?
I am no expert in Data Integration - I am more of SAP BW - but we have had similar issues when transferring files in Binary mode as opposed to ASCII mode which causes variations...
in the xls file attached to case the first column has first few rows with numeric data and rest with character data
when you import an excel the datatype is determined from the first 8 or 10 rows in this case the datatype of the column will be imported as double, not sure how it got imported as varchar(255) for you, did you change it after import ?
with datatype as double the columns with character data will not be read or will be read the value as NULL
anyways I didn't see any mismatch in data when reading it from windows or Linux (didn't try on other Unix, should be same since the interface is same)
I moved the character rows to the begining, and created a new excel format in DS, the datatype is imported as VARCHAR(255) by default and in both winodws and Linux I can read all the rows, no data mis-match
let me work with support on this
I am able to reproduce the issue, I see the problem if excel column has numeric data, the column datatype in DS when importing this excel is double and after importing the excel the datatype is changed to varchar(255)
I see problem only for the numeric data that has 8 digits, in the M1.xls if you remove 1 digit from the rest of the rows the data is read correctly, if you see, only the first row is read correctly which has only 7 digits
not sure if the problem is OS Specific with converting a double to varchar or Excel Adapter specifc, I will have to debug this
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.