+ Start a Discussion
Nertin HoxhaNertin Hoxha 

picklist value not recognized in the test

When trying the test class for the related picklist value in a Quote field i get the following message:
System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, bad value for restricted picklist field: 3668: [Sales_Org__c]
But the value 3668 exists and it's free of errors in the org. Any idea? thanks
Jayamaruthyraman JaganathJayamaruthyraman Jaganath
You are likely to get this error if the picklist happens to be a dependent picklist and the value being added is not valid in the light of value in the controlling field.