function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhishek Patil 37Abhishek Patil 37 

Method does not exist or incorrect signature: void updateaccHandler(List<Account>, Map<Id,Account>) from the type updateHandler

public class updateHandler {
    
    public static void updateaccHandler(list<account> upac, map<ID, account> mapaccmap){
               
             for(account acc : upac){
                 if(acc.phone != mapaccmap.get(acc.ID).Phone){
                     acc.description = 'Phone is updated  , old phone mumber is'+ acc.mapaccmap.get(acc.ID).phone +' & new phone is :'+ acc.phone;
                                        
                                        
                 }
             }
    }

}
Salesforce seekarSalesforce seekar
Hi @Abhi , 

can you post the whole code like trigger also such that we can help you 
SwethaSwetha (Salesforce Developers) 
HI Abhishek,
The error "Method does not exist or incorrect signature: void updateaccHandler(List<Account>, Map<Id, Account>) from the type updateHandler" occurs when the method signature in the code does not match the method signature expected by the calling code. 

I see you also reached out on https://salesforce.stackexchange.com/questions/410505/method-does-not-exist-or-incorrect-signature-void-updateacchandlerlistaccount according to which

"this version of your class wasn't deployed to the server, so as far as Salesforce was concerned, the method doesn't exist. The problem here is acc.mapaccmap.get(acc.Id).phone, which should be mapaccmap.get(acc.Id).phone."

If this information helps, please mark the answer as best so this thread can be closed. Thank you
 
Arun Kumar 1141Arun Kumar 1141
Hi Abhishek Patil 37,

The error 'Method does not exist or incorrect signature: void updateaccHandler(List<Account>, Map<Id,Account>) from the type updateHandler'  is  coming due to either you have not saved your trigger/Apex class where you are calling updateaccHandler method  or there could be mismatched method signature.

if this helps you please mark it as a best answer.
Thanks!