<@U06C5GR8KM4> re <https://meltano.slack.com/arch...
# troubleshooting
v
@robert_espinoza re https://meltano.slack.com/archives/C01TCRBBJD7/p1654790402165969?thread_ts=1649878846.342039&amp;cid=C01TCRBBJD7
@visch Facing a similar issue. Did you use an environment variable when using an array kind in the config?
Yes I do!
You can set your kind equal to array
r
@visch I am using array kind in the settings, but the env variable is not being interpolated correctly. Here is the example, where “${GOOGLE_ADS_DEVELOPER_TOKEN}” is the string literal that appear after I output the config.json for the tap:
Copy code
settings:
  - name: login_customer_ids
    kind: array
config:
  login_customer_ids:
    - customerId: "${GOOGLE_ADS_CUSTOMER_ID}"
      loginCustomerId: "${GOOGLE_ADS_CUSTOMER_ID}"
Copy code
{
  "login_customer_ids": [
    {
      "customerId": "${GOOGLE_ADS_CUSTOMER_ID}",
      "loginCustomerId": "${GOOGLE_ADS_CUSTOMER_ID}"
    }
  ]
}
I am trying to get something like this:
Copy code
{
  "login_customer_ids": [
    {
      "customerId": "12345",
      "loginCustomerId": "12345"
    }
  ]
}
v
Normally you use env variables directly using
.env
or env variables Check out https://docs.meltano.com/guide/configuration#configuration-layers Let me know if you do/don't get there and how 😄
someone else may be able to help more too 😉
r
got this to work by using a string representation in the config block:
Copy code
login_customer_ids: "[{\"customerId\": \"${GOOGLE_ADS_CUSTOMER_ID}\", \"loginCustomerId\": \"${GOOGLE_ADS_CUSTOMER_ID}\"}]"