```with build_op_context( resources={'ge_data_...
# ask-community
k
Copy code
with build_op_context(
    resources={'ge_data_context': ge_data_context},
    resources_config={
            'ge_data_context': {

                'config': {
                    'ge_root_dir': file_relative_path(
                        __file__,
                        '../great_expectations'
                    )
                }
            }
        }
) as context:
    ge = ge_validation_op_factory(
        name='great_expecations',
        datasource_name='test_data',
        suite_name='target.warning',
    )(context=context)

    res = ge(df)

    if res['success']:
        return df
    return ValueError
Hi all, I have tried invoking ge_op_validation_factory using build_op_context as a context manager, but facing the below error """ No value provided for required input "dataset" """" please do let me know where can i provide the dataset
z
Have you tried providing the dataset where you're passing in the context? like
Copy code
ge = ge_validation_op_factory(
        name='great_expecations',
        datasource_name='test_data',
        suite_name='target.warning',
    )(context=context, dataset=df)
k
Hi Zach Romer. Earlier I have tried passing df as a positional argument and it got failed. But after your suggestion, i have tried with dataset=df and it has worked for me. Thank you!!
🎉 1