• Arthur Simons
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

We are a University that uses Interactions for Student Recruitment to process new inquiries and applications into the system. The purpose is to create the appropriate Opportunity associated with the contact based on which division they are applying to. However, we are finding that there are a lot of Interactions that get "stuck" with an audit required and they always have the same error. This is the error:

"Reason: Error during Lead conversion - There was an error converting the lead. Please resolve the following error and try again:
sf4twitter.LeadConvertedTrigger: execution of AfterUpdate

caused by: System.DmlException: Update failed. First exception on row 0 with id 0033r00003lnaTaAAI; first error: UNKNOWN_EXCEPTION, java.lang.NullPointerException: []

Trigger.sf4twitter.LeadConvertedTrigger: line 38, column 1. Reason: Interaction has an Opportunity Key, but could not find associated Opportunity in the system. Please verify that the Opportunity Key is valid."

I looked into the trigger that is mentioned and it seems to be from an old outdated managed package, Salesforce for Twitter. I have reached out to Salesforce support to see if removing the package would clear this error, but they said I'd have to reach out to the package owner, which I believe Salesforce is? Anyone ever seen this before?
I have an object as teacher_student__c .Whenever a student is linked to a teacher, check whether the student already has a teacher with same subject assigned to him/her and if already exists, then throw an error 'A teacher is already assigned to this student for the subject.

<apex:page controller="List_Example_2">
    <apex:form>
    <apex:pageblock title="Student" id="fm"    >
        
         
            <apex:pageblockbuttons location="top">
                <apex:commandbutton value="Add" action="{!Addme}" reRender="fm"/>
                <apex:commandbutton value="Clear" action="{!Clearme}" reRender="fm"/>
            </apex:pageblockbuttons>
       
        
        
                    <apex:pageblocksection columns="1">
                        <apex:inputtext value="{!stud.LastName__c}"/>
                        <apex:inputtext value="{!stud.FirstName__c}"/>
                        <apex:inputtext value="{!stud.Phone__c}"/>
                        <apex:inputtext value="{!stud.City__c}"/>
                        <apex:inputtext value="{!stud.Email__c}"/>
                    </apex:pageblocksection>
        
                     <apex:pageblocksection columns="1" rendered="{!Student__c.size>0}">
                     <apex:pageblocktable value="{!Student__c}" var="a">
                         <apex:column value="{!a.LastName__c}"/>
                         <apex:column value="{!a.FirstName__c}"/>
                         <apex:column value="{!a.Phone__c}"/>
                         <apex:column value="{!a.City__c}"/>
                         <apex:column value="{!a.Email__c}"/>
                     </apex:pageblocktable>   
                     </apex:pageblocksection>
              
        </apex:pageblock>
    </apex:form>
</apex:page>