I am following this post to convert CSV and I am getting java.lang.OutOfMemoryError error when records are GT > 7k
.
CFTRY/CFCATCH
blocks are not able to catch this as this is an error not exception.
So, is there any way to catch this error inside the function from which caused this error rather than using onError
method of Application.cfc
?
I understand that we can increase heap
size.
Please help. Thanks in advance.