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
Bhola VishwakarmaBhola Vishwakarma 

what does the error indicate

Compile Error: Method does not exist or incorrect signature: Allocation_Action__c.getInstance(String) 

 

 

 

 if(goalAssetMappingBeanList.isEmpty()) {
            goalAssetMappingBeanList.add(mappingBean);
        }else {
            if(Allocation_Action__c.getInstance('Action1').Action__c.equalsIgnoreCase(action)){
                goalAssetMappingBeanList.add(0,mappingBean);                
            } else if (Allocation_Action__c.getInstance('Action2').Action__c.equalsIgnoreCase(action)) { 
                goalAssetMappingBeanList.add(0,mappingBean);
            } else if (Allocation_Action__c.getInstance('Action3').Action__c.equalsIgnoreCase(action)) { 
                goalAssetMappingBeanList.add(mappingBean);
            } else {
                goalAssetMappingBeanList.add(mappingBean);
            }
           }

 

minkeshminkesh

Hello,

           This error indicates that there is no method exist which you are calling in that particular class.

           so just check that method is in the class.intelligence will appear in force.com ide so use that to check which method we can call on Allocation_Action__c.

           For further assistance refer this link given below.

           http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_custom_settings.htm

Chamil MadusankaChamil Madusanka

Hi Bhola,

 

According to your facts, There is no such method with particular method name or you had used incorrect parameter type or incorrect no of parameter at usage of getInstance() method. Check your method for above requirements. OR plaese post some eloborated code.

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.


Chamil's Blog

 

Bhola VishwakarmaBhola Vishwakarma

thanks a lot ur given suggestion worked

Bhola VishwakarmaBhola Vishwakarma

thanks a lot

 

minkeshminkesh

Hello,

           If yoou get solution please accept it as solution so that other can have benifit.