+ Start a Discussion

Split CSV file



I am uploading a csv file in VF page.


I want to split the uploaded file into smaller parts and then parse.


Can anyone let me know how to split a file into smaller parts.


Thanks in Advance!!

Venkata Sowjanya




you would have to parse the data from the big csv and then create new csvs with the chunks of data.


My  CSV contains 50,000 records. If I parse 50,000 records are more at a time i will hit script statement error. 


so I want to split the file into smaller parts and parse seperately. this may overcome the governor limits.


Thanks & Regards

Venkata Sowjanya