Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF: How to handle null value while uploading csv file

Muhammad Shaheen AkhtarJan 31 2016 — edited Feb 1 2016

Dear All,

I am new in ADF and using 12.2.1. I am uploading data into database table using af:inputfile and CSVParser class. Data is uploading correctly in database when all columns are filled but whenever csv file has any null (blank) value in its column then CSVParser class didnot recognize it and get next columns value and set it to previous column. I also tried an other example which is using different class to upload date but not get success.

For Ex:

 

Id     Name     Dept

1     abc         Dept1

2     cde          Dept2

3                    Dept3

In above example first two line are perfectly inserted in table while in third line Id goes to ID column, because of Name column's value is null CSVParser class does not recognize it and put Dept3 into Name's column.

Please help how to handle this.

Thanks in advance.

Regards,

This post has been answered by Cvele_new_account on Feb 1 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 29 2016
Added on Jan 31 2016
7 comments
2,332 views