trying to use stream_interval.start_time in a pagi...
# ask-ai
z
trying to use stream_interval.start_time in a pagination stop condition but getting this error: Jinja macro has undeclared variables: {'stream_interval'}
k
The error "Jinja macro has undeclared variables: {'stream_interval'}" indicates that the variable stream_interval is not available in the context where you're trying to use it. According to the Airbyte documentation, stream_interval is available in certain contexts, such as when configuring request parameters, headers, or body in the HttpRequester component, and in RecordFilter conditions for filtering records after retrieval. However, the documentation does not explicitly state that stream_interval is available in pagination stop conditions. If you attempt to use stream_interval in a context where it is not provided (such as a pagination stop condition), you will encounter this undeclared variable error. This is a known limitation, and the variable must be available in the context for Jinja to resolve it successfully. To resolve this, you should check the documentation for the specific variables available in the pagination context. If stream_interval is not listed, you will need to use another variable that is available, or adjust your connector logic so that the required value is accessible in the correct context. In summary, stream_interval is not guaranteed to be available in pagination stop conditions, and this is why you are seeing the error. The knowledge sources do not provide a workaround for making stream_interval available in this context, so you may need to reconsider your approach or consult further documentation or support channels for advanced use cases. References: - [HttpRequester available variables](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester) - [RecordFilter available variables](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/RecordFilter) - [Related issue: undeclared variable error](https://github.com/airbytehq/airbyte/issues/55209)