• Megan Hairston 7
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Error:Apex trigger OpportunityTrigger caused an unexpected exception, contact your administrator: OpportunityTrigger: System.LimitException: Too many SOQL queries: 101


Opportunity Trigger:
trigger OpportunityTrigger on Opportunity (before update, after update) 
{
  if(GenericServices.getGeneralSettingValueForKey(Constants.OPPORTUNITY_TRIGGER_KEY) == '1')
    {
      if(Trigger.isBefore)
      {
          OpportunityServices.copyChangeOrderOLIsToParentOpportunity(Trigger.newMap, Trigger.oldMap);
          OpportunityServices.updateChildAssetsWithDataFromOpenAir(Trigger.newMap, Trigger.oldMap);
      }
      else
      {
          OpportunityServices.createUpdateAssets(Trigger.newMap, Trigger.oldMap);
      }
    }
}


As a brand new SFDC Admin, I am having a hard time knowing why just this one opportunity is causing the error.  Any thoughts?
Hello, 

Over the past month my Salesforce org has been having Marketo/Saleforce duplicate lead sync problem. For certian leads at random times an action/trigger is duplicating leads as many as 15 times that getting synced over from Marketo. I was able to monitor the action that was setting off the duplicates (Screen shot below).  Has anyone ever had this problem before? If so, how can I stop this from happening? 

What is really strange ....is Salesforce seems to be reading the leads as web to lead. 


Please see action in the screenshot below:

User-added image