• Kunal Ghosh
  • NEWBIE
  • 4 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
Hi,
There is HTTP response data limit in continuation framework which 1 MB. Can we increase that limit??

or what is the alternate way to get more than 1 MB data...Future HTTP call????

Thanks for your time & response
Hi,

I am using Messaging.SingleEmailMessage to send mail. I want to set more than one mail id in setReplyTo. Is it possible????
Currently setReplyTo takes string means I can set only one email id.

Thanks in advance for your help.
Hi,
I have a requirement where I need to populate "reply to" field in the email client from url I have created. Currently this url is having TO, CC, BCC, Subject, email body field. 

My question is can I add the reply to field in the same url or I need to move my code to Apex to set all the values

Thanks in advance for your help.

Regards,
Kunal
 
Hi guys, 
I run into the following issue.

1) I tried to move a new custom object from Sandbox to Production using the change sets
2) When validating I got 2 errors with two of Triggers that don't belong to this object.
3) Read online that the solution is to disable the triggers in Production (I did this by disabling them in sandbox, transferring them to Production using change sets)
4) Did this and with no problem the new custom object passed the test and I was able to deploy it in production
5) As a next step I wanted to activate the triggers in Production so I went to sandbox, activated them, put them in a change set and tried to move them.
Unfortunately when I try to deploy them they don't pass the validation test. 

Before deactivating them the triggers worked perfectly and I didn't touch any of the code.

Here are the errors I am getting:

Class Name: datafloTriggerTest DemoRequestTriggerTest
Method Name: datafloTriggerTest DemoRequestTriggerTest
Error Message: System.DmlException: Upsert failed. First exception on row 0 with id a1n12000000UDgCAAW; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, DemoRequestTrigger: execution of BeforeUpdate caused by: System.DmlException: Delete failed. First exception on row 0 with id 00T1200001lvs5vEAA; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Not allowed to Delete Tasks. Please Contact an Admin to Delete.: [] Trigger.DemoRequestTrigger: line 438, column 1: [] 
Stack Trace: Class.datafloTriggerTest.DemoRequestTriggerTest: line 308, column 1

Class Name: datafloTriggerTest
Method Name: taskDeleteTriggerTest
Error Message: datafloTriggerTest taskDeleteTriggerTest System.DmlException: Delete failed. First exception on row 0 with id 00T1200001lvs5wEAA; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Not allowed to Delete Tasks. Please Contact an Admin to Delete.: [] 
Stack Trace: Class.datafloTriggerTest.taskDeleteTriggerTest: line 193, column 1

Here is one of the Apex trigger code (datafloTriggerTest). It doesn't allow users from deleting Activities after recorded on the Contact object:

1 trigger TaskTrigger on Task (before delete, before insert) 
2{
3//** Before Insert Trigger **************************************************************//
4   if ((trigger.isBefore) && (trigger.isInsert))
5   {
6       for (Task t : trigger.new)
7        {
8            if (t.Type=='Call')
9            {
10                t.Type='Auto Dialer Call';
11            }
12            // Marketo User
13            if (t.CreatedById=='005A0000001Nrgm')
14            {
15                t.Type='Marketing';
16            }
17        }
18    }   
19    
20//** Before Delete Trigger **************************************************************//
21    if ((trigger.isBefore) && (trigger.isDelete))
22    {
23        Profile myProfile;
24        try
25        {
26            myProfile = [SELECT Id,Name
27                        FROM Profile WHERE Id=:UserInfo.getProfileId()];
28        }catch (Exception E){myProfile = new Profile();}
29        
30        for (Task t : trigger.old)
31        {
32            // Non Sys-Admins not allowed to Delete
33            if (myProfile.Name!='System Administrator')
34            {
35                t.addError('Not allowed to Delete Tasks.  Please Contact an Admin to Delete.');
36          }
37        }
38    }
39}
Hi,

How to write test class for below class.


public with sharing class JSS_JobSearch{
    public Integer pageSize = 200;
    public Integer pageNumber = 0;
    public String Id {get; set;}
    public Opportunity opportunityID {get; set;}
    public List<Job_Search__c> jobSearchB {get;set;}
    public List<Job_Search__c> jobSearchA {get;set;}
    public List<Open_Job__c> OpenJobsTop{get;set;}
    public List<Open_Job__c> OpenJobsTop2{get;set;}
    public Job_Search__c jobsearch{get; set;}
    public Map<String,Boolean> JobMap = new Map<String,Boolean>();
    public List<Job_Search__c> OpenJobstest{get;set;}
    public Boolean nextBool {get;set;}
    public Boolean prevBool {get;set;}
    public integer Openjobscount {get;set;}
    public integer Openjobscount2 {get;set;}
    public integer jobSearchcount {get;set;}
    public String openjobsId {get; set;}
    public integer count{get;set;}
    public List<Open_Job__c> OpenJobsList{get;set;}
    public String jSSSubIndustry{get;set;}
    public JSS_JobSearch(){
        This.id = Apexpages.currentpage().getparameters().get('id');
    }
    
    public void search(){
    jSSSubIndustry ='';
        OpportunityID = [Select id,name,JSS_Countries__c,JSS_Industry__c,Sub_Industry__c from Opportunity where id =:id]; 
        Boolean baddata = False;
        Boolean Sponsors = False;
        jobSearchA = new List<Job_Search__c>();
        jobSearchB = new List<Job_Search__c>();
        String  jSSCountry = opportunityID.JSS_Countries__c;
        String jSSIndustry = opportunityID.JSS_Industry__c;
        jSSSubIndustry = opportunityID.Sub_Industry__c;
        String baseQuery='Select id,name,Check__c,Email_Send__c ,Email_Bounced_Back__c,LastModifiedBy.LastName,Dummy_Job_Link__c,LastModifiedDate,Sub_Industry_oj__c,Country__c,Expiry_Date__c,Occupation__r.name,Job_captured_date__c,Job_Link__c,Province__c,Industry__c,CreatedBy.Name from Open_Job__c where ';
     
        if(jSSSubIndustry != null)
        {
            system.debug('has value in sub'+jSSSubIndustry);
            baseQuery +='Country__c =: jSSCountry and Industry__c =: jSsIndustry and Sub_Industry_oj__c =: jSSSubIndustry and Email_Bounced_Back__c =:baddata and Expiry_Date__c >= Today order by Expiry_Date__c ASC';
        }else
        {
            system.debug('does not have value in sub');
            baseQuery +='Country__c =: jSSCountry and Industry__c =: jSsIndustry  and Email_Bounced_Back__c =:baddata and Expiry_Date__c >= Today order by Expiry_Date__c ASC';
        }
      
        jobSearchB = [Select id,name,Country__c,Industry__c,Dummy_Job_Link_JS__c,LastModifiedBy.LastName,LastModifiedDate,Job_Link__c,Occupation__r.name,Opportunity__c,Province__c from Job_Search__c where Opportunity__c =: Id order by CreatedDate ASC];
        Boolean baddatas = True;
      
        OpenJobsList = [Select id,name,Check__c,Email_Send__c ,LastModifiedBy.LastName,LastModifiedDate,Country__c,Expiry_Date__c,Occupation__r.name,Job_captured_date__c,Job_Link__c,Province__c,Industry__c,Sub_Industry_oj__c,CreatedBy.Name from Open_Job__c where Country__c =: jSSCountry and Industry__c =: jSsIndustry and Sub_Industry_oj__c =: jSSSubIndustry and Expiry_Date__c >= Today order by Expiry_Date__c ASC];
        Integer offset = pageNumber * pageSize;
        String query = baseQuery + ' LIMIT '+pageSize +' OFFSET '+ offset;
        String query2 = baseQuery;
        OpenJobsTop = Database.query(query);
       OpenJobsTop2 = Database.query(query);
        Openjobscount = OpenJobsList.Size();
        Openjobscount2= OpenJobsTop2.Size();
        jobSearchcount = jobSearchB.size();
      
        for(Open_Job__c opens: OpenJobsTop){
            for(Job_Search__c jobs: jobSearchB){
                //jobs.Dummy_Job_Link_JS__c = opens.Dummy_Job_Link__c;
                system.debug('!!!!!!!!!!!!!!!!'+jobs.Dummy_Job_Link_JS__c);
                if(opens.Dummy_Job_Link__c == jobs.Dummy_Job_Link_JS__c){
                    system.debug('@@@@@@@@@@@@@@@'+opens.name);
                    system.debug('@@@@@@@@@@@@@@@'+jobs.Name);
                    system.debug('0000000000000'+opens.Dummy_Job_Link__c);
                    system.debug('0000000000000'+jobs.Dummy_Job_Link_JS__c);
                    opens.check__c = True;
                }
            }
        }
        OpenJobstest = jobSearchB;
    }
   
    public Pagereference commits(){
        jobSearchA = new List<Job_Search__c>();
        for(Job_Search__c jobss:jobSearchB){
            JobMap.put(jobss.Dummy_Job_Link_JS__c,True);
        }
        for(Open_Job__c FinalJobs: OpenJobsTop){
            jobsearch = new Job_Search__c();
            if(JobMap.get(FinalJobs.Dummy_Job_Link__c) != True){
                if(FinalJobs.check__c == True){
                    jobSearch.Name = FinalJobs.Name;
                    jobSearch.Country__c = FinalJobs.Country__c;
                    jobSearch.Industry__c = FinalJobs.Industry__c;
                 
                    if(jSSSubIndustry != null)
                    {
                        jobSearch.Sub_Industry_jss__c = FinalJobs.Sub_Industry_oj__c;
                    }                       
                   
                    jobSearch.Job_Link__c = FinalJobs.Job_Link__c;
                    jobSearch.Dummy_Job_Link_JS__c  = FinalJobs.Dummy_Job_Link__c;
                    jobSearch.Occupation__c = FinalJobs.Occupation__c;
                    jobSearch.Province__c = FinalJobs.Province__c;
                    jobSearch.Record_Id__c = FinalJobs.id +' '+ opportunityID.id;
                    jobSearch.opportunity__c = opportunityID.id;
                    jobSearch.Status__c = 'Completed';
                    jobSearchA.add(jobSearch);
                    jobSearchB.add(jobSearch);
                }      
            }
        }
        if(jobSearchA.Size()>0)
           insert jobSearchA;
        PageReference customPage = new PageReference('/'+opportunityID.Id);
        return customPage;
        return null;
    }
     //Custom Pagination for next
    public PageReference next(){
        pageNumber++;
        search();
        prevBool = false;
        return null;
    }
  //Custom Pagination for previous
    public PageReference previous(){
        pageNumber--;
        if (pageNumber < 0)    
            return null; 
        search();
        nextBool = false; 
        return null;
    }
     public void DeleteAcc(){
    system.debug('ddddddddddddd');
        if ( openjobsId  == null ){
            return;
        }
        Open_Job__c  tobeDeleted = null;
        for( Open_Job__c a : OpenJobsTop )
            if ( a.Id == openjobsId ) {
                tobeDeleted = a;
                  system.debug('tobeDeleted tobeDeleted '+tobeDeleted );
                break;
            }
    
        if ( tobeDeleted != null ) {
            tobeDeleted.Email_Bounced_Back__c= True;
             system.debug('tobeDeleted'+tobeDeleted);
            Update tobeDeleted;
            }
    }
}

Thanks.
Hi,

I am using Messaging.SingleEmailMessage to send mail. I want to set more than one mail id in setReplyTo. Is it possible????
Currently setReplyTo takes string means I can set only one email id.

Thanks in advance for your help.

Hi Experts,

 

I have a custom field of type picklist in User object. I need users to change the value of this field using a custom sidebar widget. The widget just needs to have a picklist custom field with data and a save button which will save the value in the User object.

How can I possibly achieve this functionality. Please suggest.

 

Thanks & Regards,

Nitesh Saxena

Hi,
I have a requirement where I need to populate "reply to" field in the email client from url I have created. Currently this url is having TO, CC, BCC, Subject, email body field. 

My question is can I add the reply to field in the same url or I need to move my code to Apex to set all the values

Thanks in advance for your help.

Regards,
Kunal
 

Hi There,

 

I'm using visualforce page to specify to email address to send email and should be attached file, 

 

I want create from to send to anyone and can keep tracking to Activity History of Contact belong to this document.

 

 

SendEmail failed. First exception on row 0; first error: INVALID_EMAIL_ADDRESS, email address has bounced for id : 003W000000CRfYr: []

 

public with sharing class paymenthistoryCls {  
	
	public string uid;
	public string aid;
	public string cid; 
	public User objUser{get;set;}
	public list<Document__c> lstDocument{get;set;}
	public String DocId{get; set;}
    public String attId{get;set;}
    public String addresses{ get; set;}	
    	
	public paymenthistoryCls(){
		uid = Apexpages.currentPage().getParameters().get('id');//UserInfo.getUserId();
		getObjUser();
		getlstDocument();
	} 
	
	public void getObjUser(){
		if(uid != null){
		objUser = [Select 	User.ContactId,
							User.AccountId,
							User.UserType
	   				From	User
	   				Where	User.Id = :uid ];
	   	aid = objUser.AccountId;
	   	cid = objUser.ContactId;	
		}
	}
	
	public void getlstDocument(){
	lstDocument = [	SELECT	Document__c.Id,
	    							Document__c.Name,
	    							Document__c.Document_Name__c,
	    							Document__c.Description__c,
	    							Document__c.CreatedDate,
	    							Document__c.LastModifiedDate,
	    							(SELECT Document_Version__c.Id
	    							FROM	Document_Version__r)
	    					FROM	Document__c
	    					Where	Document__c.Account__c = :aid];
	}
	    
    public PageReference send() {
        PageReference pageReference =  ApexPages.currentPage();        
    	Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); 
        
        // Create the email attachment
       
		List<Messaging.EmailFileAttachment> efas = new List<Messaging.EmailFileAttachment>();
		
   	    for(Attachment a : [select	Attachment.Id,
	   	    						Attachment.Name,  
	   	    						Attachment.Body 
	   	    			 	from 	Attachment 
	   	    			 	where 	Attachment.ParentId = :attId]){
    	
	    	Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment();
	    	efa.setFileName(a.Name);
	    	efa.setBody(a.body);
			efas.add(efa);
   	   }
   	   String[] toAddresses;
   	   if(addresses != ''){
		toAddresses = addresses.split(';', 0);	
   	   }
   	   EmailTemplate Temp = [Select EmailTemplate.Id , EmailTemplate.Name From EmailTemplate Where Name = 'Portal: Send Document'];
		
        email.setTargetObjectId(cid);        
        email.setSaveAsActivity(false);       
        email.setTemplateId(Temp.id);
        email.setToAddresses( toAddresses );        
        email.setFileAttachments(efas);
        email.setWhatId(attid);
		
	Messaging.SendEmailResult[] results = Messaging.sendEmail(new Messaging.SingleEmailMessage[] { email });
	system.debug('result size ='+ results.size());
	ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.CONFIRM,  'Email has been resent successfully '+results.size()+'.'+attId));
		return ApexPages.currentPage();
    }
}

 

23.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
02:46:06.031 (31183000)|EXECUTION_STARTED
02:46:06.031 (31240000)|CODE_UNIT_STARTED|[EXTERNAL]|066W00000008eni|VF: /apex/paymenthistory
02:46:06.032 (32175000)|VF_DESERIALIZE_VIEWSTATE_BEGIN|066W00000008eni
02:46:06.042 (42671000)|VF_DESERIALIZE_VIEWSTATE_END
02:46:06.043 (43632000)|CODE_UNIT_STARTED|[EXTERNAL]|01pW0000000D4RH|paymenthistoryCls get(lstDocument)
02:46:06.043 (43658000)|SYSTEM_MODE_ENTER|true
02:46:06.043 (43688000)|CODE_UNIT_STARTED|[EXTERNAL]|01pW0000000D4RH|lstDocument
02:46:06.043 (43727000)|METHOD_ENTRY|[1]|01pW0000000D4RH|paymenthistoryCls.paymenthistoryCls()
02:46:06.043 (43828000)|SYSTEM_MODE_ENTER|false
02:46:06.043 (43840000)|SYSTEM_MODE_EXIT|false
02:46:06.043 (43850000)|METHOD_EXIT|[1]|paymenthistoryCls
02:46:06.043 (43862000)|CODE_UNIT_FINISHED|lstDocument
02:46:06.043 (43869000)|CODE_UNIT_FINISHED|paymenthistoryCls get(lstDocument)
02:46:06.054 (54757000)|CODE_UNIT_STARTED|[EXTERNAL]|01pW0000000D4RH|paymenthistoryCls get(addresses)
02:46:06.054 (54783000)|SYSTEM_MODE_ENTER|true
02:46:06.054 (54797000)|CODE_UNIT_STARTED|[EXTERNAL]|01pW0000000D4RH|addresses
02:46:06.054 (54814000)|CODE_UNIT_FINISHED|addresses
02:46:06.054 (54820000)|CODE_UNIT_FINISHED|paymenthistoryCls get(addresses)
02:46:06.057 (57496000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,medemaza@gmail.com)
02:46:06.057 (57512000)|SYSTEM_MODE_ENTER|true
02:46:06.057 (57526000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,medemaza@gmail.com)
02:46:06.057 (57573000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,medemaza@gmail.com)
02:46:06.057 (57581000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,medemaza@gmail.com)
02:46:06.057 (57659000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJxGMAW)
02:46:06.057 (57677000)|SYSTEM_MODE_ENTER|true
02:46:06.057 (57689000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJxGMAW)
02:46:06.057 (57710000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJxGMAW)
02:46:06.057 (57717000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJxGMAW)
02:46:06.057 (57784000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.057 (57797000)|SYSTEM_MODE_ENTER|true
02:46:06.057 (57807000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.057 (57826000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.057 (57834000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.057 (57896000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJxBMAW)
02:46:06.057 (57909000)|SYSTEM_MODE_ENTER|true
02:46:06.057 (57919000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJxBMAW)
02:46:06.057 (57939000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJxBMAW)
02:46:06.057 (57946000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJxBMAW)
02:46:06.058 (58011000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58025000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58035000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58054000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58061000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58124000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJx6MAG)
02:46:06.058 (58137000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58147000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJx6MAG)
02:46:06.058 (58171000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJx6MAG)
02:46:06.058 (58179000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJx6MAG)
02:46:06.058 (58244000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58257000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58267000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58286000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58293000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58355000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJwhMAG)
02:46:06.058 (58368000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58378000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJwhMAG)
02:46:06.058 (58398000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJwhMAG)
02:46:06.058 (58405000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJwhMAG)
02:46:06.058 (58470000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58482000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58492000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58511000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58518000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58581000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJwmMAG)
02:46:06.058 (58593000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58606000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJwmMAG)
02:46:06.058 (58625000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJwmMAG)
02:46:06.058 (58632000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJwmMAG)
02:46:06.058 (58713000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58726000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58736000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58755000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58762000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58826000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJxLMAW)
02:46:06.058 (58838000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58849000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJxLMAW)
02:46:06.058 (58868000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJxLMAW)
02:46:06.058 (58875000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJxLMAW)
02:46:06.058 (58940000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58953000)|SYSTEM_MODE_ENTER|true
02:46:06.058 (58963000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(addresses,)
02:46:06.058 (58982000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.058 (58989000)|CODE_UNIT_FINISHED|paymenthistoryCls set(addresses,)
02:46:06.059 (59052000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJwwMAG)
02:46:06.059 (59065000)|SYSTEM_MODE_ENTER|true
02:46:06.059 (59076000)|CODE_UNIT_STARTED|[EXTERNAL]|paymenthistoryCls set(attId,a0VW0000000EJwwMAG)
02:46:06.059 (59095000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJwwMAG)
02:46:06.059 (59102000)|CODE_UNIT_FINISHED|paymenthistoryCls set(attId,a0VW0000000EJwwMAG)
02:46:06.060 (60968000)|CODE_UNIT_STARTED|[EXTERNAL]|01pW0000000D4RH|paymenthistoryCls invoke(send)
02:46:06.061 (61059000)|SYSTEM_MODE_ENTER|false
02:46:06.061 (61102000)|SYSTEM_METHOD_ENTRY|[44]|ApexPages.currentPage()
02:46:06.061 (61242000)|SYSTEM_METHOD_EXIT|[44]|ApexPages.currentPage()
02:46:06.062 (62232000)|SYSTEM_CONSTRUCTOR_ENTRY|[49]|<init>()
02:46:06.062 (62266000)|SYSTEM_CONSTRUCTOR_EXIT|[49]|<init>()
02:46:06.062 (62306000)|METHOD_ENTRY|[51]|01pW0000000D4RH|paymenthistoryCls.__sfdc_attId()
02:46:06.062 (62343000)|METHOD_EXIT|[51]|01pW0000000D4RH|paymenthistoryCls.__sfdc_attId()
02:46:06.063 (63343000)|SOQL_EXECUTE_BEGIN|[51]|Aggregations:0|select Attachment.Id, Attachment.Name, Attachment.Body from Attachment 
02:46:06.118 (118130000)|SOQL_EXECUTE_END|[51]|Rows:1
02:46:06.118 (118256000)|SYSTEM_METHOD_ENTRY|[51]|Database.QueryLocator.iterator()
02:46:06.118 (118449000)|SYSTEM_METHOD_ENTRY|[7]|QueryLocatorIterator.QueryLocatorIterator()
02:46:06.118 (118464000)|SYSTEM_METHOD_EXIT|[7]|QueryLocatorIterator
02:46:06.118 (118627000)|SYSTEM_METHOD_EXIT|[51]|Database.QueryLocator.iterator()
02:46:06.118 (118648000)|SYSTEM_METHOD_ENTRY|[51]|Database.QueryLocatorIterator.hasNext()
02:46:06.118 (118748000)|SYSTEM_METHOD_ENTRY|[33]|LIST<Attachment>.size()
02:46:06.118 (118784000)|SYSTEM_METHOD_EXIT|[33]|LIST<Attachment>.size()
02:46:06.118 (118804000)|SYSTEM_METHOD_EXIT|[51]|Database.QueryLocatorIterator.hasNext()
02:46:06.118 (118815000)|SYSTEM_METHOD_ENTRY|[51]|Database.QueryLocatorIterator.next()
02:46:06.118 (118830000)|SYSTEM_METHOD_ENTRY|[48]|Database.QueryLocatorIterator.hasNext()
02:46:06.118 (118852000)|SYSTEM_METHOD_ENTRY|[33]|LIST<Attachment>.size()
02:46:06.118 (118861000)|SYSTEM_METHOD_EXIT|[33]|LIST<Attachment>.size()
02:46:06.118 (118869000)|SYSTEM_METHOD_EXIT|[48]|Database.QueryLocatorIterator.hasNext()
02:46:06.118 (118909000)|SYSTEM_METHOD_EXIT|[51]|Database.QueryLocatorIterator.next()
02:46:06.119 (119249000)|SYSTEM_METHOD_ENTRY|[60]|LIST<Messaging.EmailFileAttachment>.add(Object)
02:46:06.119 (119285000)|SYSTEM_METHOD_EXIT|[60]|LIST<Messaging.EmailFileAttachment>.add(Object)
02:46:06.119 (119294000)|SYSTEM_METHOD_ENTRY|[51]|Database.QueryLocatorIterator.hasNext()
02:46:06.119 (119306000)|SYSTEM_METHOD_EXIT|[51]|Database.QueryLocatorIterator.hasNext()
02:46:06.119 (119325000)|METHOD_ENTRY|[63]|01pW0000000D4RH|paymenthistoryCls.__sfdc_addresses()
02:46:06.119 (119356000)|METHOD_EXIT|[63]|01pW0000000D4RH|paymenthistoryCls.__sfdc_addresses()
02:46:06.119 (119776000)|SOQL_EXECUTE_BEGIN|[66]|Aggregations:0|select EmailTemplate.Id, EmailTemplate.Name from EmailTemplate where Name = 'Portal: Send Document'
02:46:06.122 (122867000)|SOQL_EXECUTE_END|[66]|Rows:1
02:46:06.123 (123431000)|METHOD_ENTRY|[73]|01pW0000000D4RH|paymenthistoryCls.__sfdc_attId()
02:46:06.123 (123457000)|METHOD_EXIT|[73]|01pW0000000D4RH|paymenthistoryCls.__sfdc_attId()
02:46:06.123 (123567000)|SYSTEM_CONSTRUCTOR_ENTRY|[75]|<init>()
02:46:06.123 (123595000)|SYSTEM_CONSTRUCTOR_EXIT|[75]|<init>()
02:46:06.123 (123617000)|SYSTEM_METHOD_ENTRY|[75]|LIST<Messaging.SingleEmailMessage>.add(Object)
02:46:06.123 (123631000)|SYSTEM_METHOD_EXIT|[75]|LIST<Messaging.SingleEmailMessage>.add(Object)
02:46:06.123 (123683000)|SYSTEM_METHOD_ENTRY|[75]|Messaging.sendEmail(LIST<Messaging.Email>)
02:46:06.183 (183772000)|EXCEPTION_THROWN|[75]|System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_EMAIL_ADDRESS, email address has bounced for id : 003W000000CRfYr: []
02:46:06.184 (184625000)|SYSTEM_METHOD_EXIT|[75]|Messaging.sendEmail(LIST<Messaging.Email>)
02:46:06.184 (184655000)|SYSTEM_MODE_EXIT|false
02:46:06.184 (184741000)|FATAL_ERROR|System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_EMAIL_ADDRESS, email address has bounced for id : 003W000000CRfYr: []

Class.paymenthistoryCls.send: line 75, column 1
02:46:06.184 (184764000)|CODE_UNIT_FINISHED|paymenthistoryCls invoke(send)