List Custom Settings are not usable in developer / configuration sandboxes
Last updated 2022-02-10 ·Reference W-1724871 ·Reported By 41 users
Summary
In newly created/refreshed Dev/Config sandboxes we fail to retrieve list custom setting data from L2 cache (memcached)
i.e.
ListCStest__c keyID = ListCStest__c.getInstance('test list 1');
or
ListCStest__c keyID2 = ListCStest__c.getValues('test list 1');
- Actual Result
keyID/keyID2 is null
- Expected Result.
Custom setting data
Repro
1) Create a list custom setting in a production org with some data created for it.
I.e. create a text field in the custom setting and create a record for it.
2) Create/refresh a new Dev or Config sandbox
3) Log into new sandbox and execute:
ListCStest__c keyID = ListCStest__c.getInstance('test list 1');
Where ListCStest__c is your custom setting and 'test list 1' is the name of the field.
4) Repeat this process with a full copy sandbox and you won't encounter the issue.
Workaround
Delete the existing custom setting and re-create manually directly in the sandbox
Reported By (41)




















Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.