Hi <@U04S8PLJWMT>, I created a <customer.io> sourc...
# ask-ai
l
Hi @kapa.ai, I created a customer.io source via the UI successfully. However when I create it via terraform it fails with this message:
Copy code
**Request**:
│ POST /api/public/v1/sources HTTP/1.1
│ Host: localhost:9090
│ Accept: application/json
│ Authorization: (sensitive)
│ Content-Type: application/json
│ User-Agent: speakeasy-sdk/go 0.0.1 2.372.3 1.0.0
│ github.com/airbytehq/terraform-provider-airbyte/internal/sdk
│ 
│ 
│ **Response**:
│ HTTP/1.1 400 Bad Request
│ Content-Length: 202
│ Connection: keep-alive
│ Content-Type: application/json
│ Date: Wed, 13 Aug 2025 08:55:55 GMT
│ Server: nginx/1.27.2
│ 
│ {"status":400,"type":"https://reference.airbyte.com/reference/errors","title":"value-not-found","detail":"The
│ submitted value could not be
│ found.","documentationUrl":null,"data":{"value":"customer-io"}}
k
New message text here
The error message you are seeing:
Copy code
{
  "status": 400,
  "type": "https://reference.airbyte.com/reference/errors",
  "title": "value-not-found",
  "detail": "The submitted value could not be found.",
  "documentationUrl": null,
  "data": {
    "value": "customer-io"
  }
}
indicates that the Airbyte API does not recognize the value "customer-io" as a valid source type when creating the source via Terraform. This issue is similar to other cases reported for connectors like Google Drive and Brevo, where the API returns a "value-not-found" error if the mapping for the connector name is missing in the backend. In those cases, the connector could be created via the UI but not via the API or Terraform, because the UI uses the connector's definition ID directly, while the API expects a mapping from the source type name to the definition ID. If this mapping is missing, the API cannot resolve the connector type and returns this error. This has been confirmed as the root cause in several GitHub issues, such as for Google Drive and Brevo sources, and was resolved by adding the missing mapping in the Airbyte codebase [source-google-drive value-not-found](https://github.com/airbytehq/airbyte/issues/41660), [source-brevo value-not-found](https://github.com/airbytehq/airbyte/issues/49731). What you can do: - Check if the "customer-io" connector is available in your Airbyte instance's list of sources in the UI. If it is, but you still get this error via Terraform/API, it is likely that the mapping for "customer-io" is missing in your Airbyte backend. - As a workaround, you may be able to use the connector's
definition_id
directly in your Terraform configuration, if the provider supports it. This approach was used for custom and marketplace connectors in other cases, but the documentation does not guarantee it will work for all connectors. - Ultimately, this is a backend issue that needs to be fixed by adding the "customer-io" mapping in the Airbyte codebase. You may want to open a GitHub issue or check if one already exists for this connector. Summary: This is a known limitation with some connectors in Airbyte when using the API or Terraform, due to missing name-to-definition mappings. The connector works in the UI because the UI uses the definition ID directly, but fails via API/Terraform if the mapping is missing. There is no user-side fix except to request the mapping be added in Airbyte, or try using the definition ID if supported by your Terraform provider. If you need more details or want to track the status, you can refer to similar issues for other connectors: - [Google Drive value-not-found](https://github.com/airbytehq/airbyte/issues/41660) - [Brevo value-not-found](https://github.com/airbytehq/airbyte/issues/49731)