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
PK S 5PK S 5 

Large XML file (>16 Mb) Parsing !!

I have an requirement for Large XML file (>16 Mb) Parsing.

Getting error :
Error uploading attachment:Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AttachmentManagmentTrigger: execution of AfterInsert caused by: System.StringException: String length exceeds maximum: 6000000 Class.parseXMLClass.loadXML: line 23, column 1 Trigger.AttachmentManagmentTrigger: line 6, column 1: []

At : String bodyContent = <ref>.body.toString();

Any help!!
Dilip_VDilip_V
PK,

Maximum size is 10MB
refer this links:
http://www.ceus-now.com/string-length-exceeds-maximum-6000000/
https://help.salesforce.com/apex/HTViewHelpDoc?id=collab_files_size_limits.htm


Thanks.