AEM and Target Integration : Create offer request failed!

Avatar

Avatar
Give Back
Level 1
jaril52271491
Level 1

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Give Back
Validate 1
Boost 1
View profile

Avatar
Give Back
Level 1
jaril52271491
Level 1

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Give Back
Validate 1
Boost 1
View profile
jaril52271491
Level 1

26-09-2020

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
aemmarc
Employee

27-09-2020

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
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

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
Hi, we solved the problem using Credencials Authentication and not the IMS Authentication in the Legacy Cloud Service. BR..

Avatar

Avatar
Validate 25
MVP
Singaiah_Chintalapudi
MVP

Likes

131 likes

Total Posts

234 posts

Correct reply

39 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
MVP
Singaiah_Chintalapudi
MVP

Likes

131 likes

Total Posts

234 posts

Correct reply

39 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
Singaiah_Chintalapudi
MVP

26-09-2020

jaril52271491

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

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

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!