how to clear metadata or any persisted data of air...
# ask-ai
a
how to clear metadata or any persisted data of airbyte oss
k
To clear metadata or any persisted data in Airbyte OSS, you can follow these steps: 1. Uninstall Airbyte and Delete Persisted Data Use the following command to stop all running containers and delete all persisted data (including metadata, configuration, and state):
Copy code
abctl local uninstall --persisted
2. Remove Remaining Data on Disk After uninstalling, remove any remaining data that
abctl
created on your local disk:
Copy code
rm -rf ~/.airbyte/
This will ensure that all Airbyte-related data, including metadata and any persisted state, is deleted from your system. These steps will reset your Airbyte OSS environment to a clean state, removing all metadata and persisted data. Be aware that this action is irreversible and all your Airbyte configurations and data will be lost. For more details, see the official documentation: [Uninstall Airbyte](https://docs.airbyte.com/platform/using-airbyte/getting-started/oss-quickstart#uninstall-airbyte), [Resetting the Airbyte developer environment](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment).
a
@kapa.ai now i have added all the stream of shopify during connection creation using oss api but order products and customers is not getting synced by default i have to manually enable it why?
k
A message from kapa.ai
When you create a Shopify connection in Airbyte OSS and add all streams via the API, some streams like orders, products, and customers may not be enabled for sync by default. This is expected behavior in Airbyte: after discovering available streams, you must explicitly enable the streams you want to sync in the connection's schema settings. By default, Airbyte does not enable all discovered streams for syncing. You need to manually select (enable) the streams you want to sync in the "Schema" tab of your connection. This applies whether you use the UI or the API. If you want certain streams (like orders, products, and customers) to be synced, you must ensure they are enabled in your connection configuration. This is a safeguard to prevent syncing unnecessary data and to give you control over what is replicated to your destination. You can enable streams either through the UI or by specifying them in your API request when creating or updating the connection. If you do not explicitly enable a stream, it will not be synced—even if it is available from the source connector. This is documented in the Airbyte schema configuration documentation: > On the "Schema" tab of a connection, you choose which streams to sync and how they are loaded to the destination. To modify which streams are enabled: ... Toggle the checkbox on or off for your selected stream. ... To select or deselect all streams at once, use the summary toggle for all the streams in the namespace. ... To select or deselect an individual stream, use the toggle in its row. [Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema) If you are using the API, make sure your connection configuration includes the streams you want to sync and that their "selected" property is set to true. Summary: Orders, products, and customers are not synced by default because Airbyte requires you to explicitly enable each stream you want to sync, either via the UI or API. This is by design to give you control over your data replication. [Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema)
a
@kapa.ai
Copy code
shopify_streams = [
            # Core commerce streams
            "orders",
            "products",
            "customers",
            "abandoned_checkouts",
            "transactions",
            "order_refunds",
            # Inventory & fulfillment
            "inventory_levels",
            "inventory_items",
            "fulfillments",
            "fulfillment_orders",
            "locations",
            # Product organization
            "collections",
            "custom_collections",
            "smart_collections",
            "collects",
            "product_images",
            "product_variants",
            # Discounts & pricing
            "discount_codes",
            "price_rules",
            # Content & marketing
            "articles",
            "blogs",
            "pages",
            "metafields",
            # Customer data
            "customer_address",
            "customer_journey_summary",
            # Financial
            "balance_transactions",
            "disputes",
            "tender_transactions",
            # Other
            "draft_orders",
            "order_risks",
            "order_agreements",
            "shop",
            "countries",
        ]

        # Build sync catalog with all streams configured for incremental sync
        sync_catalog = {
            "streams": [
                {
                    "stream": {"name": stream_name},
                    "config": {
                        "selected": True,
                        "syncMode": "incremental",
                        "destinationSyncMode": "append",
                    },
                }
                for stream_name in shopify_streams
            ]
        }
k
A message from kapa.ai
Based on the provided knowledge sources, when you create a sync catalog for Shopify streams in Airbyte OSS and set all streams as
"selected": True
, they should be enabled for syncing. However, if you notice that certain streams like
orders
,
products
, or
customers
are not being synced by default and require manual enabling, there are a few possible reasons according to the documentation: 1. Required Shopify API Scopes: Some streams require specific Shopify API scopes to be granted in your custom app. If the necessary
read_
scopes (e.g.,
read_orders
,
read_products
,
read_customers
) are not included, Airbyte will not be able to sync those streams, and they may appear as disabled or unavailable in the UI or API response. The logs you shared earlier also indicate missing scopes for certain streams (e.g.,
The stream Customers could not be synced without the read_customers scope
). Make sure your Shopify app has all the required scopes as listed in the [custom app scopes documentation](https://docs.airbyte.com/integrations/sources/shopify#custom-app-scopes). 2. Stream Discovery and Schema Configuration: After Airbyte discovers available streams from Shopify, you must explicitly enable the streams you want to sync. This is true for both the UI and API. If a stream is not enabled in the schema configuration, it will not be synced, even if it is present in your sync catalog. > "On the 'Schema' tab of a connection, you choose which streams to sync and how they are loaded to the destination. To modify which streams are enabled: ... Toggle the checkbox on or off for your selected stream." [Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema) 3. API or UI Behavior: If you are using the API to create the connection and set all streams as selected, but some streams are still not enabled, it could be due to missing required fields (like cursor fields or primary keys) or the connector not supporting incremental sync for those streams. > "Depending on the sync mode you select, you may need to choose a cursor or primary key. Cursors and Primary Keys that are defined by the source are automatically selected and cannot be changed in the table." [Select Sync Mode](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-sync-mode) Summary: If
orders
,
products
, or
customers
are not syncing by default, first verify that your Shopify app has all the required
read_
scopes. Then, ensure your sync catalog and connection configuration explicitly enable these streams. If the issue persists, check for any required fields or sync mode limitations for those streams. The knowledge sources do not mention any other default behavior that would prevent these streams from being enabled if properly configured and authorized.
a
@kapa.ai why the following fields are disabled even though i have passed this in streams data and creating connection thorugh API articles balance_transactions blogs collections disputes metafield_articles metafield_blogs metafield_collections metafield_pages order_risks orders pages products transactions
k
Sorry @Aadarsh Mahala, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
Sorry @Aadarsh Mahala, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
a
@kapa.ai why the following fields are disabled even though i have passed this in streams data and creating connection thorugh API articles balance_transactions blogs collections disputes metafield_articles metafield_blogs metafield_collections metafield_pages order_risks orders pages products transactions
k
A message from kapa.ai
Based on the provided knowledge sources, there is no explicit documentation explaining why certain Shopify streams (such as
articles
,
balance_transactions
,
blogs
,
collections
,
disputes
,
metafield_articles
,
metafield_blogs
,
metafield_collections
,
metafield_pages
,
order_risks
,
orders
,
pages
,
products
,
transactions
) would be disabled by default when you have included them in your streams data and are creating the connection through the API. However, the documentation does highlight a few important points that may be relevant: 1. Required API Scopes: If your Shopify app does not have the necessary access scopes for a stream, Airbyte will not be able to sync that stream, and it may appear as disabled. For example, to sync
orders
, you need the
read_orders
scope; for
products
, you need
read_products
, and so on. If these scopes are missing, the streams will not be available for syncing, regardless of your API request. [Custom app scopes](https://docs.airbyte.com/integrations/sources/shopify#custom-app-scopes) 2. Stream Discovery and Schema Refresh: After creating a connection, Airbyte discovers available streams and their schemas. If a stream is not available from the source (due to missing scopes, permissions, or API limitations), it will not be enabled, even if you requested it in your API call. [Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema) 3. Field Selection Limitations: Field selection is only available for top-level fields, and you cannot deselect required fields such as primary keys or cursors. However, this does not directly explain why entire streams would be disabled. [Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields) 4. No Explicit Reason in Documentation: The knowledge sources do not provide a direct explanation for why these specific streams would be disabled by default when using the API to create a connection. Summary: The most likely reason, based on the documentation, is missing required Shopify API scopes for those streams. If the necessary scopes are not present, Airbyte cannot enable or sync those streams, even if you include them in your API request. If you have confirmed that all required scopes are present and the issue persists, the knowledge sources do not provide further details, and you may need to consult Airbyte support or check for connector-specific issues. If you need to ensure these streams are enabled, double-check your Shopify app's scopes and re-authenticate the source as needed. [Custom app scopes](https://docs.airbyte.com/integrations/sources/shopify#custom-app-scopes)
a
@kapa.ai is syncCatalog payload even working on airbyte oss?
k
A message from kapa.ai
The knowledge sources indicate that the
syncCatalog
payload is intended to be used for configuring which streams and fields are synced in a connection, both via the Airbyte UI and the API. However, there are multiple user reports and forum discussions suggesting that updating or setting the
syncCatalog
via the API does not always work as expected in Airbyte OSS. For example, in a forum post, a user describes attempting to update the
syncCatalog
using the Configuration API, but after making the API call, the
streams
in the
syncCatalog
are empty in the response, even though the request was formatted correctly. The support response confirms that, at least at that time, editing the catalog generated by Airbyte via the API was not supported, and the recommended workaround was to use database views to filter out unwanted fields or columns instead of relying on the API to update the catalog directly. The issue is also tracked on GitHub ([Allow a user to filter fields/columns from a table · Issue #2227](https://github.com/airbytehq/airbyte/issues/2227)) and is a known limitation in Airbyte OSS as of the referenced versions [[Forum: Unable to update connection syncCatalog using the Airbyte Configuration API](https://discuss.airbyte.io/t/1027)]. Summary: Based on the available knowledge sources, the
syncCatalog
payload does not reliably work for updating or creating connections via the API in Airbyte OSS, especially for modifying which streams or fields are enabled. This is a known limitation, and the recommended approach is to use the UI or database views as a workaround. If you require this functionality, you may want to follow the related GitHub issues for updates.
a
@kapa.ai i am passing incremental and append as payload in syncCatalog with correct format but tstill airbyte sync on full write overwrite why is there any issue ongoing?
k
A message from kapa.ai
Based on the knowledge sources provided, there is no explicit documentation confirming a current, general issue where Airbyte OSS ignores the
incremental
and
append
sync modes in the
syncCatalog
payload and defaults to
full refresh overwrite
. However, there are several important points and user reports that may explain your experience: 1. Known Limitations with API and syncCatalog: There are user reports and forum discussions indicating that updating or setting the
syncCatalog
via the API does not always work as expected in Airbyte OSS. In some cases, the API does not honor the sync modes specified in the payload, and the connection may revert to default behaviors such as
full refresh overwrite
. This is a known limitation and is being tracked as an issue by the Airbyte team [[Forum: Unable to update connection syncCatalog using the Airbyte Configuration API](https://discuss.airbyte.io/t/1027)]. 2. UI vs. API Behavior: The documentation and user feedback suggest that the UI reliably allows you to set sync modes, but the API may not always apply these settings correctly, especially for field/stream selection and sync modes. This means that even if your API payload is correct, Airbyte OSS might not respect it due to current implementation limitations. 3. Connector and Stream Support: Not all connectors or streams support all sync modes. If a stream or connector does not support
incremental
or
append
, Airbyte may fall back to
full refresh overwrite
regardless of your payload. You should verify that the source and destination connectors you are using support the desired sync modes [[Sync Modes](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes)]. Summary: If you are passing
incremental
and
append
in your
syncCatalog
payload but Airbyte OSS still performs a full refresh overwrite, it is likely due to a known limitation or bug in the API's handling of the
syncCatalog
configuration. This issue has been reported by other users, and the recommended workaround is to use the UI for configuring sync modes or to monitor the related GitHub issues for updates. The knowledge sources do not mention a recent fix or workaround for this in the OSS version.
a
@kapa.ai if i upgrade to airbyte 2.0 then all this problem will be solved and also tell me the command to check current airbyte version
k
A message from kapa.ai
Upgrading to Airbyte 2.0 may resolve some issues, as newer versions often include bug fixes and improvements. However, based on the knowledge sources provided, there is no explicit confirmation that upgrading to Airbyte 2.0 will fully resolve the specific issues you are experiencing with the
syncCatalog
payload and stream selection via the API. The documentation and user reports highlight ongoing limitations with API-based configuration, but do not state that these are definitively fixed in version 2.0. How to check your current Airbyte version: If you are using the
abctl
tool, you can check your Airbyte version with the following command:
Copy code
bash abctl version
This will output the current version of
abctl
you are using, which typically matches your Airbyte OSS installation version [[Get abctl version information](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#get-abctl-version-information)]. Summary: - There is no guarantee from the documentation that upgrading to Airbyte 2.0 will solve all your API syncCatalog issues. - Use
abctl version
to check your current Airbyte version.