# My environment variables are not taking in the values of the variables I set in the dbt.env file while I am trying to run a model using dbt run?

**URL:** <https://discourse.getdbt.com/t/my-environment-variables-are-not-taking-in-the-values-of-the-variables-i-set-in-the-dbt-env-file-while-i-am-trying-to-run-a-model-using-dbt-run/14005>\
**Category:** Help\
**Tags:** variables\
**Created:** [July 1, 2024, 11:13am UTC](https://discourse.getdbt.com/t/my-environment-variables-are-not-taking-in-the-values-of-the-variables-i-set-in-the-dbt-env-file-while-i-am-trying-to-run-a-model-using-dbt-run/14005 "2024-07-01T11:13:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronbrock89](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/ronbrock89/32/4190_2.png) [@ronbrock89](https://discourse.getdbt.com/u/ronbrock89)\
**Post date:** [July 1, 2024, 11:13am UTC](https://discourse.getdbt.com/t/my-environment-variables-are-not-taking-in-the-values-of-the-variables-i-set-in-the-dbt-env-file-while-i-am-trying-to-run-a-model-using-dbt-run/14005/1 "2024-07-01T11:13:43Z")

</div>

## The problem I’m having

I have created a dbt.env file which contains the values of the environment variables that I am trying to reference while running a model. I have also created a load\_env.py file which prints the values of the environment variables that I have specified. But when I am trying to run the model, I am facing the errors.

## The context of why I’m trying to do this

## What I’ve already tried

## Some example code or error messages

Env var required but not provided : ‘dbt\_SCHEMA’

Put code inside backticks  
to preserve indentation  
which is especially important  
for Python and YAML!

```auto

```

---

<div class="post-metadata">

**Author:** ![Surya](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/surya/32/3763_2.png) [@Surya](https://discourse.getdbt.com/u/Surya)\
**Post date:** [July 1, 2024, 12:55pm UTC](https://discourse.getdbt.com/t/my-environment-variables-are-not-taking-in-the-values-of-the-variables-i-set-in-the-dbt-env-file-while-i-am-trying-to-run-a-model-using-dbt-run/14005/2 "2024-07-01T12:55:15Z")

</div>

can you try exporting them manually and check if its working or not
