Overview
When your source data changes, Permutive can detect and apply certain types of schema updates to existing imports. This guide explains how to action those updates — including adding new columns — and how to resolve common schema-related errors.Prerequisites:
- An active Connectivity source connection
- An existing import configured against that source
- Access to Sources > Imports in the Permutive Dashboard
Supported Schema Changes
Not all schema changes can be applied to an existing import. Before actioning an update, check whether your change is supported.Supported changes:
- Adding new columns to an existing source schema
- Widening a column’s data type (e.g. expanding the range or precision of a type)
- Removing or deleting columns
- Renaming columns
- Narrowing a column’s data type
- Changing the order of columns
Steps
Trigger a schema refresh
Permutive automatically checks for schema changes when a connection is resynced or when a new import is created. If the change hasn’t been detected yet, trigger a manual refresh:
- Go to Sources > Imports
- Select the relevant import
- On the import details page, click Refresh
Review and accept the detected changes
Once new columns are detected, a notification or banner will appear on the import details page.
- Open the change details to view the new columns available
- Accept the columns you want to bring into Permutive, or dismiss the notification if no action is needed
Verify the import
After accepting changes, allow time for data to be ingested against the new columns. Check the import details page to confirm the update completed successfully.If data isn’t appearing after a reasonable period, see Troubleshooting below.
Troubleshooting
New columns aren't appearing after a refresh
New columns aren't appearing after a refresh
- Check the resync status — on the import details page, confirm whether the resync shows as Completed, In Progress, or Error. If still in progress, wait before taking further action.
- Wait for ingestion — data can take some time to appear after a schema update is applied.
- Check your source — confirm the new columns are present and correctly defined in your data warehouse or lake.
- Check for unsupported changes — if you’ve also renamed or removed a column, this may be blocking the update.
Error after making schema changes
Error after making schema changes
- Check the resync status — look for an error on the import details page. The error message should indicate the type of issue.
- Check your source schema — verify the columns are correctly defined in your data warehouse tool.
- Revert and re-apply — revert the change at source, re-apply it, then trigger a refresh or resync in Permutive.
- Check for unsupported changes — confirm you haven’t also made a change listed under Supported Schema Changes.
Column type has changed (narrowing)
Column type has changed (narrowing)
Narrowing a column’s data type is not supported on an existing import.Solution:
- Apply the updated schema to a new table in your warehouse
- Delete the existing import in Permutive (if it’s no longer needed, as this will impact associated cohorts)
- Create a new import pointing to the new table
Column is no longer available
Column is no longer available
Removing columns is not currently supported on an existing import.Solution:
- Delete the existing import in Permutive (if it’s no longer needed, as this will impact associated cohorts)
- Create a new import against the updated schema
Unable to read data due to inconsistent schemas
Unable to read data due to inconsistent schemas
Permutive has detected a mismatch between the schema it has on record and what it can read from your source.Solution: Revert any recent changes made to the schema in your data warehouse, then trigger a resync from the import details page. If the resync status shows as Error, contact Permutive Support.
Table or schema is no longer available
Table or schema is no longer available
The source table or schema this import points to can no longer be found.Solution:
- Review the change in your warehouse and restore or recreate the table or schema as needed
- If needed, delete the import in Permutive and create a new one pointing to the correct location
Error attempting to sync schemas
Error attempting to sync schemas
Solution:
- Revert any recent changes at source
- Re-apply the changes
- Trigger a resync in Permutive from the import details page
Next Steps
Sources Overview
Learn more about managing source connections and schemas
Creating an Import
Set up a new import from a source connection