You need to sign in to do that
Don't have an account?
irfan aziz
How to split the retrieved data into multiple files in bulk api?
Hi
I managed to run the example code shared here but since my account table in SF has more than 1 million rows and i am extracting all the columns. When tried to run the extraction at 619000 rows giving the heap space error. how can i split the result into multiple files? I expected the program will do the split as bulk is meant to do so but in the given code it did not.
Any idea?
I managed to run the example code shared here but since my account table in SF has more than 1 million rows and i am extracting all the columns. When tried to run the extraction at 619000 rows giving the heap space error. how can i split the result into multiple files? I expected the program will do the split as bulk is meant to do so but in the given code it did not.
Any idea?
Assuming that you want to split large queries into multiple batches using bulk API.
- So as soon as u will get a CSV file out there the second task is to parse this first CSV file(considering 2-3 more files are in queue) queue the salesforce in batches.
- So your second requirement will get fulfilled with the help of the function available here:-http://boards.developerforce.com/t5/Apex-Code-Development/Batch-Insert-of-Records-in-CSV-file/td-p/131413
This function will parallelly start your procedure. and a combination of two fulfill your task completelyHope the information helps.
Regards,
Nagendra.