Issues with AEM Target integration
Hello Community,
We have encountered an issue with the AEM Target integration, specifically related to saving and syncing activities in Target. We are receiving an error that does not seem valid in our case, as we have already referenced the audience with the offers/experience. Additionally, the same API integration works in other environments.
We have also verified the permissions for the target group/service account for the relevant paths. Even after restarting the Test and Target bundle, the issue persists. Can someone advise what might be causing this issue and what fix is required to address it? Our AEM version is 6.5 SP22. We are using the out-of-the-box experience fragment component. We also tried using other components, but still had no luck.
Verified the following areas:
- API integration has approver and editor privileges.
- Cloud service connectivity is in place.
- Cloud service configuration is updated in the root page.
- Able to pull audiences from Target.
- Test and Target replication agent is enabled.
Error:

Error Log:
24.09.2025 01:30:24.218 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.TokenManager Aquire result for token content-campaigns-test-target-experience-tst-validation is true
24.09.2025 01:30:24.219 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Generated thirdPartyId is content-campaigns-test-target-experience-tst-validation.
24.09.2025 01:30:24.219 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Would create campaign with title TEST TARGET tst-experience, start null, end null, conversionGoal null, campaignType LANDING_PAGE .
24.09.2025 01:30:24.220 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Reading campaign locations...
24.09.2025 01:30:24.220 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Reading experienceLocalId counter...
24.09.2025 01:30:24.220 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Evaluating experience at /content/campaigns/test/target-experience/test-validation/Test Adventure
24.09.2025 01:30:24.220 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Found segment [Segment# name : null, operator: null, values: [] kind: And, children.size(): 1] at path /etc/segmentation/adobe-target/test/10487659
24.09.2025 01:30:24.220 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Adding external reference segment[Segment# name : TEST Adventure is present, operator: equals, values: [10487699] kind: ExternalReference, children.size(): 0]
24.09.2025 01:30:24.220 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Setting experienceLocalId to 1
24.09.2025 01:30:26.014 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Collecting offers mboxes...
24.09.2025 01:30:26.014 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignRepositoryAdapter Generated object for campaign TEST Validation-target-experience (DISABLED)
24.09.2025 01:30:26.014 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignValidator Validating campaign TEST Validation-target-experience...
24.09.2025 01:30:26.014 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignValidator Experience count must be 0
24.09.2025 01:30:26.014 *ERROR* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignValidator Skipping campaign sync since experience TEST adventure has no offers.
24.09.2025 01:30:26.014 *DEBUG* [sling-threadpool-8fc72537-7a69-4c88-b9ca-4cf057825a94-(apache-sling-job-thread-pool)-19-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.TokenManager Releasing token content-campaigns-test-portal-target-experience-test-validation
@davidjgonzalezzzz @EstebanBustamante @RiteshY18 @Gokul_Agiwal @Umesh_Thakur @pradnya_balvir @Amelia_Waliany @ParitMittal @pradnya_balvir
@Umesh_Thakur @AmitVishwakarma @hrishikeshkagne