Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM and Target Integration : Create offer request failed!

jaril52271491
Level 2
Level 2

Hi, I'm working on integration of Adobe Target with AEM and using the targeting mode to create Activity in AEM using the Target engine.

 

  • I'm using AEM 6.5
  • I configured Adobe IMS in AEM with the Adobe I/O Project for Target API
  • The product role of Target integration is Approver in the Admin Console
  • I configured Adobe Target in the Legacy Cloude Services of AEM

I can create an activity in AEM but when I save it, i receive this error:

jaril52271491_0-1601146874241.png

and also in the browser console I see this error: 

jaril52271491_1-1601146978587.png

Which can be the problem?

 

BR.

Topics

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

3 Replies
jaril52271491
Level 2
Level 2

Hi, I was looking into the previous article and it seems I have all the configurations mencioned in this articles.

 

In the logs I can see this kind of error:

 

28.09.2020 13:17:58.057 *DEBUG* [0:0:0:0:0:0:0:1 [1601291877803] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Using REST API...
28.09.2020 13:17:58.061 *DEBUG* [0:0:0:0:0:0:0:1 [1601291877803] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET https://mc.adobe.io/<my-tenant-id>/target/offers?includeContent=false&name=Default+AEM+offer
28.09.2020 13:17:58.242 *DEBUG* [0:0:0:0:0:0:0:1 [1601291877803] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Offer not found in Target, creating...
28.09.2020 13:17:58.246 *DEBUG* [0:0:0:0:0:0:0:1 [1601291877803] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.TokenManager Releasing token content-campaigns-we-retail-master-target-activity
28.09.2020 13:17:58.256 *ERROR* [0:0:0:0:0:0:0:1 [1601291877803] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.servlets.commands.SynchronizeCampaignCommand Create offer request failed!

 

Any suggestion?

 

Thank you, BR

jaril52271491
Level 2
Level 2

Hi, I was looking into the previous article and it seems I have all the configurations mencioned in this articles.

Looking in the log I can see this error:

 

28.09.2020 14:16:57.638 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Synchronizing campaign Target Acticity_author to Adobe Target... 28.09.2020 14:16:57.640 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET https://mc.adobe.io/<tenant-id>/target/activities?thirdPartyId=content-campaigns-we-retail-master-ta... 28.09.2020 14:16:58.002 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Checking offer Default AEM offer 28.09.2020 14:16:58.002 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Checking for the external id property... 28.09.2020 14:16:58.002 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Using REST API... 28.09.2020 14:16:58.004 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET https://mc.adobe.io/<tenant-id>/target/offers?includeContent=false&name=Default+AEM+offer 28.09.2020 14:16:58.199 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Offer not found in Target, creating... 28.09.2020 14:16:58.200 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.TokenManager Releasing token content-campaigns-we-retail-master-target-activity 28.09.2020 14:16:58.202 *ERROR* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.servlets.commands.SynchronizeCampaignCommand Create offer request failed!

jaril52271491
Level 2
Level 2

Hi, I was looking into the previous article and it seems I have all the configurations mencioned in this articles.

 

This is my error log:

 

28.09.2020 14:16:57.638 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Synchronizing campaign Target Acticity_author to Adobe Target...

28.09.2020 14:16:57.640 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET https://mc.adobe.io/<tenant-id>/target/activities?thirdPartyId=content-campaigns-we-retail-master-ta...

28.09.2020 14:16:58.002 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Checking offer Default AEM offer

28.09.2020 14:16:58.002 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Checking for the external id property...

28.09.2020 14:16:58.002 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Using REST API...

28.09.2020 14:16:58.004 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET https://mc.adobe.io/<tenant-id>/target/offers?includeContent=false&name=Default+AEM+offer

28.09.2020 14:16:58.199 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Offer not found in Target, creating...

28.09.2020 14:16:58.200 *DEBUG* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.TokenManager Releasing token content-campaigns-we-retail-master-target-activity

28.09.2020 14:16:58.202 *ERROR* [0:0:0:0:0:0:0:1 [1601295417630] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.servlets.commands.SynchronizeCampaignCommand Create offer request failed!

aemmarc
Employee
Employee

Target Standard or Premium?

 

There is currently a limitation exporting from AEM to Target Standard via IMS.

 

This will be corrected in AEM 6.5.7 in Nov 2020. 

jaril52271491
Level 2
Level 2
Hi, I'm using Target Premium. I can export Experience Fragments to Target but when I try to Targeting a content in AEM I receive this kind of error. Do you have any suggestion? Thank you. BR.
Chinmay
Level 1
Level 1

Hello @aemmarc 

 

Has this problem been resolved in AEM 6.5.7 ? I have 6.5.7 with Target configured with IMS authentication. Create offer fails when setting up Targeting from within an AEM Site. .

 

com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignValidator Experience count must be 2
27.05.2021 20:16:48.085 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Synchronizing campaign TestPzn_author to Adobe Target...
27.05.2021 20:16:48.086 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET << deleted url on purpose >>
27.05.2021 20:16:49.295 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Checking offer Default AEM offer
27.05.2021 20:16:49.295 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Checking for the external id property...
27.05.2021 20:16:49.295 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Using REST API...
27.05.2021 20:16:49.297 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl Target API Request: GET <deleted on purpose>
27.05.2021 20:16:50.466 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.synchronization.TargetCampaignSynchronizer Offer not found in Target, creating...
27.05.2021 20:16:50.468 *DEBUG* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.TokenManager Releasing token content-campaigns-we-retail-master-Pzn
27.05.2021 20:16:50.470 *ERROR* [0:0:0:0:0:0:0:1 [1622126808079] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.servlets.commands.SynchronizeCampaignCommand Create offer request failed!

jaril52271491
Level 2
Level 2
Hi, we solved the problem using Credencials Authentication and not the IMS Authentication in the Legacy Cloud Service. BR..
davidpena
Level 1
Level 1
I'm also getting this same exact error. Can we get a hotfix?