DX - 3445 beta - Experience import errors when variants reference Lytics audiences#2428
Open
cs-raj wants to merge 1 commit intov2-beta-devfrom
Open
DX - 3445 beta - Experience import errors when variants reference Lytics audiences#2428cs-raj wants to merge 1 commit intov2-beta-devfrom
cs-raj wants to merge 1 commit intov2-beta-devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: Experience import errors when variants reference Lytics audiences
Problem
Personalize import fails with API errors when importing experiences whose variants reference Lytics audiences:
VARIANTS_REFERRED_LYTICS_AUDIENCE_DOES_NOT_EXIST– variants still contain Lytics audience UIDsINSUFFICIENT_VARIANTS_TO_ACTIVATE– all variants are removed, leaving 0 variantsRoot cause: Lytics audiences are skipped during audience import (they can’t be created via API). Experience versions still send
lyticsAudiencesin the payload, butlookUpAudiencesonly processedaudiences, so invalid Lytics references were never filtered.Solution
audiences-helper.ts
lyticsAudiencesinSegmentedVariantthe same way asaudiencesaudiences)audiencesandlyticsAudiencesare empty after filteringexperiences.ts
versionMapwhen they have at least one valid variantBehavior