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
MaxaMaxa 

Method does not exist or incorrect signature: [Customers.CustomersSoap].AddCustomer(Id, String,

hi i'm really puzzled by this issue i think it's somethign very simple but i cannot figure it out :(

i get this error wnen i run this code

acr = cust.AddCustomer( act.id, wbsite, act.name, (act.website==null?'':act.website), ld.description__c, (act.ACN_ABN__c==null?'':act.ACN_ABN__c), (streetline1==null?'':streetline1),//act.BillingStreet, (streetline2==null?'':streetline2),//billingstreet2 (ld.Suburb__c==null?'':ld.Suburb__c), (act.Billingstate==null?'':act.Billingstate), (ld.post_code__c==null?'':ld.post_code__c),//act.BillingPostalCode, act.phone, (act.fax==null?'':act.fax), (con.FirstName==null?'':con.FirstName), (con.LastName==null?'':con.LastName), con.Email, con.Phone);

however if i comment any of those values out

it works just fine

here is example

 

acr1 = cust1.AddCustomer( act.id, wbsite, act.name, (act.website==null?'':act.website), ld.description__c, (act.ACN_ABN__c==null?'':act.ACN_ABN__c), (streetline1==null?'':streetline1),//act.BillingStreet, (streetline2==null?'':streetline2),//billingstreet2 (ld.Suburb__c==null?'':ld.Suburb__c), (act.Billingstate==null?'':act.Billingstate), (ld.post_code__c==null?'':ld.post_code__c),//act.BillingPostalCode, act.phone, (act.fax==null?'':act.fax), con.FirstName, con.LastName, con.Email); // con.Phone);

 

Best Answer chosen by Admin (Salesforce Developers) 
MaxaMaxa
i found the solution it was in my other apex class that was called out, i had to make sure i have the variable there