+ Start a Discussion
Alexis WuAlexis Wu 

Getting an INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST error on Build a Suggestion Box App - Adding Custom Fields


For some reason I am getting this error: There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Status: bad value for restricted picklist field: test: [Status__c]

I've actually gone through and completed the rest of the activities in this module with ease. I've recreated the status picklist 4 times to ensure I have it correct but I keep getting this error.
FLS is set to Read Only for every profile EXCEPT System Admin
New vaue is set to default

User-added image

Rafael Suarez 13Rafael Suarez 13
I think I see your picklist options has the "Restrict Picklist Values..." checked.  Try unchecking that.  If you try inserting anything  inconsistent into a picklist thats set like that, you will get that DML error.
Good Luck