<@U04S8PLJWMT> i am unable to submit my connector ...
# ask-ai
s
@kapa.ai i am unable to submit my connector to community from low code, but when submitting getting this
Copy code
exceptionClassName:"io.airbyte.commons.server.builder.exceptions.UndefinedReferenceException"
message: "Undefined reference: #/streams/2 at streams/2"
I have test all streams, all are working there is not reference error in config but when submitting getting error.
k
The error you're encountering—`UndefinedReferenceException: Undefined reference: #/streams/2 at streams/2`—typically indicates that there is a reference in your connector's manifest (YAML/JSON) that points to a stream definition or object that does not exist or is not properly defined. From the knowledge sources, similar issues have occurred when using
$ref
or
*ref()
in low-code connector manifests. For example, in one forum post, a user tried to modularize their manifest using references, but received validation errors because the references were not resolved to valid objects. The error message you see is consistent with a reference that cannot be found or resolved at the specified path in your manifest. Even if your connector works in local tests, the submission process may use a stricter or different validation mechanism that catches unresolved references that local tests might not surface immediately. Key points to check: - Ensure every
$ref
or
*ref()
in your manifest points to a valid, defined object. - Double-check the numbering or naming of your streams—if you reference
streams/2
, make sure there is a third stream (since indexing is zero-based) defined in your manifest. - If you are using modular definitions, make sure all referenced definitions are present and correctly formatted. A similar issue was discussed where a user received a validation error due to a reference not being of the expected type or not being resolved properly in the manifest. The solution involved carefully reviewing the manifest to ensure all references were valid and correctly structured. See the discussion for more context: [Low code connector: jsonschema.exceptions.ValidationError](https://discuss.airbyte.io/t/3981) and [Low code connector: jsonschema.exceptions.ValidationError (modularization)](https://discuss.airbyte.io/t/3981). Recommendation: Carefully review your manifest for any references (e.g.,
$ref
,
*ref()
) and ensure that each one points to a valid, defined object. If you modularized your manifest, make sure all referenced blocks are present and correctly formatted. Even if your connector passes local tests, the submission validator may be stricter and catch issues that local testing does not. If after checking you still encounter the error, try simplifying your manifest to remove modular references and see if the error persists. This can help isolate the problematic reference. If you need more specific help, consider sharing the relevant part of your manifest (with sensitive data removed) in the Airbyte community forums for targeted advice.
s
@kapa.ai i have verified all streams are available. all references are working fine but submission throwing this error
k
A message from kapa.ai
I'm sorry you're encountering this error during submission. Based on the knowledge sources, this type of
UndefinedReferenceException
(e.g.,
Undefined reference: #/streams/2 at streams/2
) is typically related to how references are resolved in the connector manifest, especially when using modular or reusable definitions with
$ref
or
*ref()
syntax. However, the knowledge sources do not provide a definitive solution for cases where all streams and references appear valid and the connector works locally, but submission still fails with this error. The closest related issues suggest that the submission process may use a stricter or different validation mechanism than local testing, which can surface reference resolution problems not caught locally. For example, similar errors have been discussed in the Airbyte forums when modularizing manifests, and the resolution involved carefully reviewing all references and their targets, but no additional troubleshooting steps are documented for your specific scenario [Low code connector: jsonschema.exceptions.ValidationError](https://discuss.airbyte.io/t/3981). Summary: The knowledge sources do not contain enough information to provide a confident answer or a specific fix for your situation. If you have already verified all references and streams, and the error persists only during submission, you may need to reach out to Airbyte support or the community forums with your manifest for further assistance.
s
@kapa.ai do you want to see my config to verify it ?
k
A message from kapa.ai
Yes, if you share your config (with any sensitive information removed), I can review it for common issues related to undefined references or manifest structure. However, please note that the knowledge sources do not provide a step-by-step troubleshooting guide for this specific error, so my review will be based on patterns and issues discussed in the available documentation and forum posts. If the problem is highly specific or related to a recent change in the submission validator, the knowledge sources may not contain enough information for a definitive answer. Still, sharing your config could help identify any obvious issues or misconfigurations that align with known problems discussed in the sources [Low code connector: jsonschema.exceptions.ValidationError](https://discuss.airbyte.io/t/3981).
s
Copy code
- type: DeclarativeStream
    name: messages
    retriever:
      type: SimpleRetriever
      decoder:
        type: JsonDecoder
      paginator:
        type: DefaultPaginator
        page_size_option:
          type: RequestOption
          field_name: $top
          inject_into: request_parameter
        page_token_option:
          type: RequestOption
          field_name: $skiptoken
          inject_into: request_parameter
        pagination_strategy:
          type: CursorPagination
          page_size: 100
          cursor_value: >-
            {{ response.get('@odata.nextLink', '').split('$skiptoken=')[-1] if
            response.get('@odata.nextLink') else '' }}
          stop_condition: "{{ not response.get('@odata.nextLink') }}"
      requester:
        type: HttpRequester
        url: https://graph.microsoft.com/v1.0/me/messages
        http_method: GET
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
        request_parameters:
          $ref: "#/definitions/linked/HttpRequester/request_parameters"
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path:
            - value
    primary_key:
      - id
    schema_loader:
      type: InlineSchemaLoader
      schema:
        type: object
        $schema: http://json-schema.org/schema#
        required:
          - id
        properties:
          id:
            type: string
          from:
            type:
              - object
              - "null"
            properties:
              emailAddress:
                type:
                  - object
                  - "null"
                properties:
                  name:
                    type:
                      - string
                      - "null"
                  address:
                    type:
                      - string
                      - "null"
          isRead:
            type:
              - boolean
              - "null"
          subject:
            type:
              - string
              - "null"
          importance:
            type:
              - string
              - "null"
          bodyPreview:
            type:
              - string
              - "null"
          sentDateTime:
            type:
              - string
              - "null"
            format: date-time
          toRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          conversationId:
            type:
              - string
              - "null"
          hasAttachments:
            type:
              - boolean
              - "null"
          receivedDateTime:
            type:
              - string
              - "null"
            format: date-time
          internetMessageId:
            type:
              - string
              - "null"
        additionalProperties: true
  - type: DeclarativeStream
    name: messages_details
    retriever:
      type: SimpleRetriever
      decoder:
        type: JsonDecoder
      requester:
        type: HttpRequester
        url: >-
          https://graph.microsoft.com/v1.0/me/messages/{{
          stream_partition['message_id'] }}
        http_method: GET
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path: []
      partition_router:
        type: SubstreamPartitionRouter
        parent_stream_configs:
          - type: ParentStreamConfig
            stream:
              $ref: "#/streams/2"
            parent_key: id
            partition_field: message_id
    primary_key:
      - id
    schema_loader:
      type: InlineSchemaLoader
      schema:
        type: object
        $schema: http://json-schema.org/schema#
        required:
          - id
        properties:
          id:
            type: string
          body:
            type:
              - object
              - "null"
            properties:
              content:
                type:
                  - string
                  - "null"
              contentType:
                type:
                  - string
                  - "null"
          from:
            type:
              - object
              - "null"
            properties:
              emailAddress:
                type:
                  - object
                  - "null"
                properties:
                  name:
                    type:
                      - string
                      - "null"
                  address:
                    type:
                      - string
                      - "null"
          isRead:
            type:
              - boolean
              - "null"
          subject:
            type:
              - string
              - "null"
          importance:
            type:
              - string
              - "null"
          attachments:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                id:
                  type:
                    - string
                    - "null"
                name:
                  type:
                    - string
                    - "null"
                size:
                  type:
                    - number
                    - "null"
                contentType:
                  type:
                    - string
                    - "null"
          bodyPreview:
            type:
              - string
              - "null"
          ccRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          sentDateTime:
            type:
              - string
              - "null"
            format: date-time
          toRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          bccRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          conversationId:
            type:
              - string
              - "null"
          hasAttachments:
            type:
              - boolean
              - "null"
          receivedDateTime:
            type:
              - string
              - "null"
            format: date-time
          internetMessageId:
            type:
              - string
              - "null"
        additionalProperties: true
These two streams from my connector where messages is at 2 index and message_detail is on 3 and message_detail using 2 as reference which works fine but submission throwing error @kapa.ai
k
A message from kapa.ai
Thank you for sharing your config. Based on your description and the provided snippet, you have two streams:
messages
and
messages_details
. In
messages_details
, you are referencing the parent stream using:
Copy code
yaml stream:   $ref: "#/streams/2"
However, according to the Airbyte low-code connector documentation and examples, references to streams within the
partition_router
should use the stream's name or a reference to its definition, not its index in the streams array. Using an index like
#/streams/2
is not a documented or supported pattern in the official Airbyte YAML schema. This could be why the submission validator is failing, even if local tests pass. What you should do: - Instead of referencing by index, reference the stream by its definition or name as shown in the documentation and working examples. For example, if you have a definition for the
messages
stream in your
definitions
section, you should reference it like this:
Copy code
yaml stream:   $ref: "#/definitions/streams/messages"
or, if you are not using definitions, reference by name if supported. Supporting evidence: - The [official documentation](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/partition-router#nested-streams) and examples in the knowledge sources always reference streams by name or by definition, not by array index. - Similar issues in the Airbyte forums and GitHub issues have been resolved by correcting the way references are made, especially in modularized manifests [Low code connector: jsonschema.exceptions.ValidationError](https://discuss.airbyte.io/t/3981). Summary: The use of
#/streams/2
as a reference is likely causing the submission error. Update your reference to use the stream's name or definition path as per the documentation. If you do not have your streams defined in the
definitions
section, consider moving them there for easier referencing. If you update your reference and still encounter issues, please share the relevant part of your
definitions
section and the full
streams
array for further review.
s
@kapa.ai Could not validate your connector as specified: Error handling request: Undefined reference #/definitions/streams/messages from definitions/streams/messages
k
A message from kapa.ai
Based on the knowledge sources, Airbyte references in low-code YAML manifests should use the correct path and structure. The error you are seeing:
Copy code
Undefined reference #/definitions/streams/messages from definitions/streams/messages
indicates that the reference
#/definitions/streams/messages
does not exist in your manifest. According to the documentation, references should point to a valid, defined object in your YAML. For example, if you want to reference a stream, it must be defined under
definitions
with the correct path. Key points from the documentation: - References are resolved using the path you provide, such as
#/definitions/my_stream
if you have a stream defined as
my_stream
under
definitions
 [References](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/references). - There is no mention in the knowledge sources of a
streams
key under
definitions
by default. If you use
#/definitions/streams/messages
, you must have a structure like:
Copy code
yaml   definitions:     streams:       messages:         # stream definition here
If you do not have this structure, the reference will fail. - The correct way to reference a stream is to ensure the referenced path exists. For example, if your stream is defined as:
Copy code
yaml   definitions:     messages_stream:       # stream definition
Then you should reference it as
#/definitions/messages_stream
. What to do: - Double-check your manifest to ensure that the path you are referencing actually exists. - If you want to reference a stream called
messages
, define it under
definitions
as
messages
, not under a nested
streams
key unless you have that structure. - Do not use array indices (like
#/streams/2
) or undefined nested paths. Example from documentation:
Copy code
yaml partition_router:   type: SubstreamPartitionRouter   parent_stream_configs:     - stream: "#/repositories_stream"       parent_key: "id"       partition_field: "repository"       request_option:         type: RequestOption         field_name: "repository"         inject_into: "request_parameter"
Here,
#/repositories_stream
must exist at the root level or under
definitions
as
repositories_stream
 [SubstreamPartitionRouter](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/partition-router#substreampartitionrouter). Summary: The error means your reference path does not exist in your manifest. Update your manifest so that the referenced path (e.g.,
#/definitions/messages_stream
) matches the actual structure of your YAML. If you need to reference a stream, define it directly under
definitions
and reference it accordingly. If you need further help, please share the relevant part of your
definitions
section. If you have already checked this and the error persists, the knowledge sources do not provide further troubleshooting steps for this specific scenario.
s
@kapa.ai here are the streams with update ref
Copy code
- type: DeclarativeStream
    name: messages
    retriever:
      type: SimpleRetriever
      decoder:
        type: JsonDecoder
      paginator:
        type: DefaultPaginator
        page_size_option:
          type: RequestOption
          field_name: $top
          inject_into: request_parameter
        page_token_option:
          type: RequestOption
          field_name: $skiptoken
          inject_into: request_parameter
        pagination_strategy:
          type: CursorPagination
          page_size: 100
          cursor_value: >-
            {{ response.get('@odata.nextLink', '').split('$skiptoken=')[-1] if
            response.get('@odata.nextLink') else '' }}
          stop_condition: "{{ not response.get('@odata.nextLink') }}"
      requester:
        type: HttpRequester
        url: https://graph.microsoft.com/v1.0/me/messages
        http_method: GET
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
        request_parameters:
          $ref: "#/definitions/linked/HttpRequester/request_parameters"
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path:
            - value
    primary_key:
      - id
    schema_loader:
      type: InlineSchemaLoader
      schema:
        type: object
        $schema: http://json-schema.org/schema#
        required:
          - id
        properties:
          id:
            type: string
          from:
            type:
              - object
              - "null"
            properties:
              emailAddress:
                type:
                  - object
                  - "null"
                properties:
                  name:
                    type:
                      - string
                      - "null"
                  address:
                    type:
                      - string
                      - "null"
          isRead:
            type:
              - boolean
              - "null"
          subject:
            type:
              - string
              - "null"
          importance:
            type:
              - string
              - "null"
          bodyPreview:
            type:
              - string
              - "null"
          sentDateTime:
            type:
              - string
              - "null"
            format: date-time
          toRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          conversationId:
            type:
              - string
              - "null"
          hasAttachments:
            type:
              - boolean
              - "null"
          receivedDateTime:
            type:
              - string
              - "null"
            format: date-time
          internetMessageId:
            type:
              - string
              - "null"
        additionalProperties: true
  - type: DeclarativeStream
    name: messages_details
    retriever:
      type: SimpleRetriever
      decoder:
        type: JsonDecoder
      requester:
        type: HttpRequester
        url: >-
          https://graph.microsoft.com/v1.0/me/messages/{{
          stream_partition['message_id'] }}
        http_method: GET
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path: []
      partition_router:
        type: SubstreamPartitionRouter
        parent_stream_configs:
          - type: ParentStreamConfig
            stream:
              $ref: "#/definitions/streams/messages"
            parent_key: id
            partition_field: message_id
    primary_key:
      - id
    schema_loader:
      type: InlineSchemaLoader
      schema:
        type: object
        $schema: http://json-schema.org/schema#
        required:
          - id
        properties:
          id:
            type: string
          body:
            type:
              - object
              - "null"
            properties:
              content:
                type:
                  - string
                  - "null"
              contentType:
                type:
                  - string
                  - "null"
          from:
            type:
              - object
              - "null"
            properties:
              emailAddress:
                type:
                  - object
                  - "null"
                properties:
                  name:
                    type:
                      - string
                      - "null"
                  address:
                    type:
                      - string
                      - "null"
          isRead:
            type:
              - boolean
              - "null"
          subject:
            type:
              - string
              - "null"
          importance:
            type:
              - string
              - "null"
          attachments:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                id:
                  type:
                    - string
                    - "null"
                name:
                  type:
                    - string
                    - "null"
                size:
                  type:
                    - number
                    - "null"
                contentType:
                  type:
                    - string
                    - "null"
          bodyPreview:
            type:
              - string
              - "null"
          ccRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          sentDateTime:
            type:
              - string
              - "null"
            format: date-time
          toRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          bccRecipients:
            type:
              - array
              - "null"
            items:
              type:
                - object
                - "null"
              properties:
                emailAddress:
                  type:
                    - object
                    - "null"
                  properties:
                    name:
                      type:
                        - string
                        - "null"
                    address:
                      type:
                        - string
                        - "null"
          conversationId:
            type:
              - string
              - "null"
          hasAttachments:
            type:
              - boolean
              - "null"
          receivedDateTime:
            type:
              - string
              - "null"
            format: date-time
          internetMessageId:
            type:
              - string
              - "null"
        additionalProperties: true
k
A message from kapa.ai
Based on the knowledge sources, your reference in the
messages_details
stream:
Copy code
yaml stream:   $ref: "#/definitions/streams/messages"
will only work if you have actually defined a
messages
stream under
definitions/streams
in your manifest. However, in the standard Airbyte low-code YAML structure, streams are typically defined in the top-level
streams
array, not under
definitions/streams
. The documentation and examples show references like
"#/repositories_stream"
or
"#/definitions/my_stream"
, but not
"#/definitions/streams/messages"
unless you have explicitly created that nested structure [References](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/references). What this means for your config: - If your
messages
stream is only defined in the top-level
streams
array, you cannot reference it as `#/definitions/streams/messages`—that path does not exist, which is why you get an "Undefined reference" error. - The correct way, according to the documentation, is to define your reusable stream under
definitions
(not under
definitions/streams
), for example:
Copy code
yaml   definitions:     messages_stream:       # ...stream definition...
And then reference it as:
Copy code
yaml   stream:     $ref: "#/definitions/messages_stream"
- If you want to reference a stream defined in the top-level
streams
array, the knowledge sources do not document a supported way to do this using
$ref
. All examples use definitions under
definitions
. Actionable steps: 1. Move your
messages
stream definition under
definitions
(not under
definitions/streams
), for example:
Copy code
yaml     definitions:       messages_stream:         type: DeclarativeStream         name: messages         # ...rest of the stream definition...
2. Reference it in your
messages_details
stream as:
Copy code
yaml     stream:       $ref: "#/definitions/messages_stream"
3. In your top-level
streams
array, you can then reference the definitions:
Copy code
yaml     streams:       - $ref: "#/definitions/messages_stream"       - $ref: "#/definitions/messages_details_stream"
Summary: Your current reference path does not match the structure expected by Airbyte's manifest parser. You need to define your streams under
definitions
and reference them accordingly. The knowledge sources do not document support for referencing streams by index or from the top-level
streams
array [References](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/references). If you follow this structure and still encounter issues, please share your full manifest structure (with sensitive data removed) for further review.