# Special character in yml file

**URL:** <https://discourse.getdbt.com/t/special-character-in-yml-file/13632>\
**Category:** Help\
**Tags:** jinja, dbt-core\
**Created:** [June 3, 2024, 10:09am UTC](https://discourse.getdbt.com/t/special-character-in-yml-file/13632 "2024-06-03T10:09:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmu](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lmu](https://discourse.getdbt.com/u/lmu)\
**Post date:** [June 3, 2024, 10:09am UTC](https://discourse.getdbt.com/t/special-character-in-yml-file/13632/1 "2024-06-03T10:09:55Z")

</div>

## The problem I’m having

Hello,

I don’t know if this question is answered yet, so I ask it.

I have a sources.yml file with this config :

```auto

sources:

    name: external_source
    meta:
    external_location: "s3:/my_buckt/{name}/my_file.csv"
    tables:
        name: my_source
        config:
        external_location: postgres_scan('host=my_host user=my_user port=5432 dbname=db password=123{.', 'public', 'my_source')

```

But I have an error when running the project:

```
ValueError: expected '}' before end of string

```

The " { " character is a part of the password. How tries to pass it as an env var, I have the same issue.

How to deal with this to pass it in my yml file ?

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

A password with a curled bracket provided.

## What I’ve already tried

- Put en value in env\_var

---

<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:** [June 3, 2024, 12:37pm UTC](https://discourse.getdbt.com/t/special-character-in-yml-file/13632/2 "2024-06-03T12:37:20Z")

</div>

Hey @lmu, have you tried wrapping the second external\_location value in double quotes, like you have in the first?

```auto
sources:

    name: external_source
    meta:
    external_location: "s3:/my_buckt/{name}/my_file.csv"
    tables:
        name: my_source
        config:
        external_location: "postgres_scan('host=my_host user=my_user port=5432 dbname=db password=123{.', 'public', 'my_source')"

```
