Gowtham Reddy
07/10/2025, 7:26 AMkapa.ai
07/10/2025, 7:26 AMpivotValue. These URNs are LinkedIn's way of uniquely identifying entities like campaigns, creatives, accounts, etc. To get the human-readable values (like campaign names), you need to resolve these URNs using LinkedIn's API. How to transform URNs into values: 1. Extract URNs from your Airbyte-synced data. - For example, you might have a column like pivotValue containing values such as urn:li:sponsoredCampaign:123456789. 2. Use LinkedIn's API to resolve URNs. - LinkedIn provides endpoints (such as Organization Lookup, Campaign Lookup, etc.) that allow you to fetch details about these entities using their URNs. - For example, to resolve a campaign URN, you would use the [Campaigns API](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-campaigns?tabs=http&view=li-lms-2023-05#search-for-campaigns) and pass the URN as a parameter. 3. Join the resolved values back to your analytics data. - After fetching the details (like campaign name, account name, etc.) from the LinkedIn API, you can join this information back to your analytics data using the URN as the key. Note: Airbyte does not automatically resolve URNs to human-readable values. This transformation must be done as a post-processing step after your sync, using additional API calls to LinkedIn. For more details on URN formats and how to resolve them, refer to the [LinkedIn documentation on URN resolution](https://learn.microsoft.com/en-us/linkedin/marketing/urn-resolution?view=li-lms-2023-05) and the [Airbyte LinkedIn Ads source documentation](https://docs.airbyte.com/integrations/sources/linkedin-ads#supported-streams). Summary: - Airbyte syncs URNs as-is. - You must use LinkedIn's APIs to resolve URNs to values. - This is a separate process outside of Airbyte's sync, typically done in your data transformation or enrichment pipeline. If you need more specific code examples or workflow suggestions, let me know!Gowtham Reddy
07/10/2025, 7:29 AMkapa.ai
07/10/2025, 7:29 AMkapa.ai
07/10/2025, 7:29 AMsql_require_primary_key set to ON. MySQL requires every table to have a primary key in this mode, and Airbyte by default may create tables (like _airbyte_destination_state) without one, causing errors during syncs and when you try to edit data. How to resolve this: 1. Manually add a primary key to the affected table. For example, you can create the _airbyte_destination_state table with a composite primary key as shown below: sql CREATE TABLE `_airbyte_destination_state` ( `name` varchar(255) NOT NULL, `namespace` varchar(255) NOT NULL, `destination_state` varchar(255) DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`name`,`namespace`) ); This approach was confirmed to resolve the issue for other users with the same problem [Destination MySQL - Unable to create or change a table without a primary key](https://github.com/airbytehq/airbyte/issues/40232). 2. Managing daily syncs: - If your syncs run daily, ensure that any tables Airbyte creates (including new ones for new streams) have primary keys. - For user data tables, you can define primary keys in Airbyte’s connection settings. If the source does not provide a primary key, you can specify one or use a combination of fields as a composite primary key. This can be set in the Airbyte UI when configuring the stream ([User-Defined Primary key](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#user-defined-primary-key)). - If you add new streams or tables, repeat the process to ensure primary keys are set. Important: - If you cannot modify the Airbyte-created tables directly every time (for example, if Airbyte drops and recreates tables), you may need to automate this process or adjust your Airbyte configuration to always set primary keys where possible. - For tables where a natural primary key does not exist, consider creating a synthetic one (e.g., using a UUID or a combination of fields). Summary: - Add primary keys to Airbyte tables in MySQL to comply with sql_require_primary_key. - Define primary keys in Airbyte’s stream configuration for all user data tables. - Repeat this process for new tables as your sync evolves. If you need more automation or have many tables, consider scripting the primary key addition as part of your sync workflow.Gowtham Reddy
07/10/2025, 7:31 AMkapa.ai
07/10/2025, 7:31 AMkapa.ai
07/10/2025, 7:31 AMsql_require_primary_key=ON and Airbyte tries to create tables without primary keys, leading to sync failures or inability to edit data [Destination MySQL - Unable to create or change a table without a primary key](https://github.com/airbytehq/airbyte/issues/40232). The only documented workaround is to manually create the required tables with primary keys before running the sync, or to adjust the Airbyte configuration to specify primary keys for each stream where possible. Unfortunately, the knowledge sources do not mention any built-in feature or automation in Airbyte that would handle this for all tables and connections automatically. If this is a critical blocker, you may want to follow or comment on the related GitHub issues to express the need for this feature, as it has been raised by other users as well. For now, the process remains manual according to the available documentation and issue discussions.Gowtham Reddy
07/10/2025, 7:32 AMkapa.ai
07/10/2025, 7:32 AMkapa.ai
07/10/2025, 7:32 AMGowtham Reddy
07/10/2025, 7:34 AMkapa.ai
07/10/2025, 7:34 AMkapa.ai
07/10/2025, 7:34 AM