Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently i am creating custom settings to store some configuration values. But, i wrongly entered some data in that and the data is invalid. Is there any mechanism like validation rule kind of thing available for this, so that the data entered into it is validated before it saves to database.?

share|improve this question
Hi Baskaran, you marked an answer as accepted but it doesn't seem to answer the question. Did it really resolve your issue? – LaceySnr Apr 18 '14 at 2:29
up vote 0 down vote accepted

List type of custom settings are not available in validation rules where as Hierarchy type of custom settings are available in validation rules.

Please find the documentation and link

share|improve this answer
This doesn't really answer the question, does it? The author was asking whether you can validate custom setting data, not whether you can use custom settings in validation rules. – James Loghry Apr 17 '14 at 16:17
This has been marked as accepted but I think perhaps the asker believes that you mean validation rules can be applied to hierarchy settings, which is not the case. – LaceySnr Apr 18 '14 at 2:29

There is no way , you can create a validation rule on the Custom settings.To ensure the data entered is correct in your production Org, You need to migrate the custom setting values using Data loader.

If you really want to build a validation rule then the only workaround is to use a custom object but that means the advantages of the Custom Setting is lost (e.g. SOQL call burning)

share|improve this answer
This is the best answer. – James Loghry Apr 17 '14 at 16:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.