title: System.FinalException: SObject row does not allow errors
body: <p>The below code snippet is in Opportunity afterUpdate trigger. I am trying to update the accounts of those affected opportunities and after getting DMLException, the code enters catch block and I get </p>
  
  <blockquote>
    <p>'System.FinalException: SObject row does not allow errors' at row  a.Id.addError(de.getMessage());</p>
  </blockquote>
  
  <p>Please let me know what is wrong with the line a.Id.addError(de.getMessage());</p>
  
  <pre><code>if (acctLst.size() &gt; 0) {
     try{
         update acctLst;
     } catch(Exception de) {
         for (Account a : acctLst) {
             a.Id.addError(de.getMessage());
         }
     }
  } 
  </code></pre>