Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Not able to publish activity to target from AEM.

Avatar

Community Advisor

Hi Team,

I was creating one test activity on a page in aem for personalization, once I save it, author activity successfully synced to target but when I publish it, I am getting an error which says:

 

"12.11.2023 10:04:19.134 *ERROR* [sling-threadpool-3576db36-9459-4b18-a544-a93a1d2ff05c-(apache-sling-job-thread-pool)-35-com_day_cq_replication_job_test_and_target(com/day/cq/replication/job/test_and_target)] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Could not create audience! JSON body:{"name":"anonymous_segment-1699763658290","description":"--","hidden":true,"targetRule":{"equals":["https://aem-pub-dev2.net/us/en.html"],"page":"url"}}
com.day.cq.analytics.testandtarget.TestandtargetException: Create audience request failed!
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.createSegment(RestApiAdapter.java:304) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.TestandtargetServiceImpl.createAudience(TestandtargetServiceImpl.java:232) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer$1.syncSerializedSegments(TargetCampaignSynchronizer.java:161) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.goals.metrics.AnonymousAudienceSyncHelper.syncSegments(AnonymousAudienceSyncHelper.java:39) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.goals.metrics.AnonymousAudienceSyncHelper.getMetricSegmentsIdsMap(AnonymousAudienceSyncHelper.java:67) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.goals.metrics.TargetMetricsBuilder.syncAnonymousAudiences(TargetMetricsBuilder.java:126) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.goals.metrics.TargetMetricsBuilder.build(TargetMetricsBuilder.java:80) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.goals.TargetGoalsBuilder.buildMetrics(TargetGoalsBuilder.java:72) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.goals.TargetGoalsBuilder.build(TargetGoalsBuilder.java:50) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.TargetGoalsAndSettingsBuilder.buildGoals(TargetGoalsAndSettingsBuilder.java:57) [com.adobe.cq.cq-target-integration:1.3.54]
at com.adobe.tsdk.components.goalsandsettings.TargetGoalsAndSettingsBuilder.build(TargetGoalsAndSettingsBuilder.java:48) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer.addPublishMetricDefinitions(TargetCampaignSynchronizer.java:175) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer.synchronizeCampaign(TargetCampaignSynchronizer.java:102) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.TestandtargetCampaignMediatorImpl.syncCampaignWithErrorLogging(TestandtargetCampaignMediatorImpl.java:203) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.TestandtargetCampaignMediatorImpl.syncPublishCampaign(TestandtargetCampaignMediatorImpl.java:458) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.PushPublishCampaignTransportHandler.process(PushPublishCampaignTransportHandler.java:85) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.PushPublishCampaignTransportHandler.deliver(PushPublishCampaignTransportHandler.java:57) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.replication.impl.AgentImpl.doTransport(AgentImpl.java:513) [com.day.cq.cq-replication:6.2.86.CQ650-B0006]
at com.day.cq.replication.impl.AgentImpl.doReplicate(AgentImpl.java:471) [com.day.cq.cq-replication:6.2.86.CQ650-B0006]
at com.day.cq.replication.impl.AgentImpl.process(AgentImpl.java:396) [com.day.cq.cq-replication:6.2.86.CQ650-B0006]
at com.day.cq.replication.impl.queue.ReplicationQueueImpl.process(ReplicationQueueImpl.java:321) [com.day.cq.cq-replication:6.2.86.CQ650-B0006]
at com.day.cq.replication.impl.AgentManagerImpl.process(AgentManagerImpl.java:383) [com.day.cq.cq-replication:6.2.86.CQ650-B0006]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.day.cq.analytics.testandtarget.impl.service.WebServiceException: API request failed
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:646) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:600) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.createAudience(WebServiceImpl.java:363) [com.adobe.cq.cq-target-integration:1.3.54]
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.createSegment(RestApiAdapter.java:301) [com.adobe.cq.cq-target-integration:1.3.54]
... 27 common frames omitted
Caused by: com.day.cq.analytics.testandtarget.impl.service.WebServiceException: Unexpected response status code [400] for request [https://mc.adobe.io/mycompany/target/audiences?includeMarketingCloudMetadata=true].
{"httpStatus":400,"requestId":"Jpq69oQZbLrw7RCcbljfladfTlUjlsjdfl","requestTime":"2023-11-12T04:34:19.152555Z","errors":[{"errorCode":"InvalidProperty.Json","message":"Invalid Json. Unrecognized property name 'hidden'. Location: line - 1, column - 75.","meta":{"propertyName":"hidden","line":1,"column":75}}]}
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:643) [com.adobe.cq.cq-target-integration:1.3.54]
... 30 common frames omitted"

 

I did change the roll to the IMS integration but still the same issue.

I was seeing one boolean property "Hidden" in audience, synced from Target, even after removing this property same behaviour.

if anyone had faced anything like this, please guide me if anything can be done on aem or in target.

Thank you 

Umesh Thakur

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Umesh,

 

It looks like the issue is because of that "Hidden" property which is not recognized by Target when creating an audience, can you check with your other audiences if that "Hidden" property is being attached? Please be aware of the case, also I noticed you removed "Hidden" property but the error indicates "hidden" is in lowercase. 

 

 



Esteban Bustamante

View solution in original post

3 Replies

Avatar

Administrator

@EstebanBustamante @Mahedi_Sabuj @A_H_M_Imrul @ShaileshBassi @aanchal-sikka Can you please review this unanswered question? Appreciate your thoughts on this.



Kautuk Sahni

Avatar

Correct answer by
Community Advisor

Hi Umesh,

 

It looks like the issue is because of that "Hidden" property which is not recognized by Target when creating an audience, can you check with your other audiences if that "Hidden" property is being attached? Please be aware of the case, also I noticed you removed "Hidden" property but the error indicates "hidden" is in lowercase. 

 

 



Esteban Bustamante

Avatar

Community Advisor

This issue is due to targetintegration API in AEM. Already have one ticket with adobe support, once they come up with a solution, I will post here.

Thanks

Umesh Thakur