Basedecode64 issue in Terraform

When I try to use basedecode64 function in terraform to decode Secrets got the below error.

Call to function “base64decode” failed: failed to decode base64 data

(sensitive value).

Can any one help me how to fix this issue