<@U04S8PLJWMT> in the builder UI I have an API cal...
# ask-ai
a
@kapa.ai in the builder UI I have an API call that returns this : [ { "query_parameters": { "usage_point_id_total_count": 56, "page_total_count": 1, "actual_page_number": 1 }, "usage_point_id": [ "50012981971292", "50073082478088", "50094301420477" ] } ] I would like to only retreive the field usage_point_id to use it as a parent_stream. How to acheive it ?
k
To use only the
usage_point_id
field as the partition values for a parent stream in the Airbyte Connector Builder UI, you need to configure the parent stream so that it outputs each
usage_point_id
as a separate record. By default, Airbyte expects the parent stream to emit one record per partition value (not an array of values in a single record). However, the knowledge sources do not describe a built-in way in the Builder UI to automatically "explode" an array field (like
usage_point_id
) into multiple records for partitioning.
This is a known limitation, as highlighted in a related [GitHub issue](https://github.com/airbytehq/airbyte/issues/36456), where users report that arrays are treated as a single string rather than as multiple partition values. ### What you can do: - Record Selector: If possible, set the record selector of your parent stream to point directly to the
usage_point_id
array. For your JSON, you would set the record selector to
$.usage_point_id
. This would make each element of the array a separate record, which can then be used as partition values. - In the Builder UI, this is typically done in the "Record Selector" field of the stream configuration. - Limitation: If your API response structure is always as shown (an array with a single object containing the
usage_point_id
array), the record selector approach should work. But if you have more complex nesting, or if the Builder UI does not allow you to select an array inside an object as the record set, you may hit the limitation described above. - No Built-in Array Explode: There is currently no built-in transformation in the Builder UI to "explode" an array field into multiple records for partitioning. This is a known issue and may require a custom connector or a future feature update to fully support this use case [GitHub Issue](https://github.com/airbytehq/airbyte/issues/36456). ### Example Configuration If your API response is:
Copy code
json [   {     "usage_point_id": [       "50012981971292",       "50073082478088",       "50094301420477"     ]   } ]
Set the record selector to:
Copy code
$.usage_point_id
This should yield records:
Copy code
json "50012981971292" "50073082478088" "50094301420477"
Each of these can then be used as a partition value in your child stream configuration. --- Summary: - Try setting the record selector to
$.usage_point_id
in your parent stream. - If this does not work due to Builder UI limitations, you may need to wait for a feature update or implement a custom connector. - There is no built-in "explode array" transformation in the Builder UI as of now. For more details, see the discussion in this [GitHub issue](https://github.com/airbytehq/airbyte/issues/36456) and the documentation on [Parent Stream partitioning](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#parent-stream).
a
@kapa.ai $.usage_point_id does not work
k
A message from kapa.ai
Thank you for your clarification. Based on the knowledge sources, the Airbyte Connector Builder UI currently does not provide a built-in way to "explode" an array field (like
usage_point_id
) into multiple records directly for use as parent stream partitions. This limitation is confirmed in a related GitHub issue, where users report that when an array is present in a parent stream record, Airbyte treats the entire array as a single element rather than splitting it into individual partition values. Attempts to use transformations or selectors like
$.usage_point_id
do not resolve this, as the Builder UI does not support this pattern out of the box [connector-builder Pagination - Parent stream JSON array processed as string not array](https://github.com/airbytehq/airbyte/issues/36456). Summary: - The Builder UI cannot currently split an array field into multiple records for partitioning. - There is no documented workaround in the official docs to achieve this solely within the Builder UI. - This is a known limitation and may require a custom connector or future feature support. If you need this functionality, you may want to follow or comment on the linked GitHub issue for updates.
a
@kapa.ai New option I put the usage_point_id in the parametrized requests fields as value list but it returns an error whe nI put mor than one id ..
k
A message from kapa.ai
If you are using the Parameterized Requests component in the Airbyte Connector Builder UI and you enter multiple
usage_point_id
values as a value list, but encounter an error when specifying more than one ID, this could be due to how the parameter values are expected to be formatted. According to the documentation, the "Parameter Values" field should be set to a list of strings, each representing a single partition value. For example, you should enter:
Copy code
["50012981971292", "50073082478088", "50094301420477"]
Each value in the list should be a string, not a single string with comma-separated values. If you enter something like
"50012981971292,50073082478088"
, it will be treated as one value, not multiple partitions, and may cause errors. Steps to configure: 1. In the Parameterized Requests component, set "Parameter Values" to a list of strings as shown above. 2. Set the "Current Parameter Value Identifier" (e.g.,
usage_point_id
). 3. Configure how to inject the parameter value into the outgoing HTTP request (e.g., as a query parameter or in the path). If you follow this format and still encounter errors, the knowledge sources do not provide further troubleshooting steps for this specific issue. The documentation only describes the expected configuration and does not mention known bugs or additional requirements for handling multiple values in the Parameterized Requests component. If the error persists, it may be a bug or limitation in the current version of the Builder UI, and you may need to consult Airbyte support or check for updates. For reference, see the section on static partitioning and parameterized requests: [Dynamic and static partitioning](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#dynamic-and-static-partitioning)
a
My value list looks like this : 50012981971292, 50073082478088, 50094301420477 It shows 3 fields in the UI
@kapa.ai My value list looks like this : 50012981971292, 50073082478088, 50094301420477 It shows 3 fields in the UI
k
A message from kapa.ai
Based on the knowledge sources, when configuring the Parameterized Requests component in the Airbyte Connector Builder UI, the "Parameter Values" field expects a list of strings, not a single comma-separated string. If you enter:
Copy code
50012981971292, 50073082478088, 50094301420477
the UI may interpret this as three separate fields, but it is likely treating each as a single string (with or without spaces), not as a true list of values. The correct way, as shown in the documentation, is to enter each value as a separate item in the list, not as a single comma-separated string: - In the UI, you should add each value individually, so it looks like: -
50012981971292
-
50073082478088
-
50094301420477
Or, if you are editing a JSON or YAML field directly, it should look like:
Copy code
json ["50012981971292", "50073082478088", "50094301420477"]
This ensures that each value is treated as a separate partition, and the connector will make a separate request for each value as intended. If you enter them as a single string with commas, it will not work as expected and may cause errors or unexpected behavior, as the documentation describes for static partitioning and parameterized requests [Dynamic and static partitioning](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#dynamic-and-static-partitioning). If you are using the UI, make sure to enter each value in its own input field, not as a single comma-separated string. If you still see three fields but experience errors, please ensure there are no extra spaces or formatting issues. Summary: - Enter each
usage_point_id
as a separate value, not as a single comma-separated string. - The UI should show three separate entries, each corresponding to one ID. - This matches the expected configuration in the documentation. If you follow this approach and still encounter issues, the knowledge sources do not provide further troubleshooting steps for this specific scenario.
a
@kapa.ai The YAML generated by the UI looks like this : - type: ListPartitionRouter values: - '24380173484590' - '50068550059512' cursor_field: usage_point_id request_option: type: RequestOption field_name: usage_point_id inject_into: request_parameter
k
A message from kapa.ai
Your YAML configuration for the
ListPartitionRouter
is correct according to the Airbyte documentation. Here’s a breakdown of what each field does, based on the knowledge sources:
Copy code
yaml - type: ListPartitionRouter   values:     - '24380173484590'     - '50068550059512'   cursor_field: usage_point_id   request_option:     type: RequestOption     field_name: usage_point_id     inject_into: request_parameter
- type: ListPartitionRouter Specifies that this partition router will iterate over a static list of values. - values This is the list of partition values. Each value will be used in a separate request. The documentation shows this as the correct way to specify multiple values:
Copy code
yaml   values:     - "section_a"     - "section_b"     - "section_c"
[ListPartitionRouter object](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ListPartitionRouter) - cursor_field: usage_point_id This is the name of the field that will be referenced for each partition value. - request_option This block tells Airbyte how to inject the current partition value into the outgoing HTTP request. In your case, it will be added as a request parameter named
usage_point_id
. This configuration will result in Airbyte making separate requests for each
usage_point_id
value, injecting them as a request parameter, which matches the documented behavior for static partitioning using a list partition router [Retrieving Records Spread Across Partitions](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/partition-router). If you are seeing errors, ensure that: - The API you are calling expects the
usage_point_id
as a request parameter. - The rest of your connector configuration is correct. If you follow this structure, it should work as intended according to the official documentation. If you encounter a specific error, please provide the error message for further assistance.
a
@kapa.ai The connector builder logs show this : [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: 2025-08-27 133559,334 [io-executor-thread-38] ERROR i.a.w.i.VersionedAirbyteStreamFactory(internalLog):315 - Giving up _send(...) after 1 tries (airbyte_cdk.sources.streams.http.exceptions.DefaultBackoffException: ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))) [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: 2025-08-27 133559,335 [io-executor-thread-38] ERROR i.a.w.i.VersionedAirbyteStreamFactory(internalLog):315 - Encountered an exception while reading stream daily_production [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: Traceback (most recent call last): [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: File "/home/airbyte/.pyenv/versions/3.10.15/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 152, in read [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: yield from self._read_stream( [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: File "/home/airbyte/.pyenv/versions/3.10.15/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 276, in _read_stream [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: for record_data_or_message in record_iterator: [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: File "/home/airbyte/.pyenv/versions/3.10.15/lib/python3.10/site-packages/airbyte_cdk/sources/streams/core.py", line 196, in read [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: for record_data_or_message in records: [Aug 27 2025 153559 GMT+0200] airbyte-connector-builder-server-8649d9887b-9lvjg: File "/home/airbyte/.pyenv/versions/3.10.15/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 154, in read_records
k
A message from kapa.ai
The error message in your connector builder logs:
Copy code
ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
indicates that the remote server closed the connection without sending a response. This is not an Airbyte-specific error, but rather a network or server-side issue encountered during the HTTP request. Relevant points from the knowledge sources: - This type of error is caught by Airbyte's backoff and retry logic, as seen in other logs and issues. For example, similar errors are handled by the Airbyte CDK's backoff strategy, which retries on connection errors or rate limits, but will eventually give up if the error persists [Can not config Error Handler for Backoff Strategy](https://github.com/airbytehq/airbyte/issues/42928). - The error is not related to your partition router or parameterized requests configuration, but rather to the HTTP connection between Airbyte and your API endpoint. - The knowledge sources do not provide a specific solution for this error, but general troubleshooting steps include: - Checking if the API endpoint is available and stable. - Verifying that the request parameters (such as
usage_point_id
) are correct and accepted by the API. - Ensuring there are no network issues or firewalls blocking the connection. Summary: This error is a generic connection issue between Airbyte and your API, not a misconfiguration in your connector YAML. The knowledge sources do not provide a connector-specific fix for this error. If the problem persists, you may need to check the API server logs or network connectivity, or consult your API provider for more details. If you have recently changed your partitioning or parameter injection, double-check that the API accepts the requests as constructed, but the error itself is not caused by Airbyte's partitioning logic according to the available documentation and issues.
a
@kapa.ai Does the parametrized requests are sent in the same time ? Maybe the API does not support this and need to be called one by one
k
A message from kapa.ai
Yes, by default, Airbyte can send parameterized requests in parallel, depending on the concurrency settings of your connector. The number of simultaneous requests is controlled by the Concurrency Level configuration in the Connector Builder UI. You can set the Default Concurrency to control how many requests are sent at the same time. For example, if you set the concurrency to
5
, Airbyte will attempt to send up to 5 requests in parallel. If your API does not support concurrent requests and requires them to be sent one by one, you should set the concurrency level to `1`:
Copy code
yaml concurrency_level:   default_concurrency: 1
This will ensure that requests are sent sequentially, one after another, rather than in parallel. You can configure this in the Builder UI under the "Concurrency Level" section or directly in your YAML as shown above. For more details, see the documentation on concurrency level configuration [Global Configuration](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/global-configuration) and [ConcurrencyLevel object](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). Note: If you set concurrency to
1
, be aware that, as mentioned in the documentation, a value of
1
could create deadlock if a stream has a very high number of partitions, so use this setting with caution if you expect a large number of requests [ConcurrencyLevel object](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel).
a
@kapa.ai Can i put
Copy code
concurrency_level:
  default_concurrency: 1
In the stream level YAML ?
k
A message from kapa.ai
Based on the knowledge sources, the
concurrency_level
configuration is defined as a component that can be used in the YAML manifest, but the documentation does not explicitly state whether it can be set at the stream level or only at the global (connector) level. The examples and references provided in the documentation show
concurrency_level
as a top-level (global) configuration, and there is no clear example or mention of setting it within an individual stream definition. The documentation for the [ConcurrencyLevel object](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel) describes its properties and usage, but does not specify stream-level usage. Summary: I'm sorry, but the knowledge sources do not explicitly mention whether you can set
concurrency_level
at the stream level in the YAML. All documented examples and references show it as a global configuration. If you need per-stream concurrency control, this may not be supported or documented at this time.