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
RohiniHRohiniH 

parsing big xml file gives 'System.LimitException: Too many script statements: 200001'

Parsing big xml file gives

'System.LimitException: Too many script statements: 200001'

 

The xml file has around 2000 data, say 2000 contacts where each contact has around 20 fields data

 

<?xml version="1.0" encoding="UTF-8"?>
<Manifest>
  <ContactDetail>
     <UID>287284447</UID>
     <ExpiryDate>Jun 10 2015 12:00AM</ExpiryDate>
     <DOB>Aug 28 1957 12:00AM</DOB>
         20 such data fields
  </ContactDetail>
...

   2000 contact details
...

  <ContactDetail>

      ... 

  </ContactDetail>
</Manifest>