# Unable to add search attributes

**URL:** <https://community.temporal.io/t/unable-to-add-search-attributes/9946>\
**Category:** Community Support\
**Tags:** general-impl\
**Created:** [October 27, 2023, 12:40am UTC](https://community.temporal.io/t/unable-to-add-search-attributes/9946 "2023-10-27T00:40:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan\_hyland](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nathan_hyland/32/1054_2.png) [@nathan\_hyland](https://community.temporal.io/u/nathan_hyland)\
**Post date:** [October 27, 2023, 12:40am UTC](https://community.temporal.io/t/unable-to-add-search-attributes/9946/1 "2023-10-27T00:40:19Z")

</div>

Trying to add custom search attributes, getting the following:

```auto
temporal operator search-attribute create \ 
--name Product --type Text \
--name Company --type Text \
--name Status --type Text \
--address localhost:7234

Error: unable to add search attributes: Unable to create search attributes: cannot have more than 0 search attribute of type Keyword.

```

We’ve updated our charts to use visibility (backed by Aurora PG) but doesn’t look like it’s working.

```auto
server:
  enabled: true

  config:
    persistence:

      default:
        driver: sql

        sql:
          driver: postgres12
          host: ---
          port: 5432
          database: temporal
          user: postgres
          existingSecret: ---
          maxConns: 20
          maxConnLifetime: "1h"

      visibility:
        driver: sql

        sql:
          driver: postgres12
          host: ---
          port: 5432
          database: temporal_visibility
          user: postgres
          existingSecret: ---
          maxConns: 20
          maxConnLifetime: "1h"

```

---

<div class="post-metadata">

**Author:** ![nathan\_hyland](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nathan_hyland/32/1054_2.png) [@nathan\_hyland](https://community.temporal.io/u/nathan_hyland)\
**Post date:** [October 28, 2023, 2:35pm UTC](https://community.temporal.io/t/unable-to-add-search-attributes/9946/2 "2023-10-28T14:35:19Z")

</div>

Switching from Aurora to vanilla PG fixed it.
