Platform / Salesforce Archive
performUnarchiveSdk fails with an uncatchable System.UnexpectedException when unarchiving a large volume of records (700+) in a single call
Summary
When you call performUnarchiveSdk (SF_Archive.ArchiverAccessor) to unarchive a large batch of records in one request, the Apex transaction can fail with System.UnexpectedException: Salesforce System Error. This happens once the filter matches roughly 700 or more records. At smaller volumes the same call works normally.
The error can't be caught with try/catch, so your code can't read the returned status code or result count. It also shows a different reference number on each run, which can make it look intermittent.
Important: the unarchive itself still completes. The matched records are restored on the Archive side even though the transaction returns this error. You can confirm the restore under Archive Activities. The problem is limited to the SDK call not returning a readable response at high volume, not to the unarchive failing.
Why it happens: the call resolves all matching records and starts the unarchive within a single request. At high volume, resolving the full set of matching records takes longer than the 30-second limit on that request, so the platform ends the transaction before a response comes back.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Deployed with 1 report
Nov 30, 2026