# How to set Validation Results (e.g. Run Name, Run Time and Batch ID

**URL:** <https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327>\
**Category:** GX Core Support\
**Created:** [August 13, 2023, 11:50pm UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327 "2023-08-13T23:50:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgriffin](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jgriffin](https://discourse.greatexpectations.io/u/jgriffin)\
**Post date:** [August 13, 2023, 11:50pm UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327/1 "2023-08-13T23:50:18Z")

</div>

![Validation Results](https://canada1.discourse-cdn.com/flex031/uploads/greatexpectations/original/1X/3ed1249323d857f9b3c61bc9822129a6b0d37bda.png)

Can I override the values for **Run Time** , **Run Name** and **Batch ID** on the Validation Results page of Data Docs? I’m trying to understand what object and what specific parameter name needs adjustment. Some of the posts seem to reference older versions of the API and don’t seem to be relevant for the latest version of the OSS version.

I am testing with Windows 11, Python 3.11.4 and GX 0.17.9

---

<div class="post-metadata">

**Author:** ![nevintan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/nevintan/32/272_2.png) [@nevintan](https://discourse.greatexpectations.io/u/nevintan)\
**Post date:** [August 16, 2023, 3:35pm UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327/2 "2023-08-16T15:35:02Z")

</div>

Hi @jgriffin, thanks for the question! Unfortunately, these column names cannot be configured at the moment. What’s the specific issue that you’re running into?

---

<div class="post-metadata">

**Author:** ![jgriffin](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jgriffin](https://discourse.greatexpectations.io/u/jgriffin)\
**Post date:** [August 16, 2023, 10:47pm UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327/3 "2023-08-16T22:47:33Z")

</div>

Referencing the graphic I’m thinking about how runs are organized. Clearly, I can search on Asset Name to narrow down the results. It looked like the API had advanced to a point where a RunIdentifier object was created. It appeared that **RunIdentifer** contained a **run name** and a **run time**. It appeared to me that those mapped nicely to the Run Name and Run Time.

There are old discourse articles talking about manipulating **run name** and **run time** where developers were setting the values. Then it looks like the RunIdentifier object came forward. I was looking for how to associate the RunIdentifier to my overall run. I’m not seeing a way to do that AND not seeing how doing that would be “realized” in the results.

I would love to share our use case as it seems like it could align carefully if the expectation suites and associated runs could be labeled appropriately. I can elaborate on why I was looking to “utilize” those columns. The data\_docs work is impressive. Seems like an opportunity to leverage the structure you already have in place.

Thoughts?

---

<div class="post-metadata">

**Author:** ![gontcharovd](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@gontcharovd](https://discourse.greatexpectations.io/u/gontcharovd)\
**Post date:** [February 19, 2025, 8:55am UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327/4 "2025-02-19T08:55:42Z")

</div>

Hello, I’m really interested in this feature.

I’m testing tables on Databricks where I manually batch data by day from a large delta table into a PySpark dataframe and pass it to GX using `add_batch_definition_whole_dataframe`

I’d like to show the date (YYYY-MM-DD) in the GX Data Doc so that users can see what data was tested.

Is it now possible to use the **Run Name** for this purpose?

If not, what else could I do?

---

<div class="post-metadata">

**Author:** ![gontcharovd](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@gontcharovd](https://discourse.greatexpectations.io/u/gontcharovd)\
**Post date:** [February 19, 2025, 10:15am UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327/5 "2025-02-19T10:15:24Z")

</div>

I found a solution that works but I’m not sure it’s recommended. In essence, I’m overriding the default RunIdentifier following the [Checkpoint | Great Expectations](https://docs.greatexpectations.io/docs/reference/api/checkpoint_class/#methods) documentation.

```python
from great_expectations import RunIdentifier

sart_date_str = "2024-12-12"

custom_run_id = RunIdentifier(
    run_name=start_date_str,
    run_time=datetime.now()
)

results = checkpoint.run(batch_parameters={"dataframe": df}, run_id = custom_run_id)
context.open_data_docs()

```

Now the Run Time contains the date of the data like I want:

 ![ksnip_20250219-111505](https://canada1.discourse-cdn.com/flex031/uploads/greatexpectations/original/1X/8d9a8e8afd35e8a77ccfcd29c840abb046a68cf1.png)

---

<div class="post-metadata">

**Author:** ![mike\_f50](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/mike_f50/32/169_2.png) [@mike\_f50](https://discourse.greatexpectations.io/u/mike_f50)\
**Post date:** [July 1, 2025, 12:02pm UTC](https://discourse.greatexpectations.io/t/how-to-set-validation-results-e-g-run-name-run-time-and-batch-id/1327/6 "2025-07-01T12:02:32Z")

</div>

It’s also possible to set the run\_name, and leave GX to populate the run\_time.

```py
from great_expectations import RunIdentifier

custom_run_id = RunIdentifier(
    run_name="My run name"
)

results = checkpoint.run(batch_parameters={"dataframe": df}, run_id=custom_run_id)

```
