# Custom Search Attributes not appearing post upgrade to 1.20.1

**URL:** <https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904>\
**Category:** Server Deployment\
**Tags:** server\
**Created:** [April 13, 2023, 4:19pm UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904 "2023-04-13T16:19:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kishore\_Gunda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_gunda/32/1495_2.png) [@Kishore\_Gunda](https://community.temporal.io/u/Kishore_Gunda)\
**Post date:** [April 13, 2023, 4:19pm UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/1 "2023-04-13T16:19:51Z")

</div>

Hi,

We have hit an issue post upgrade the server from 1.19.1 to 1.20.1. We do have around 10 custom search attributes added on our elastic search and as well as temporal server, this has been added via tctl in previous versions.

Post upgrade to 1.20.1 version, the custom attributes aren’t available on temporal server. However these attributes are still available on elastic search. Current version of elastic search is 7.17.2 and we use cassandra DB

When we try to add the attribute using tctl, it does get added only when we provide namespace field in tctl. Please can you guide us here if we need to make any flag/settings change prior to upgrade to 1.20.1

tctl --auto\_confirm --address [dev-frontend.net:443](http://dev-frontend.net:443) --tls\_ca\_path ca.pem --headers\_provider\_plugin /usr/local/bin/tctl-authorization-plugin --namespace sandbox admin cluster add-search-attributes --name TextAttribute3 --type Text;

---

<div class="post-metadata">

**Author:** ![Dhanraj](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/dhanraj/32/1790_2.png) [@Dhanraj](https://community.temporal.io/u/Dhanraj)\
**Post date:** [April 18, 2023, 1:10pm UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/2 "2023-04-18T13:10:40Z")

</div>

Hi @tihomir , can you please advice on this post?

---

<div class="post-metadata">

**Author:** ![Kishore\_Gunda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_gunda/32/1495_2.png) [@Kishore\_Gunda](https://community.temporal.io/u/Kishore_Gunda)\
**Post date:** [April 26, 2023, 2:41pm UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/3 "2023-04-26T14:41:58Z")

</div>

@tihomir , we have upgraded to latest version of server to 1.20.2 as well and we don’t see the custom search attributes on server. If we rollback to 1.19.1 version, we are able to see the custom attributes. Please advise if any additional setup to be done on 1.20.1 or 1.20.2 version to see the custom search attributes.

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [April 27, 2023, 12:16am UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/4 "2023-04-27T00:16:03Z")

</div>

What do you use for visibility/advanced visibility stores? Elastic, SQL db?

---

<div class="post-metadata">

**Author:** ![deepakkumar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/deepakkumar/32/3529_2.png) [@deepakkumar](https://community.temporal.io/u/deepakkumar)\
**Post date:** [April 27, 2023, 5:10am UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/5 "2023-04-27T05:10:39Z")

</div>

For us, the issue was, we were using old helm chart. After pulling the latest helm, it worked for us.  
You have to define only one of the visibility or advancedVisibility store.

> <https://github.com/temporalio/temporal/pull/3889/files>
>
> \*\*What changed?\*\*
> Fix docker config template to set up only one visibility stor…e.
> 
> 
> \*\*Why?\*\*
> Having both standard and advanced visibility store configs make the Server to set up dual visibility store, which messes up with search attributes.
> 
> 
> \*\*How did you test it?\*\*
> Build docker images, ran it, and checked logs.
> 
> 
> \*\*Potential risks\*\*
> No.
> 
> 
> \*\*Is hotfix candidate?\*\*
> No.

---

<div class="post-metadata">

**Author:** ![Kishore\_Gunda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_gunda/32/1495_2.png) [@Kishore\_Gunda](https://community.temporal.io/u/Kishore_Gunda)\
**Post date:** [April 27, 2023, 5:35am UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/6 "2023-04-27T05:35:25Z")

</div>

We use Elastic version (7.17.2). As mentioned on the topic, we can find the custom search attributes on elastic search.

---

<div class="post-metadata">

**Author:** ![Kishore\_Gunda](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_gunda/32/1495_2.png) [@Kishore\_Gunda](https://community.temporal.io/u/Kishore_Gunda)\
**Post date:** [May 4, 2023, 10:09pm UTC](https://community.temporal.io/t/custom-search-attributes-not-appearing-post-upgrade-to-1-20-1/7904/7 "2023-05-04T22:09:24Z")

</div>

Thank you @deepakkumar , we have changed our config and we were able to see the custom attributes on new server version.
