# schema.yml file alias not working

**URL:** <https://discourse.getdbt.com/t/schema-yml-file-alias-not-working/12458>\
**Category:** Help\
**Tags:** dbt-cloud, databricks, git\
**Created:** [March 13, 2024, 11:21am UTC](https://discourse.getdbt.com/t/schema-yml-file-alias-not-working/12458 "2024-03-13T11:21:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://discourse.getdbt.com/u/gaurav)\
**Post date:** [March 13, 2024, 11:21am UTC](https://discourse.getdbt.com/t/schema-yml-file-alias-not-working/12458/1 "2024-03-13T11:21:22Z")

</div>

Hello Experts,

I need your expertise advice on my issue. My problem is, dbt run command is creating table with model file name instead of alias name from yml configuration.

I have a schema.yml as follows.

```auto
version: 2

models:
  - name: employees
    config:
      alias: emp

```

My employees.sql model as follows.

```auto
{{ 
  config
  (
    materialized='incremental', 
    incremental_strategy='insert_overwrite',
  ) 
}}
select 1 as empid, 'ABC' as name union all
select 2 as empid, 'PQR' as name

```

Now, when I run following command, dbt creates table named as employees not emp.

```auto
dbt run --select employees --full-refresh

```

It worked as expected for all other models except this one.  
The only difference between other models and this model is that, I first added entry in my schema.yml file-\> commit changes.  
Then on next day, I created model employees.sql → commit changes.  
For all other models, I first created model file and then edited yml file.

Is there any way to inform dbt to refresh yml file changes or pass path of yml file? Or is there any other way to fix this issue?

Could you please share your thoughts on how should I fix this issue?

Thanks in advance.
