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
Amit M 3Amit M 3 

Custom Settings Deployment Error

I am getting below error while deploying a protected custom settings to enterprise org, which is on Spring'20 release.

Custom Object You can't set the visibility for a Custom Setting to Protected unless you are in a developer or scratch org.

Looks like below release update has impacted the deployment of custom settings,

Has anybody faced this issue and know how it can be handled? Thanks in advance.
ShirishaShirisha (Salesforce Developers) 
Hi Amit,

Yes,as part of the Spring'20 release we can only create public custom settings.Also,it only allow us to create the protected Custom settings in Developer and Scratch orgs for managed packages.

Please let me know,if you have any other concerns.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Amit M 3Amit M 3
That would leave an impact for existing deployments where protected custom settings were used to be deployed to 'Enterprise' org for testing/regression (for example- Large Data Volume testing), before actually being put into managed package. Scratch/Developer orgs normally dont have enough space to do LDV testing.