# WarningAndFailureExpectationSuitesValidationOperator

**URL:** <https://discourse.greatexpectations.io/t/warningandfailureexpectationsuitesvalidationoperator/455>\
**Category:** Archive\
**Created:** [October 17, 2020, 12:14pm UTC](https://discourse.greatexpectations.io/t/warningandfailureexpectationsuitesvalidationoperator/455 "2020-10-17T12:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mik\_q3](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mik\_q3](https://discourse.greatexpectations.io/u/mik_q3)\
**Post date:** [October 17, 2020, 12:14pm UTC](https://discourse.greatexpectations.io/t/warningandfailureexpectationsuitesvalidationoperator/455/1 "2020-10-17T12:14:43Z")

</div>

Hello  
I am not sure where I should define _base\_expectation\_suite\_name_  
I’ve got an error when trying to run validation  
`"ValueError: base_expectation_suite_name must be configured in the validation operator or passed at runtime"`

---

<div class="post-metadata">

**Author:** ![joel\_hughes](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@joel\_hughes](https://discourse.greatexpectations.io/u/joel_hughes)\
**Post date:** [October 19, 2020, 2:30pm UTC](https://discourse.greatexpectations.io/t/warningandfailureexpectationsuitesvalidationoperator/455/2 "2020-10-19T14:30:01Z")

</div>

Hi I’m finding this one a bit confusing too but got a little further by adding the expectation suite name to the `great_expectations.yml` as `base_expectation_suite_name: my_suite_name`. As suggested [here](https://docs.greatexpectations.io/en/latest/autoapi/great_expectations/validation_operators/validation_operators/index.html?highlight=base_expectation_suite_name#great_expectations.validation_operators.validation_operators.WarningAndFailureExpectationSuitesValidationOperator).

~I’m not quite getting the results I expected, or rather I’m seeing two suites (one for failure one for warning) rather than one.~

Creating a checkpoint and running `great_expectations checkpoint run my_ceckpoint` gets the result I was after.

great\_expectations/great\_expectations.yml

```auto
validation_operators:
  run_warning_and_failure_expectation_suites:
    class_name: WarningAndFailureExpectationSuitesValidationOperator
    base_expectation_suite_name: test

```

great\_expectations/checkpoints/test.yml

```auto
batches:
  - batch_kwargs:
      path: ./data/test.csv
      datasource: housing
      data_asset_name: housing
    expectation_suite_names:
      - test.warning
      - test.failure

```

---

<div class="post-metadata">

**Author:** ![eugene.mandel](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/eugene.mandel/32/22_2.png) [@eugene.mandel](https://discourse.greatexpectations.io/u/eugene.mandel)\
**Post date:** [October 26, 2020, 9:26am UTC](https://discourse.greatexpectations.io/t/warningandfailureexpectationsuitesvalidationoperator/455/3 "2020-10-26T09:26:10Z")

</div>

This reference explains the configuration of this Validation Operator: [https://docs.greatexpectations.io/en/latest/autoapi/great\_expectations/validation\_operators/index.html#great\_expectations.validation\_operators.WarningAndFailureExpectationSuitesValidationOperator](https://docs.greatexpectations.io/en/latest/autoapi/great_expectations/validation_operators/index.html#great_expectations.validation_operators.WarningAndFailureExpectationSuitesValidationOperator)

Please comment if you have issues after reading this, so that we can improve it. Thank you!
