1

Getting a failure error after running the test class...

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_FILTER_VALIDATION_EXCEPTION, Value does not exist or does not match filter criteria.: [Region__c]

closed as unclear what you're asking by Reshma, Sebastian Kessel, Pranay Jaiswal, Dave Humm, David Reed Mar 29 at 11:56

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Hi @CH Naveen Kumar, you should give more information. It looks like that you have a filter in a look up relationship that you are populating. Could you check it? To Help you, we need more info, like source code and so on... – m Peixoto Mar 29 at 10:09
1

You receive that error because the lookup field Region__c has a lookup filter that prevents entering not valid values. You need to check the criteria of that filter (go to Setup -> Object Manager -> Your Object -> Region field) and adjust you test class accordingly to set the valid value.

Not the answer you're looking for? Browse other questions tagged or ask your own question.