• saurabhgpt
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi

 

I have written two triggers on QuoteLineItem and OpportunityLineItem named update_term and  UpdateOppTerms respectively.

I have to establish a synch functionality between  QuoteLineItem and OpportunityLineItem for a custom field of Picklist type called Term__C.

The trigger works fine for Before insert but gives exception on Before update event

Actually when i update a QuoteLineItem then trigger on QuoteLineItem for before update fires which updates the OpportunityLineItem

Since there is a similar trigger on OpportunityLineItem for before update which has to update QuoteLineItem

therefore an exception for recursive update occurs :?

 

Apex trigger UpdateOppTerms caused an unexpected exception, contact your administrator: UpdateOppTerms: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id 0QLR00000008PQEOA2; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, update_term: execution of BeforeUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id 00kR0000004UBovIAG; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, UpdateOppTerms: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id 0QLR00000008PQEOA2; first error: SELF_REFERENCE_FROM_TRIGGER, Object (id = 0QLR00000008PQE) is currently in trigger update_term, therefore it cannot recursively update itself: [] Trigger.UpdateOppTerms: line 52, column 4: [] Trigger.update_term: line 55, column 5: []: Trigger.UpdateOppTerms: line 52, column 4  

 

How can i resolve this issue for recursive update ? can anyone help?

 

Hi all,

I have to create a site in a developer org

In this developer org there is one site already present & when i create a site i got the following error :

 

Site creation failed: You have exceeded the number of licenses for your organization. You must first acquire a new license to create a new site.

 

Is there any limitation on number of sites we can create in developer org? IF yes,How can i exceed it?

Can anyone help me on this.

Hi,

 

 

 I need to update Contact custom field every time mass email is sent. I found out that a new Task is created in this case and developed a special trigger which runs after Task insert or update.

Everything works smoothly if I insert or update Task manually. But trigger doesn't fire when a Task is created authomatically using Mass Email delivery.

 

Any help would be most appreciated.