function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

CSV file upload Limitations

Hi All,

Am uploading CSV file that contain around 4 MB ,but am not to upload into salesforce its showing me error " System.LimitException: Regex too complicated "

I read in Salesforce limitation pdf its saying we can upload upto 10 MB,but my file is failing does any one what is the reason ?
Can any one tell me how can i rectify with out going batch apex class,
how the salesforce will calculate Heapsize ?

I don't think you're getting this error because of the file size. It looks like you may have an Apex trigger that is using regex on some of the strings in the records you are uploading. Regex could cause you to reach the heap limit either because the string is too long or the regex itself is too complex. 

This post also seems to address this issue: (" target="_blank)