# Result Format - unexpected\_rows\_expectation

**URL:** <https://discourse.greatexpectations.io/t/result-format-unexpected-rows-expectation/2316>\
**Category:** GX Core Support\
**Created:** [December 3, 2025, 11:29am UTC](https://discourse.greatexpectations.io/t/result-format-unexpected-rows-expectation/2316 "2025-12-03T11:29:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lsuse](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lsuse](https://discourse.greatexpectations.io/u/Lsuse)\
**Post date:** [December 3, 2025, 11:29am UTC](https://discourse.greatexpectations.io/t/result-format-unexpected-rows-expectation/2316/1 "2025-12-03T11:29:59Z")

</div>

Hi everyone,

I’ve been working with Great Expectations and ran into something I can’t quite figure out.  
When using the unexpected\_rows\_expectation, I tried supplying a detailed result\_format dictionary—specifically to control things like unexpected\_index\_column\_names and include\_unexpected\_rows.

Example:

```auto
rformat = {
    "result_format": "COMPLETE",
    "unexpected_index_column_names": id,
    "return_unexpected_index_query": False,
    "include_unexpected_rows": False,
}
checkpoint = context.checkpoints.add_or_update(
    gx.Checkpoint(
        name=checkpoint_name, validation_definitions=validation_definitions, result_format=rformat
    )
)

```

However, it seems like unexpected\_rows\_expectation does not allow these additional keys, even though other expectations do. The extra fields appear to be ignored..

Is this the intended behavior?  
Does this specific expectation simply not support customized result formats beyond the basic result\_format string, or is there a different way to provide these values?

Any clarification or guidance would be greatly appreciated!

Thanks!
