• 22Mel22
  • 0 Points
  • Member since 2010

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2

We set up a new account trigger in salesforce today for our parature integration and received this error on the opportunity record changing a record type and then pressing save this error appeared.


There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger UpdateContact caused an unexpected exception, contact your administrator: UpdateContact: execution of AfterUpdate caused by: System.Exception: Too many DML rows: 112: Trigger.UpdateContact: line 11, column 13".

Click here to return to the previous page.


Account apex trigger

BodyDownload Apex
trigger UpdateContact on Account (after insert, after update)

    for (Account account : Trigger.new)
        List<Contact> contacts = new List<Contact>();
        contacts = [SELECT Id FROM Contact WHERE AccountId = :account.ID];
        for(Contact c: contacts)
            update contacts;

How can we fix this? Also strange happening on changing opportunity record type and saving.

  • September 15, 2009
  • Like
  • 0
Hi folks,

My client wants to send efax within salesforce.com's interface. I know some efax services providers. But none of them provide sales force integration. Does any one know a efax servise provides SF.com integration? does SF.com provide this service?