Hari Haran R
11/19/2025, 6:40 AMkapa.ai
11/19/2025, 6:40 AM'list' object has no attribute 'items' in a custom CDK connector is typically caused by an invalid JSON schema in the connector’s spec (or, less commonly, in catalog schemas), where a field that should be an object/dict is defined as a list/array. Two closely related cases from the knowledge base: 1. Spec properties defined as a list instead of an object A user got the same stack trace during check, and the root cause was that they had defined properties as a list instead of a dict in the connector spec; fixing the spec to use an object resolved the issue.[[Custom python source error](https://discuss.airbyte.io/t/2869)] Example of the correct pattern in a spec (pseudo‑example): json { "connectionSpecification": { "type": "object", "properties": { "api_key": { "type": "string" } } } } If properties is a list (e.g., []) instead of an object ({}), you’ll hit this error when Airbyte tries to iterate items() on it. 2. Schema items defined as an array instead of an object For normalization, a similar error pattern occurs if you define array fields like: json "courses": { "type": "array", "items": [ { "type": "string" } ] // ❌ wrong } The correct form is: json "courses": { "type": "array", "items": { "type": "string" } } because items must be a single object, not an array.[[Normalization failing list](https://discuss.airbyte.io/t/2319)] Why it works in Airbyte A but not in Airbyte B, even with the “same version”: - The error is raised when Airbyte parses the connector spec and schemas. In the example above, the bad spec wasn’t caught by spec but appeared during check and runtime use.[[Custom python source error](https://discuss.airbyte.io/t/2869)] - This means small environment differences can trigger the error in one deployment but not the other: - Different connector image/tag actually running (e.g., different built image loaded into each k8s cluster). - One cluster using an older/newer CDK or connector code (even if Airbyte core version is the same). - Spec or catalog file on disk differs between A and B (e.g., config map, mounted volume, or image version discrepancy). From the docs, when running in kind/k8s, you must explicitly load the correct connector image into the cluster with something like: bash kind load docker-image <image-name>:<image-tag> -n airbyte-abctl # e.g. kind load docker-image airbyte/source-custom:1 -n airbyte-abctl If Airbyte B is still using an older/broken image while Airbyte A has the fixed one, you’ll see different behavior.[[Loading connector image](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind)] What to check concretely on Airbyte B: 1. Connector spec JSON - Run python main.py spec (in the connector container/image used by Airbyte B) and inspect: - connectionSpecification.type is "object". - connectionSpecification.properties is an object, not a list. 2. Catalog/schema JSON (if you provide one) - Ensure all properties are objects, not arrays. - Ensure every type: "array" has items as a single object, not a list. 3. Confirm you’re using the exact same connector image in both clusters - Check the image name+tag configured for the custom connector in Airbyte A vs B. - If you rebuilt the connector, re‑load the same image into the B cluster (or whatever orchestrator you use) as in A, using the kind load docker-image (or equivalent for your k8s setup).[[Loading connector image](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind)] If, after confirming the image is identical and the spec/catalog are correct, you still only see the error on Airbyte B, the knowledge sources do not provide more specific guidance for that scenario.Hari Haran R
11/19/2025, 6:51 AMkapa.ai
11/19/2025, 6:51 AMkapa.ai
11/19/2025, 6:51 AM'list' object has no attribute 'items'. The knowledge sources still point to the same underlying root cause: some JSON schema (most often the spec’s connectionSpecification or sometimes a config/schema used at runtime) contains a list where Airbyte expects an object/dict, e.g.: - properties defined as a list instead of an object.[[Custom python source error](https://discuss.airbyte.io/t/2869)] - items for an array defined as an array instead of a single object.[[Normalization failing list](https://discuss.airbyte.io/t/2319)] However, they don’t explain why this would only surface on one deployment if the images and versions are truly identical. That asymmetry is not covered in the docs/issues. Given the constraints of the sources, the only concrete, supported next steps are: 1. Verify the exact spec Airbyte B is seeing Even if the image is the same, something in the deployment could be overriding or mounting a different spec/config on B: - From inside the connector container that Airbyte B runs, execute: bash python main.py spec and inspect the output: - connectionSpecification.properties must be an object, not a list.[[Custom python source error](https://discuss.airbyte.io/t/2869)] - Compare that JSON byte‑for‑byte with the spec output from Airbyte A. 2. Check any JSON schemas used by the connector If your connector uses static catalogs or schemas: - Confirm no field has "items": [ ... ] (an array) – it must be a single object, e.g.: ```json "courses": { "type": "array", "items": { "type": "string" } } ```[[Normalization failing list](https://discuss.airbyte.io/t/2319)] 3. Confirm the runtime environment really matches The error in the referenced case occurred during check when Airbyte tried to walk the spec structure using items(), and was only exposed in that particular environment.[[Custom python source error](https://discuss.airbyte.io/t/2869)] The knowledge sources do not detail more subtle environmental causes (e.g., different CDK versions in the venv, different mounted config files, etc.), but those are the only remaining explanations if the image and Airbyte version are identical. Beyond these checks, the available documentation and forum posts do not provide an additional, environment‑specific reason for seeing the error only on Airbyte B.Hari Haran R
11/19/2025, 6:52 AMkapa.ai
11/19/2025, 6:52 AMkapa.ai
11/19/2025, 6:53 AMINFO Property discarded: not maching with properties schema: record id:1, property_value: parent_id means Airbyte is intentionally dropping a field (parent_id) from the record because it does not match the declared JSON schema for that stream. From the available sources we can infer: - Airbyte validates each record against the stream’s json_schema – only properties defined in properties (or allowed via additionalProperties: true) are kept. When something doesn’t match, it can be discarded or cause errors in later steps (e.g., normalization or transformations) if the schema and data disagree.[json_schema / properties issues](https://discuss.airbyte.io/t/2827) - Changes in how strictly Airbyte enforces schemas across versions have caused custom connectors that previously “just passed through” extra data to start dropping or erroring when the JSON schema was incomplete or incorrect.[Commcare schema behavior change](https://github.com/airbytehq/airbyte/issues/30027) In your case: - parent_id is being discarded because the stream’s json_schema.properties does not include parent_id (or the type doesn’t match). - If you then rely on parent_id in transformations (e.g. in the Connector Builder), you’ll see missing/incorrect values because that field is no longer in the validated record. This matches the behavior described in the open bug where stream_partition["parent_id"] or related fields behave unexpectedly inside transformations.[Partition bug](https://github.com/airbytehq/airbyte/issues/59117) Why only in Airbyte B? The documents don’t give a definitive reason for why two k8s deployments with “the same version” and same image would differ. However, the only documented levers that affect this are: - The effective schema/catalog Airbyte is using for that connection. - The schema‑change settings of the connection (e.g. whether new fields are propagated).[Schema change settings](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting) If the connection in Airbyte B has a different saved catalog (e.g. older discovery result, or schema changes not propagated), Airbyte B may have a schema that doesn’t include parent_id, while Airbyte A’s catalog does. ### What you can reliably do (based on docs/issues) 1. Inspect the saved stream schema in Airbyte B - In the UI, open the connection → Schema tab and look at the problematic stream. - Check whether parent_id is present under properties, and that its type matches the actual data (e.g. string vs number). If it’s missing, Airbyte will discard it. 2. Refresh / propagate schema in Airbyte B - Click Refresh source schema in the Schema tab and then: - If you use automatic schema propagation, ensure Detect and Propagate Schema Changes is set to Propagate field changes only or Propagate all field and stream changes.[Schema change settings](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting) - If you use “Approve all changes myself”, review the detected changes and explicitly approve/Save so the new parent_id field is added to the catalog.[Schema change manual](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#review-detected-non-breaking-schema-changes) 3. If using Connector Builder / declarative manifest - Open the Builder for this connector, go to the stream definition, and ensure: - parent_id is defined under the stream’s schema (or additionalProperties: true is set if you truly want to allow arbitrary fields). - Re‑publish and re‑run discovery so the updated schema is saved to the connection. If, after confirming that parent_id is correctly defined in the schema for Airbyte B and schema‑change settings are aligned, you still get the “Property discarded” message, the knowledge sources do not provide further details on this specific discrepancy between two otherwise identical deployments.Hari Haran R
11/19/2025, 6:58 AMkapa.ai
11/19/2025, 6:58 AMkapa.ai
11/19/2025, 6:58 AMdestination ERROR lines are misleading: they look like errors, but in this case they are just the Snowflake JDBC driver logging normal upload activity at ERROR level (file access and successful upload). This exact behavior is reported as a bug in the Snowflake destination where non‑error messages are emitted as ERROR after an update.[[Snowflake wrong error logs](https://github.com/airbytehq/airbyte/issues/55838)] Key points from the knowledge sources: - Messages like: - Get file to upload: Accessing file: ... - Starting upload from file ... - Uploaded file ... It took XXX ms with 0 retries are not failures; they describe a successful upload but are logged as ERROR by the Snowflake driver/destination.[[Snowflake wrong error logs](https://github.com/airbytehq/airbyte/issues/55838)] - The real failure in your snippet is: text io.airbyte.commons.exceptions.TransientErrorException: Some streams were unsuccessful due to a source error. See logs for details. This is raised by the destination when at least one stream is marked unsuccessful because of a source‑side error, and it appears in many issues across different connectors (Shopify, Jira, MySQL CDC, Zendesk, etc.).[[Jira incomplete stream](https://github.com/airbytehq/airbyte/issues/58082); [MySQL CDC transient](https://github.com/airbytehq/airbyte/issues/50856)] So, from these logs alone: - The Snowflake upload lines do not indicate a problem. - The actual problem is upstream (in your custom source connector or in Airbyte’s handling of it), leading to Some streams were unsuccessful due to a source error. - The knowledge sources do not include enough detail to say exactly which source error you’re hitting; you need to inspect the source logs for this job (look for Python/stack traces or schema errors like 'list' object has no attribute 'items' or discarded properties) to find the root cause. In short: treat the Snowflake “ERROR” upload messages as noise; focus on the source logs and any “INCOMPLETE stream status” messages to debug why the stream is marked unsuccessful. The documentation does not provide a more specific fix beyond that.