<@U04SE163WC8> why is my read_records function of ...
# ask-ai
k
@kapa.ai why is my read_records function of the stream not called
u
The
read_records
function of a stream in Airbyte is typically called during the data extraction process. If it's not being called, there could be several reasons: 1. Configuration Issues: Ensure that your configuration is correct and that the stream is included in the catalog you're trying to sync. 2. Stream Selection: The stream might not be selected for syncing. In the Airbyte UI, you can select which streams to sync. Make sure the stream associated with the
read_records
function is selected. 3. Errors in Other Parts of the Code: If there are errors in other parts of your code, it might prevent the
read_records
function from being called. Check your logs for any error messages or exceptions that might point to the issue. 4. Overriding Issues: If you're using a custom source connector and have overridden the
read_records
function, make sure it's implemented correctly. The function should output an iterable object containing records from the data source. If the function is not implemented correctly, it might not be called. 5. Sync Mode: The
read_records
function is called based on the sync mode (full refresh or incremental). If the sync mode doesn't match with the implementation of your
read_records
function, it might not be called. Please review your code and configuration. If the issue persists, consider raising an issue in the [Airbyte Github repository](https://github.com/airbytehq/airbyte/issues) for further assistance. Sources: - [Forum Post: IncrementalMixin - State Object > Answers Part 2](https://discuss.airbyte.io/t/466) - [Documentation > Connector-development > Cdk-python > Full Refresh Streams > Reading records from the data source](https://docs.airbyte.com/connector-development/cdk-python/full-refresh-stream#reading-records-from-the-data-source) - [How the Airbyte CDK read command works > Full Refresh Part 4](https://github.com/airbytehq/airbyte/discussions/33814) - [How the Airbyte CDK read command works Part 2](https://github.com/airbytehq/airbyte/discussions/33814) - [Documentation > Connector-development > Cdk-python > Resumable Full Refresh Streams > Conclusion](https://docs.airbyte.com/connector-development/cdk-python/resumable-full-refresh-stream#conclusion)