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
Jeetesh BahugunaJeetesh Bahuguna 

Custom Setting Name too long:

I am getting this error while using vf component attribute for passing custom setting name, however i am not getting any error if I am hard coding values instead of component attribute, and it is showing me other custom settings field value.  
SandhyaSandhya (Salesforce Developers) 
Hi Jeetesh,

Salesforce recommends using ASCII for the Object Name. The name can't exceed 38 ASCII characters. If you use double byte, there are additional limits on the number of characters allowed.

Please refer below link
https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_define.htm&language=en_US

 And also there is a post success community regarding this please refer.

https://success.salesforce.com/issues_view?id=a1p30000000Rq4hAAC

Hope this helps you!

Thanks and Regards
Sandhya
GANESH ALUGU 347GANESH ALUGU 347
If you give identifier name i.e specific to class name in Salesforce Apex more than 40 character... You can see this compile time errro "Identifier name is too long"

Specific to Variable name and Method Name not more than 255  charaters 
Specific to Constructor, as constuctor name will be same as class name so in salesfofrce apex not more than 40 Characters

User-added image
Frans Flippo 20Frans Flippo 20
A 40 character limit on class names? My god, you start to wonder if Salesforce actively enjoys making developers' lives difficult. This isn't the 80's. There is really no reason for such a silly, short limit. Very disappointing.
Frans Flippo 20Frans Flippo 20
Please vote on this idea to get this 40-character limit increased: https://ideas.salesforce.com/s/idea/a0B8W00000GeFMWUA3/increase-limit-on-apex-class-names-from-40-to-255