<@U04S8PLJWMT> I have an async stream that has th...
# ask-ai
l
@kapa.ai I have an async stream that has this status_mapping on the polling request - type: DeclarativeStream name: ativos retriever: type: AsyncRetriever decoder: type: JsonDecoder status_mapping: failed: - FAILED - CANCELED running: - PENDING - PLANNING - QUEUED - EXECUTION_PLANNING - ENGINE_START - METADATA_RETRIEVAL timeout: - NAO_TEM completed: - COMPLETED however, after upgrading to 2.0, the UI seems to break (it shows red on the status mapping field) when trying to execute in the yaml ui, it errors clearly: ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') AirbyteTracedException("At least one job could not be completed for slice {'start_time': '202506', 'end_time': '202511'}. Job statuses were: {'0db1c262-9587-4ac8-8b0c-9dafae3be76a': <AsyncJobStatus.FAILED: ('FAILED', True)>}. See warning logs for more information.") did the format change?
k
Based on the knowledge sources provided, the format for the status_mapping in an async stream has not changed in Airbyte 2.0 compared to previous versions. The status_mapping should still be an object with arrays for each possible status: running, completed, failed, and timeout. Each array should contain all possible status values returned by your API that correspond to that state. Your configuration appears to follow this format:
Copy code
yaml status_mapping:   failed:     - FAILED     - CANCELED   running:     - PENDING     - PLANNING     - QUEUED     - EXECUTION_PLANNING     - ENGINE_START     - METADATA_RETRIEVAL   timeout:     - NAO_TEM   completed:     - COMPLETED
However, the error message indicates that the API is returning a status value of RUNNING, which is not included in any of your status_mapping arrays. This means that Airbyte does not know how to handle the RUNNING status, resulting in the error: > ValueError('API status
RUNNING
is unknown. Contact the connector developer to make sure this status is supported.') To resolve this, you should add RUNNING to the running array in your status_mapping:
Copy code
yaml status_mapping:   failed:     - FAILED     - CANCELED   running:     - PENDING     - PLANNING     - QUEUED     - EXECUTION_PLANNING     - ENGINE_START     - METADATA_RETRIEVAL     - RUNNING   timeout:     - NAO_TEM   completed:     - COMPLETED
This approach is consistent with the documentation, which states: > Include all possible API status values in your status mapping. For each of these, you should put all of the possible status values that the API might return which indicate that the job is in that state. The connector first uses the Status Extractor to get the raw status value, then uses the Status Mapping to determine what action to take next. [Configuring an Asynchronous Stream](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/async-streams#polling-tab) There is no indication in the documentation that the format of status_mapping has changed in 2.0, but the requirement to include all possible status values remains critical. If a new status value appears in your API (like RUNNING), it must be added to the appropriate array in status_mapping to avoid errors. If you continue to see issues after updating the mapping, there may be a UI validation bug or a stricter validation in 2.0, but the underlying YAML structure remains the same according to the documentation.
l
@kapa.ai running with the UI,it shows "Must select an option" even when all of the status maps are filled
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain specific information about the "Must select an option" error in the status mapping field of the Airbyte 2.0 Connector Builder UI. The documentation does confirm that you should include all possible API status values in your status mapping and that the UI has been updated to align closely with the YAML specification, but it does not mention this particular UI validation error or provide troubleshooting steps for it [Better Connector Builder interface](https://docs.airbyte.com/release_notes/v-2.0#better-connector-builder-interface) [Best Practices for Asynchronous Streams](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/async-streams#best-practices-for-asynchronous-streams). If you have confirmed that all required status values are mapped and the error persists, it may be a UI bug or a new validation requirement not yet documented. In this case, you may want to reach out to Airbyte support or check for recent issues in the Airbyte community.