# Failure in model stg\_customers (models/stg\_customers.sql)

**URL:** <https://discourse.getdbt.com/t/failure-in-model-stg-customers-models-stg-customers-sql/17918>\
**Category:** Help\
**Created:** [January 27, 2025, 6:43am UTC](https://discourse.getdbt.com/t/failure-in-model-stg-customers-models-stg-customers-sql/17918 "2025-01-27T06:43:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtkarthikeyan](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jtkarthikeyan](https://discourse.getdbt.com/u/jtkarthikeyan)\
**Post date:** [January 27, 2025, 6:43am UTC](https://discourse.getdbt.com/t/failure-in-model-stg-customers-models-stg-customers-sql/17918/1 "2025-01-27T06:43:20Z")

</div>

I am getting the below error in the dbt fundamental course itself. Plese share some input to fix my learning project

` `

` compiled code at target/run/jaffle_shop/models/stg_customers.sql`

`06:13:42 `

`06:13:42`

`06:13:42 compiled code at target/compiled/jaffle_shop/models/stg_customers.sql`

`06:13:42 `

`06:13:42`

`06:13:42 Failure in model stg_orders (models/stg_orders.sql)`

`06:13:42`

`06:13:42 Database Error in model stg_orders (models/stg_orders.sql)`

` 000606 (57P03): No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.`

` `

` compiled code at target/run/jaffle_shop/models/stg_orders.sql`

`06:13:42 `

`06:13:42`

`06:13:42 compiled code at target/compiled/jaffle_shop/models/stg_orders.sql`

`06:13:42 `

`06:13:42`

`06:13:42 Done. PASS=0 WARN=0 ERROR=2 SKIP=10 NO-OP=0 TOTAL=12`

---

<div class="post-metadata">

**Author:** ![DataNath](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/datanath/32/4070_2.png) [@DataNath](https://discourse.getdbt.com/u/DataNath)\
**Post date:** [January 28, 2025, 11:25am UTC](https://discourse.getdbt.com/t/failure-in-model-stg-customers-models-stg-customers-sql/17918/2 "2025-01-28T11:25:10Z")

</div>

> [@jtkarthikeyan](#):
>
> (57P03): No active warehouse selected

Hi @jtkarthikeyan,

In your `profiles.yml` file, have you configured this with all arguments? Particularly the `warehouse:` attribute. You’ll also need to be using a `role:` that has been access granted to that warehouse.

---

<div class="post-metadata">

**Author:** ![jtkarthikeyan](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jtkarthikeyan](https://discourse.getdbt.com/u/jtkarthikeyan)\
**Post date:** [February 1, 2025, 3:42pm UTC](https://discourse.getdbt.com/t/failure-in-model-stg-customers-models-stg-customers-sql/17918/3 "2025-02-01T15:42:46Z")

</div>

Thanks @DataNath My issue resolved
