Question: Could you please help me with this issue?

```
Encountered an error:
Compilation Error in model metrics_model (models\example\metrics_model.sql)
  Model 'model.test_project.metrics_model' (models\example\metrics_model.sql) depends on a source named 'automate.metrics' which was not found

```

I am having this monotonous error, which I have not been able to solve.

Many thanks beforehand!

Answer: 
For PostgreSQL database please check if the sources.yml file is defined as follows:

```
version: 2
sources:
  - name: name_of the source
    schema: name_of_the_schema
    quoting:
      database: false
      schema: false
      identifier: false
    loader: stitch
    tables:
      - name: name_of_table1
      - name: name_of_table2

```
Are you seeing this in your dev environment? It's possible that you've not run `dbt run` after creating the `automate.metrics` which is preventing `metrics_model` from referencing it.