I am passing dynamic values to the getValues() method so I didn't have control of what is being entered, whenever name string crosses 38 characters its giving "Custom Setting Name too long" error.

So, is it possible to increase the length of Custom setting Name field?

1 Answer 1


That is the limit for the custom setting name. Please, take a look to this article where it explains this limitation:

Define Custom Settings

enter image description here

Looking around I found that there is a 'workaround' that it may help you. Check it here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .