Activity Forums Salesforce® Discussions What sort of error is "System.CalloutException"

  • What sort of error is "System.CalloutException"

    Posted by Anurag on September 5, 2018 at 12:11 pm

    What sort of error is "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out"

    shradha jain replied 5 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • shradha jain

    Member
    September 5, 2018 at 12:47 pm

    Hello Anurag,

    “System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out” occurs when you first perfrom callout and then DML in same transaction.

    To resolve this issue you need to perform DML in future method so your callout and DML will be in different transaction.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos