Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem importing Excel strings

Hi,
this problem has frustrated me for a few days so I am asking for your help.
I have a Excel spreadsheet that I am importing using a tFileInputExcel. I am importing the cells of the spreadsheet as string and floats. The columns import fine until column 61, which is imported as a string (I am actually not interested in this column - I ignore the contents). On the reject output of the tFileInputExcel component I get the error:
For input string: ""$"0" - Line: 1 column: BBTotalCredit_ (No. 61)
I get this error for all subsequent rows for column 61.
I should note that I get this spreadsheet each month and every one has the same problem and I don't want to ask them to change the format.

Below is a screenshot of the troublesome Excel column and the Excel metadata for column 61. Any ideas? Is there a way I could ignore this column?
Thanks,
David
Labels (3)
12 Replies
janhess
Creator II
Creator II

Should that column not be a float as well?
Anonymous
Not applicable
Author

I cant' reproduce this. Can you post a screenshot of your tFileINputExcel component configuration + advanced options too + a sample of the Excel file ?
Anonymous
Not applicable
Author

Thanks and a good suggestion.
I have tried float and int types in desperation. All of these come up with errors.
I don't need this column and ideally I would not import this troublesome column (and there may be a way to do this but i don't know how).
Thanks for the idea and i will try any ideas.
David
Anonymous
Not applicable
Author

Hi David
What version of Talend are you using?
is this a ".xls" or ".xlsx" spreadsheet?
Have you changed any advanced settings in this tFileInputExcel component?
Regards,
Brandon
Anonymous
Not applicable
Author

Wow, I am overwhelmed by everyone's enthusiasm to help a friend in need!
It is an .xls version Excel sheet and I am using Talend 5.1.1
Below are screenshots of the tFIleInputExcel component. I can send someone a sample spreadsheet, but i don't know how to send via the forum.
Thanks again.
Anonymous
Not applicable
Author

Hi David
I can't seem to reproduce the error,
could you upload that file with fake data onto a file hosting site and give us the download url
Regards,
Brandon
janhess
Creator II
Creator II

According to your image column 61 is PBBCredit$. The error relates to BBTotalCredit_ .
can you show the data that is in BBTotalCredit_ and which column is it?
Anonymous
Not applicable
Author

Hi Janhess,
Sorry I gave you a screenshot of column 50 of the sheet that I incorrectly labeled 61 (there are 121 columns in total).
Below is a screenshot of the correct (troublesome) column 61.
Anonymous
Not applicable
Author

Hi david
I can reproduce the problem if I read that column as type float:
||For input string: "$0" - Line: 0 column: test (No. 61)
||For input string: "$0" - Line: 1 column: test (No. 61)
||For input string: "$0" - Line: 2 column: test (No. 61)
make sure this column is set as String in the metadata
Regards,
Brandon