Testing HTTP Callouts from Async Apex throws "System.CalloutException"
Salesforce says this is fixed.
Summary
Testing HTTP Callouts from Async Apex fails after inserting a CollaborationGroup or SetUp objects like User , ContentVersion, and it throws "System.CalloutException"
Exception: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out. The error also depends on sObject, Class version, and org shape
Exception: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out. The error also depends on sObject, Class version, and org shape
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Deployed with 154 reports
Nov 30, 2026
Also open in Uncategorized
User Profiles and Permission Sets related to Pardot licensed orgs were modified by Salesforce
Solution ScheduledWorkaroundUncategorizedSpring '19Reported May 18, 20191,462 reports1,462reports
The import wizard fails with a generic error.
In ReviewWorkaroundUncategorizedReported Mar 4, 2013748 reports748reports
Case and Lead Notification Email is sent from Flow/Process regardless of settings
In ReviewWorkaroundUncategorizedSpring '16Reported May 11, 2016611 reports611reports
"This record was modified by..." your own user message after saving record in custom object related list
Solution ScheduledWorkaroundUncategorizedSummer '17Reported Jun 14, 2017601 reports601reports