# `data.privacy_setting_invalid`

A setting under `privacy:` isn't one of its settings, or isn't valid.

Area 15, [Personal data](/docs/personal-data.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

`privacy:` holds `erasure_log:`, `self_service:`, `path:`,
`generate_routes:`, `exports:`, `erasures:` and `emails:`. Anything else is a typo or a
setting from somewhere else, and Jadpo would rather say so than leave a person
unable to make the request the setting was meant to allow. A value has to be
of the right shape too: `path:` and `self_service`'s pages are paths on your
site, and `generate_routes:` is `true` or `false`.

## What it looks like



app.jadpo:

```jadpo
application {
    privacy: {
        export_link: "/data"
    }
}
```

```text
error: `export_link` isn't a setting of `privacy:`
 --> app.jadpo:3:9
  |
3 |         export_link: "/data"
  |         ^^^^^^^^^^^ not a setting
  reason: `privacy:` says where the erasure log is kept and how a person makes a data request: `erasure_log:`, `self_service:`, `path:`, `generate_routes:`, `exports:`, `erasures:` and `emails:`.
  next: Remove `export_link:` (agent)
  rule: data.privacy_setting_invalid
  help: https://jadpo.dev/docs/errors/data.privacy_setting_invalid

check failed: 1 error, 2 files
```

`(agent)` at the end of the `next:` line means your coding agent can make the
fix itself.

## How to fix it

**If the setting is a typo or from somewhere else,** remove it, or name one
`privacy:` holds. To put the routes somewhere else, say so with `path:`:



```jadpo
use accounts/entities { User }

application {
    display_name: "Notes"
    connections: {
        mail: {
            driver: Driver.smtp
            host: config.smtp_host
        }
        vault: {
            driver: Driver.disk
            path: "/var/lib/notes/vault"
        }
    }
    email: {
        connection: mail
        from: config.mail_sender
    }
    privacy: {
        erasure_log: {
            store: vault
        }
        exports: {
            store: vault
        }
        path: "/data"
    }
}

principal {
    user: {
        subject: User.email
    }
}
```


The routes now answer under `/data`, and every setting is one `privacy:`
holds.

## Related

- [Data requests](/docs/data-requests.md)
- [`data.privacy_person_required`](/docs/errors/data.privacy_person_required.md)
