Error Message "Unable To Save Changes: Application Spec For AI Center Is Invalid" Appears When Changing Identity Token In ArgoCD In AI Center 2022.4

Error message "Unable to save changes: application spec for aicenter is invalid" appears when changing Identity Token in ArgoCD in AI Center 2022.4 .

Symptom: When changing Identity Token in ArgoCD in AI Center 2022.4, the following error message appears

Unable to save changes: application spec for aicenter is invalid: InvalidSpecError: Unable to generate manifests in : rpc error: code = Unknown desc = `helm template . --name-template aicenter --namespace uipath --kube-version 1.21 --values /tmp/helm353351827/aicenter/values.yaml --values
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api-versions v1/ServiceAccount --include-crds` failed exit status 1: Error: failed to parse /tmp/values-091825878.yaml: error converting YAML to JSON: yaml: line 17: could not find expected ':'

Root Cause: This is because there is a new line break after characters "accessToken: " and this format is broken.


Resolution: When replacing the Identity token, ensure to only replace the token part.