Jump to content
Changes to the Jaspersoft community edition download ×

Reading a feild as Number from CSV source


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I just set up  to data adapter to read Integer and Date from a csv file without problem.

In the data adapter, the columns are read in as a String. Change this in the report's Dataset the Query dialog.

The most problem I get when using csv is when I forget to skip the header row. Since header row is usually String values, if I don't skip this, it causes error.

To skip the header row, in the Data Adapter Wizard dialog, check "Skip the first line (the column names will be read from the first line)

Link to comment
Share on other sites

Dear Hozawa,

Thank you for coming to rescue. I skipped header row as mentioned by you. then changed Data format of AMOUNT from java.lang.String to java.lang.Integer then when I previewed I got same error as mentioned above i.e. "Unable to get value for CSV feild AMOUNT of class java.lang.integer"


Link to comment
Share on other sites

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...