Jump to content
We've recently updated our Privacy Statement, available here ×

Converting an excel file to a CSV file: error


rdoe

Recommended Posts

Hi,

I'm new to this, and I think I have a simple question...

I am trying to convert an excel file to csv file. When I'm running I get the error like this...

 

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type
    jxl cannot be resolved
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type
    jxl cannot be resolved to a type

    at talenddemosjava.abc123_0_1.Abc123.tFileInputExcel_1Process(Abc123.java:330)
    at talenddemosjava.abc123_0_1.Abc123.runJobInTOS(Abc123.java:598)
    at talenddemosjava.abc123_0_1.Abc123.main(Abc123.java:511)
Job Abc123 ended at 11:19 21/11/2008. [exit code=1]

 

Please advise

 

Thanks,

Rendell

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Stas,

In code I'm gettin this error:

 

java.util.List<jxl.Sheet> sheetList_tFileInputExcel_1 = new java.util.ArrayList<jxl.Sheet>();
jxl.Sheet sh_tFileInputExcel_1 = null;

 

Also in designer there are messages:


-no schema difined yet and
-parameter (sheet list) must have atleast one value

 

Thanks

Link to comment
Share on other sites

You have to define a schema for your tFileInputExcel component. You need as much columns in this schema as the number of columns you want to retrieve from the xls file.

You also have to define which sheet of your excel file you will retrieve the datas from ("Sheet List" option)

Connect the tFileInputExcel to tFileOutputDelimited and that should be ok.

You may want to read the user documentation if you need further information.

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...