I have a protected custom setting that I am querying. I have the following statement:
App_name_c key = App_name_c.getValues('secret');
When I run this in the console it works. However, when I run this in the class, it returns this:
System.QueryException: List has no rows for assignment to SObject
Any ideas?