guruprem Posted September 16, 2017 Share Posted September 16, 2017 Hi,I am trying to read AMOUNT field from csv source. It is fetaching a as string, if I force the datatype , I am getting an error "Unable to get value for CSV feild AMOUNT of class java.lang.integer" ReagrdsGuruprem Link to comment Share on other sites More sharing options...
hozawa Posted September 17, 2017 Share Posted September 17, 2017 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 More sharing options...
guruprem Posted September 18, 2017 Author Share Posted September 18, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now