Incremental Activation is a Beta release. For more information, contact your Customer Success Representative.
This guide helps you diagnose and resolve common issues when using Incremental Activation workflows.
Symptom: The workflow fails during execution with an error message indicating duplicate values in the id_key column.
Cause: The column specified as id_key contains non-unique values, which prevents accurate delta calculation.
Solution:
Verify that your
id_keycolumn contains only unique values by running this query:SELECT id_key_column, COUNT(*) as count FROM your_database.your_table GROUP BY id_key_column HAVING COUNT(*) > 1If duplicates exist, either:
- Choose a different column that is guaranteed to be unique (e.g.,
td_customer_id) - Clean your source data to ensure uniqueness
- Use a composite key approach (contact Support for guidance)
- Choose a different column that is guaranteed to be unique (e.g.,
Update your workflow's
id_keyparameter with the unique column name.
Symptom: Every activation exports the entire segment instead of only delta changes.
Possible Causes:
- First Run: The initial workflow run always performs a full export to establish the baseline.
- Delta Key Changed: If you modify the
id_keyordelta_keysparameters, the workflow triggers a full export. - History Table Deleted: The workflow's history table was manually deleted or cleared.
- Workflow Name Changed: Renaming the workflow creates a new workflow instance without history.
Solution:
- For first run: This is expected behavior. Subsequent runs will export only deltas.
- For parameter changes: After modifying
id_keyordelta_keys, one full export is required. Mark this run as expected and monitor subsequent runs. - For deleted history: If the history table (in
cdp_audience_{id}database) was deleted, it will be recreated on the next run. One full export is required. - For workflow rename: Avoid renaming workflows. If necessary, expect one full export after the change.
Symptom: The segment has new or changed profiles, but the workflow reports 0 records sent to the destination.
Possible Causes:
- Activation Mappings Not Configured: Your
activation_mappingsdon't include the delta status you expect. - Delta Keys Not Capturing Changes: The columns in
delta_keysdon't include the attributes that changed. - ID Key Mismatch: The
id_keydoesn't match between runs (e.g., using email when some emails changed).
Solution:
Review activation mappings: Ensure you have mappings for all expected delta statuses:
activation_mappings: [ {"delta_status": "new", "connector_field": "mode", "connector_field_value": "append"}, {"delta_status": "updated", "connector_field": "mode", "connector_field_value": "append"} ]Check delta keys: Add the changed columns to
delta_keys:delta_keys: ["status", "tier", "email", "phone"]Verify ID key stability: Ensure your
id_keycolumn values don't change between runs.
Symptom: The workflow completes delta calculation but fails during result export with an error about unsupported mode or operation.
Cause: Your connector doesn't support the connector_field_value specified in your activation mappings.
Solution:
Check your connector's documentation for supported operations:
- Some connectors only support
append - Some don't support
deleteorremove - Field names vary by connector (
modevsoperationvsaction)
- Some connectors only support
Update your
activation_mappingsto use supported values:Example - Connector without delete support:
# Remove the delete mapping if not supported activation_mappings: [ {"delta_status": "new", "connector_field": "mode", "connector_field_value": "append"}, {"delta_status": "updated", "connector_field": "mode", "connector_field_value": "append"} # "deleted" mapping removed ]For connectors with limited capabilities, consider using a different activation mode or connector.
Symptom: Workflow fails immediately with a 404 error or "endpoint not found."
Cause: The api_endpoint parameter doesn't match your Treasure Data site location.
Solution:
Update the api_endpoint to match your TD site:
| TD Site | Correct Endpoint |
|---|---|
| US | https://integrations-gateway.us01.treasuredata.com |
| EU | https://integrations-gateway.eu01.treasuredata.com |
| Asia Pacific | https://integrations-gateway.ap02.treasuredata.com |
| Japan | https://integrations-gateway.treasuredata.co.jp |
Example fix:
_export:
params:
api_endpoint: "https://integrations-gateway.eu01.treasuredata.com" # Changed from us01 to eu01Symptom: The workflow fails with an error indicating a column specified in id_key or delta_keys doesn't exist.
Cause: The column name is misspelled, or the column doesn't exist in the source table.
Solution:
Verify column names in your source table:
DESCRIBE your_database.your_tableUpdate your workflow parameters with exact column names (case-sensitive):
id_key: "td_customer_id" # Exact name from table schema delta_keys: ["subscription_status", "loyalty_tier"] # Exact namesIf running as an Activation Action, verify the segment output includes the required columns in the Output Mapping.
Symptom: The number of profiles sent doesn't match expectations (too many or too few).
Possible Causes:
- Delta Keys Too Sensitive: Too many columns in
delta_keyscausing most profiles to be marked as "updated." - Delta Keys Not Sensitive Enough: Missing important columns in
delta_keyscausing actual changes to be missed. - Mapping Logic Error: Activation mappings don't match intended behavior.
Solution:
Test delta sensitivity: Run a test query to see how many profiles would be marked as changed:
SELECT COUNT(*) as total_profiles, SUM(CASE WHEN status_changed THEN 1 ELSE 0 END) as changed_profiles FROM your_tableAdjust delta keys: Add or remove columns based on what changes should trigger re-activation:
# Too sensitive - every profile change triggers update delta_keys: ["last_login", "last_page_view", "session_count"] # Better - only meaningful changes trigger update delta_keys: ["subscription_tier", "email_opt_in"]Review activation logs: Check the workflow execution logs to see the breakdown of delta statuses.
Symptom: Workflow fails with "permission denied" when accessing databases, tables, or connectors.
Cause: The user running the workflow doesn't have required permissions.
Solution:
Workflow permissions: Ensure the workflow has View and Run permissions for activation creators. See Configuring Workflow Permissions.
Database permissions: Verify the user has:
- Read access to the source database and table
- Write access to the
cdp_audience_{id}database (for history tables)
Connector permissions: Verify the user can access the result connector authentication.
Contact your TD Administrator to grant necessary permissions.
Symptom: Standalone workflow fails with errors about missing activation_actions_db, activation_actions_table, or connection parameters.
Cause: When running as a standalone workflow (not as an Activation Action), these parameters must be manually configured.
Solution:
Add all required parameters for standalone mode:
_export:
params:
api_endpoint: "https://integrations-gateway.us01.treasuredata.com"
id_key: "email"
delta_keys: ["status", "tier"]
activation_mappings: [
{"delta_status": "new", "connector_field": "mode", "connector_field_value": "append"}
]
# Required for standalone mode:
activation_actions_db: "my_database"
activation_actions_table: "my_table"
result_connection_name: "my_connector_auth"
result_connection_settings:
type: "snowflake"
database: "TARGET_DB"
schema: "PUBLIC"
table: "TARGET_TABLE"
mode: "append"Symptom: Delta calculations produce unexpected results, with incorrect counts of new, updated, or deleted profiles. Multiple workflow runs show inconsistent behavior or conflicting state.
Cause: Multiple workflows are running concurrently on the same source table. Since the table is not locked during operation, concurrent workflows can interfere with each other's delta calculations, leading to state conflicts.
Solution:
Review workflow schedules: Check if multiple workflows or activations are scheduled to run at the same time on the same source table.
Adjust scheduling: Ensure only one workflow processes a given table at any time:
- Stagger workflow schedules to run sequentially, not concurrently
- Add sufficient buffer time between runs to ensure completion
- Use workflow dependencies if running multiple related workflows
Example - Staggered schedule:
Workflow A on table_1: Runs at 00:00 (takes ~15 minutes) Workflow B on table_1: Runs at 00:30 (safe, no overlap) Workflow C on table_2: Runs at 00:00 (safe, different table)Monitor execution: Use workflow execution logs to verify workflows are not overlapping.
Best practice: If you need to activate the same segment to multiple destinations, create a single Incremental Activation workflow with multiple activation mappings or use sequential activation actions instead of parallel workflows.
Add logging to your workflow to track delta calculation:
+fetch_incremental_activation_wf:
http_call>: "${params.api_endpoint}/integration_workflow/workflows/incremental_activation/fetch"
# ... rest of configuration ...
+log_completion:
echo>: "Incremental activation completed successfully"The workflow creates history tables in the cdp_audience_{id} database. You can query these tables to understand what data was used for delta calculation:
-- View the last activation snapshot
SELECT * FROM cdp_audience_123.incremental_activation_history
LIMIT 100Before deploying to production:
- Create a small test segment (100-1000 profiles)
- Run the incremental activation workflow
- Manually verify the delta results match expectations
- Gradually increase segment size
- Navigate to TD Data Workbench > Workflows
- Open your Incremental Activation workflow
- Click on a recent execution
- Review the logs for error messages and delta record counts
If you continue to experience issues:
Collect diagnostic information:
- Workflow configuration (sanitized, without credentials)
- Error messages from workflow logs
- Expected vs actual behavior
- TD site location (US, EU, AP, JP)
Contact Support:
- Submit a support ticket through the TD Console
- Contact your Customer Success Representative
- Include all diagnostic information collected
Beta Feedback:
- As this is a Beta feature, your feedback helps improve the product
- Report any unexpected behavior or feature requests to your CSR
- Incremental Activation Overview
- Configure Incremental Activation
- Incremental Activation Parameters
- Incremental Activation Mappings