# Validations need to be ran twice to store and create data docs

**URL:** <https://discourse.greatexpectations.io/t/validations-need-to-be-ran-twice-to-store-and-create-data-docs/628>\
**Category:** Archive\
**Tags:** how-to, help-wanted\
**Created:** [February 16, 2021, 11:03am UTC](https://discourse.greatexpectations.io/t/validations-need-to-be-ran-twice-to-store-and-create-data-docs/628 "2021-02-16T11:03:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro.carrasqueira](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pedro.carrasqueira](https://discourse.greatexpectations.io/u/pedro.carrasqueira)\
**Post date:** [February 16, 2021, 11:03am UTC](https://discourse.greatexpectations.io/t/validations-need-to-be-ran-twice-to-store-and-create-data-docs/628/1 "2021-02-16T11:03:30Z")

</div>

Hi everyone! We are designing a data validation pipeline using great expectations that uses the information from one dataset to set expectations to another in pyspark. So far everything has been working great so I want to congratulate the team for the awesome work! There is one thing that seems a bit weird to me that I would appreciate some help.  
We are taking advantage of the data\_docs generated by the package but it seems that we are running the validation twice. I think there should be a way to avoid this but currently in our set up we have:

1. We call all the expectations for our target dataset `df.expect_something` . Here we take about 40 min for our current expectation set.
2. Then we call `ge_env.context.run_validation_operator` which for me should only store the results from point 1. However, by looking at `store_validation_result ` action’s code it seems to also be validating before storing the results. This takes an additional and hopefully unnecessary 20 min.

Is there anyway we can change this behaviour so that we can avoid the extra 20 min?

---

<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:** [March 8, 2021, 2:32am UTC](https://discourse.greatexpectations.io/t/validations-need-to-be-ran-twice-to-store-and-create-data-docs/628/2 "2021-03-08T02:32:35Z")

</div>

This is a copy from a Slack conversation. To avoid the double execution of validations the workflow detailed in this tutorial should be followed: [Getting started with Great Expectations — great\_expectations documentation](https://docs.greatexpectations.io/en/latest/guides/tutorials/getting_started.html)
