• Sushma R Iyer
  • NEWBIE
  • 5 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Hi All,

When a user is trying to create a Quote for an Opportunity then the below Error is displayed :

Apex trigger trg_QuoteLineItem has caused an unexpected exception. Contact your administrator: trg_QuoteLineItem: execution of AfterInsert caused by: System.ListException: Duplicate id in list: 0QL1E000004rJkSWAU: ()

Also since this code is not developed by me , I am unable to understand on whats causing the issue in the below Code :
 
trigger trg_QuoteLineItem on QuoteLineItem ( after insert, after update, after delete, before insert, before update ) {
    
    cls_trg_QuoteLineItem handler = new cls_trg_QuoteLineItem();
    
    if (trigger.isafter && trigger.isInsert) {
        system.debug('inside after insert');
      handler.removeWarrantyFromQuote( trigger.new );
    }
    
    if ( trigger.isAfter ) {
        
        if ( trigger.isInsert || trigger.isUpdate ) {
                    
            //Set Quote's 'QLI Rebate Names' and 'QLI_Conga_Template_ID_s_c' Process
            handler.updateQuoteFromQLIInsert(trigger.new);
            handler.updatePromotionListPrice(trigger.new);
        }
        
        if ( trigger.isDelete ){
            
            //Set Quote's 'QLI Rebate Names' and 'QLI_Conga_Template_ID_s_c' Process
            handler.updateQuoteFromQLIInsert(trigger.old);
        }
    } else if(trigger.Isbefore) {
        
        //handler.updatePromotionListPrice(trigger.new);
    }
}

Please Help...Thanks for All Help in Advance
Hi All,

While creating a Lead or while Editing an Account most of the users
are getting the below Error message :
User-added image
Hi All,

As mentioned in the below links to contact Salesforce Support , but we couldnt contact them as since we have a standard support contract and they support Apex issues only on premium support contract:

https://help.salesforce.com/articleView?id=000213851&type=1
https://success.salesforce.com/issues_view?id=a1p3A0000008g2NQAQ
https://success.salesforce.com/issues_view?id=a1p300000008YgIAAU 

Also I tried to implement the workaround suggested as in the below link but that gave me errors related to other classes so was unable to deploy it :

https://developer.salesforce.com/forums/?id=9060G000000MTVgQAO

So as a Temporary fix though its not recommended to Abort the Holding jobs we are aborting it for the users to carry on with their activities.

Hence if anyone have had the same situation kindly help me...!
Thanks in Advance...!

 
Hi All,

When a user is trying to create a Quote for an Opportunity then the below Error is displayed :

Apex trigger trg_QuoteLineItem has caused an unexpected exception. Contact your administrator: trg_QuoteLineItem: execution of AfterInsert caused by: System.ListException: Duplicate id in list: 0QL1E000004rJkSWAU: ()

Also since this code is not developed by me , I am unable to understand on whats causing the issue in the below Code :
 
trigger trg_QuoteLineItem on QuoteLineItem ( after insert, after update, after delete, before insert, before update ) {
    
    cls_trg_QuoteLineItem handler = new cls_trg_QuoteLineItem();
    
    if (trigger.isafter && trigger.isInsert) {
        system.debug('inside after insert');
      handler.removeWarrantyFromQuote( trigger.new );
    }
    
    if ( trigger.isAfter ) {
        
        if ( trigger.isInsert || trigger.isUpdate ) {
                    
            //Set Quote's 'QLI Rebate Names' and 'QLI_Conga_Template_ID_s_c' Process
            handler.updateQuoteFromQLIInsert(trigger.new);
            handler.updatePromotionListPrice(trigger.new);
        }
        
        if ( trigger.isDelete ){
            
            //Set Quote's 'QLI Rebate Names' and 'QLI_Conga_Template_ID_s_c' Process
            handler.updateQuoteFromQLIInsert(trigger.old);
        }
    } else if(trigger.Isbefore) {
        
        //handler.updatePromotionListPrice(trigger.new);
    }
}

Please Help...Thanks for All Help in Advance
Hi All,

While creating a Lead or while Editing an Account most of the users
are getting the below Error message :
User-added image
Hi All,

As mentioned in the below links to contact Salesforce Support , but we couldnt contact them as since we have a standard support contract and they support Apex issues only on premium support contract:

https://help.salesforce.com/articleView?id=000213851&type=1
https://success.salesforce.com/issues_view?id=a1p3A0000008g2NQAQ
https://success.salesforce.com/issues_view?id=a1p300000008YgIAAU 

Also I tried to implement the workaround suggested as in the below link but that gave me errors related to other classes so was unable to deploy it :

https://developer.salesforce.com/forums/?id=9060G000000MTVgQAO

So as a Temporary fix though its not recommended to Abort the Holding jobs we are aborting it for the users to carry on with their activities.

Hence if anyone have had the same situation kindly help me...!
Thanks in Advance...!