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
Mack DsozaMack Dsoza 

Explain me error

Double growthRate  = LifeInsuranceInterest__c.getInstance(description).Rate__c;

 

I am getting an error here, plz tell me what this error means...

 

ErrorError: Compile Error: Not of type Custom Settings at line 545 column 29

Best Answer chosen by Admin (Salesforce Developers) 
Sonali BhardwajSonali Bhardwaj

No, its not the issue of data type. I tried the same in my org, and it works successfully.

 

You should match your custom setting name in your code with custom setting detail page. There must be name mismatch.

If possible copy your custom setting detail page here.

All Answers

Sonali BhardwajSonali Bhardwaj

You don't have any custom settings defined in your org named LifeInsuranceInterest__c.

 

Go to setup->develop->custom settings in your org and create one.

 

 

Mack DsozaMack Dsoza

I have already created custom settings but the custom field namd Rate__c in it is of type percent so might be conflict between their data type...

But I have created Custom Settings....

Sonali BhardwajSonali Bhardwaj

No, its not the issue of data type. I tried the same in my org, and it works successfully.

 

You should match your custom setting name in your code with custom setting detail page. There must be name mismatch.

If possible copy your custom setting detail page here.

This was selected as the best answer
Mack DsozaMack Dsoza

Thank you so much sonali...

:smileyvery-happy:

jhansisridhar_2011jhansisridhar_2011

Thanks Sonali,

 

Working perfectly.