<@U04S8PLJWMT> [ { "id": "d3f59444-b6c...
# ask-ai
h
@kapa.ai [ { "id": "d3f59444-b6c2-ed11-8352-02109cb07381", "rowNumber": 1, "note": { "value": "" }, "AccountRef": {}, "AutoApplyPayments": { "value": false }, "BAccountID": { "value": 688 }, "BillingAddressOverride": { "value": false }, "BillingContactOverride": { "value": false }, "CreatedDateTime": { "value": "2023-03-14T222136.033+00:00" }, "CreditLimit": { "value": 0.0000 }, "CurrencyID": { "value": "USD" }, "CurrencyRateType": {}, "CustomerCategory": { "value": "I" }, "CustomerClass": { "value": "MISC" }, this is my response why fields is not returnig in airbyte low-code?
k
If your Airbyte low-code connector is not returning all the fields from your API response, there are a few common reasons based on the knowledge sources: 1. Schema Detection and Field Selection: Airbyte will only sync fields that are detected in the schema. If a field is not present in the schema, it will not be included in the output. Make sure to refresh the schema in your connection configuration after any changes to the source or connector. Also, check if you have deselected any fields in the schema configuration—by default, all detected fields are selected, but you can manually exclude some. Note that field selection is only available for top-level fields, not nested ones. If your fields are nested, they may not appear for selection or syncing unless your connector is configured to extract them properly [Configuring Schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields). 2. Connector YAML/Manifest Configuration: In low-code connectors, the YAML manifest defines how records are extracted. If your fields are nested (e.g., under a "value" key), you need to ensure your record selector and schema are configured to extract the correct path. If the connector is not set up to extract nested fields, those fields will not appear in the output. You may need to adjust the
record_selector
or use transformations to flatten or extract nested fields [Understanding the YAML file: Record selector](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/record-selector#transformations). 3. API Response Structure: If your API response wraps field values inside objects (e.g.,
"AutoApplyPayments": { "value": false }
), you need to configure the connector to extract the inner "value" for each field. This often requires specifying the correct field path in the schema or using transformations to flatten the structure. 4. Schema Refresh: If you recently changed the API or connector configuration, you must refresh the schema in Airbyte. Otherwise, new or changed fields may not be detected or synced [Configuring Schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields). If you have already checked these and the fields are still missing, it could be due to a misconfiguration in the connector's YAML manifest, especially in how it extracts and maps fields from the API response. Double-check your
record_selector
and schema definitions to ensure they match the structure of your API response. If you need to extract nested fields, you may need to use transformations in your connector YAML, such as:
Copy code
yaml transformations:   - type: AddFields     fields:       - path: ["AutoApplyPayments"]         value: "{{ record['AutoApplyPayments']['value'] }}"
This would flatten the nested "value" field into a top-level field. If you provide your connector YAML or more details about your configuration, I can give more specific guidance. Summary: - Refresh your schema after changes. - Ensure all fields are selected in the schema configuration. - Adjust your connector YAML to extract nested fields if needed. - Use transformations to flatten nested structures if your API response wraps values in objects. If these steps do not resolve your issue, please provide your connector YAML for further troubleshooting. References: - [Configuring Schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields) - [Understanding the YAML file: Record selector](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/record-selector#transformations)
h
@kapa.ai my schema chemas: Customer: type: object $schema: http://json-schema.org/schema# properties: id: type: - string - "null" note: type: - object - "null" properties: value: type: - string - "null"
k
A message from kapa.ai
Based on your provided schema and the sample response, it looks like your schema is only defining the fields
id
and
note
(with its nested
value
). If you want Airbyte to return additional fields from your response (such as
AutoApplyPayments
,
BAccountID
, etc.), you need to explicitly define them in your schema under
properties
. For example, to include
AutoApplyPayments
and its nested
value
, your schema should look like this:
Copy code
yaml Customer:   type: object   $schema: http://json-schema.org/schema#   properties:     id:       type:         - string         - "null"     note:       type:         - object         - "null"       properties:         value:           type:             - string             - "null"     AutoApplyPayments:       type:         - object         - "null"       properties:         value:           type:             - boolean             - "null"     BAccountID:       type:         - object         - "null"       properties:         value:           type:             - integer             - "null"     # Add other fields similarly...
Key points: - Airbyte only returns fields defined in your schema. - For each field in your response you want to sync, add a corresponding entry in the schema under
properties
. - For nested fields (like those with a
value
key), define them as objects with their own
properties
. If you do not define a field in the schema, Airbyte will not include it in the output, even if it is present in the response. This is standard behavior for Airbyte's schema-driven extraction process [see example and explanation](https://docs.airbyte.com/platform/connector-development/schema-reference). If you want to include all fields, you must enumerate them in your schema. If you need to handle many fields with similar structure, you may consider using
additionalProperties: true
in your schema, but be aware this will allow any extra fields and may not provide the strict typing you want. If you need more help, please provide the full list of fields you want to include, and I can help you extend your schema accordingly.
h
@kapa.ai if i need id to be returned in field, what should i do
k
A message from kapa.ai
To have the
id
field returned in your Airbyte output, you must ensure that the
id
field is defined in your stream's schema under
properties
. For example, your schema should include:
Copy code
yaml id:   type:     - string     - "null"
This tells Airbyte to expect and extract the
id
field from your source data. If the field is not defined in the schema, Airbyte will not include it in the output, even if it is present in the source response. This is standard for Airbyte's schema-driven extraction process [Schema Reference](https://docs.airbyte.com/platform/connector-development/schema-reference). So, make sure your schema includes the
id
field as shown above, and Airbyte will return it in the synced data.