Create offer request failed - error while syncing an activity from AEM to Adobe Target and creating activity in Adobe Target

Hi 

 

I am working on a demo task to create experience fragments and integrate it with adobe target. I use AEM 6.5 version. I am getting below error while creating activity in Adobe Target. I have already created property and added it to my workspace but still I get below error.Screenshot 2020-07-14 at 3.26.37 PM.png

 

Also getting Error exporting to Adobe target. Create offer request failed! 

I have created a workspace and created integration for which I have approver access but still get below error.

Screenshot 2020-07-14 at 3.34.02 PM.png

I would like to know the exact steps to complete this direct integration from AEM to Adobe Target and also steps to resolve this issue.

Accepted Solutions (1)

Accepted Solutions (1)

berliant

Employee

14-07-2020

Exporting XF to a target does not require a Targeting mode.

1. Make sure that you have the latest SP for AEM 6.5: https://docs.adobe.com/content/help/en/experience-manager-65/release-notes/service-pack/sp-release-n...

2. To export XF to a Target, you need to configure Target Cloud service. Unlesss you have Target Standard you can use IMS for Adobe Target 

https://docs.adobe.com/content/help/en/experience-manager-65/administering/integration/integration-i...

3. You need to set Cloud Service Configurations to a root folder of your XF. Your user has to have a replication right to your XF

4. You also need to configure an externalizer:

https://docs.adobe.com/content/help/en/experience-manager-65/developing/platform/externalizer.html

 

 

Answers (2)

Answers (2)

vanegi

Employee

14-07-2020

Can you confirm on the following:

 

- If all the setup is in place please apply below logger set at the DEBUG level and provide the log file along with the AEM error.log file.

com.day.cq.analytics.testandtarget.

 

- Check and confirm if activity syncs as expected to the Default workspace. This is required so that we can segregate if the issue is occurring only with custom workspace or an issue with Default as well.

 

Please note that the sync to custom workspace is only supported for Experience Fragments as of now. All other activities created in AEM (A/B test etc.) are only synced to default workspace, use of custom workspace is not supported in this scenario as of now.

 

 

@vanegi

 

PFB error log. I have approver level of access to the workspace and to the integrations.

 

Also I am trying for experience targeting only.  

 

14.07.2020 12:42:38.162 *ERROR* [0:0:0:0:0:0:0:1 [1594710756583] POST /libs/cq/experience-fragments/content/commons/targetexporter.html HTTP/1.1] com.adobe.cq.xf.impl.adobetarget.exporter.AbstractExperienceFragmentExporter Create offer request failed!
com.day.cq.analytics.testandtarget.TestandtargetException: Create offer request failed!
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.create(RestApiAdapter.java:113) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.createOffer(RestApiAdapter.java:96) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.TestandtargetServiceImpl.createHTMLOffer(TestandtargetServiceImpl.java:65) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.TestandtargetCampaignMediatorImpl.syncOffer(TestandtargetCampaignMediatorImpl.java:537) [com.adobe.cq.cq-target-integration:1.3.22]
at com.adobe.cq.xf.impl.adobetarget.exporter.AbstractExperienceFragmentExporter.exportVariation(AbstractExperienceFragmentExporter.java:98) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.exporter.HtmlExperienceFragmentsExporter.exportVariation(HtmlExperienceFragmentsExporter.java:35) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportInFormat(ExperienceFragmentsTargetMediatorImpl.java:251) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportExperienceFragment(ExperienceFragmentsTargetMediatorImpl.java:235) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportAll(ExperienceFragmentsTargetMediatorImpl.java:210) [com.adobe.cq.cq-experience-fragments:1.2.44]

 

Caused by: java.lang.Exception: Unexpected response status code [403] for request [https://mc.adobe.io/sandbox/target/offers/content].
{"httpStatus":403,"requestId":"8c8Pc7lk1pbFxVuFuZ1IVpAhXGUYkwf2","requestTime":"2020-07-14T07:12:38.049Z","errors":[{"errorCode":"Forbidden.Resource","message":"Access denied. To perform this operation, all of the following privileges are required \"[editor]\"."}]}

...

...

...

It seems that you do not have sufficient permission to perform this activity. I see the below message which says that to perform this operation, one should have required privileges and should be part of editor group atleast. Please make yourself part of editor group and test the use case again. Let me know in case of any questions.
@vanegi I have approver level access to the integration. But still why I get same error? do I have to get any other access ?

Vaibhavi

MVP

14-07-2020

Hi @sushmitha-srinivasan 

 

Have you mapped the target configs for the XF which you're trying to export?

Mapping the target config to the page should fix the export issue.

vaibhavi_235640_0-1594740885497.png

 

Also please share the logs if you still face the issue after the configuration.

 

 

@Vaibhavi I have already configured this. As per the Adobe docs I have configured but still face these errors
@Vaibhavi kindly share me the exact docs from adobe for direct aem and adobe target integration for experience fragments. I couldn't find a step by step document and also not clear what is the next set of steps to complete the integration

.

Hi Sushmitha,

 

Please check the below documentation.

https://docs.adobe.com/content/help/en/experience-manager-65/administering/integration/experience-fr...

 

If you have already integrated AEM to target and connection is a success, XF integration is very simple.

1. Create an XF.

2. Map the target configuration on XF page using the cloud service tab.

3. Click on  Export to target will place the created fragments in the target.

4. You can see the use the exported fragments on any page in the target.

 

If you have not integrated target with AEM, please go through above document which has internal links explaining how to integrate AEM with Target.

Once your target connection is successful you can use the above steps to export the experience fragments

@Vaibhavi 

I have configured IMS and health check is success, Configured Adobe Target Cloud Services - connection to Adobe Target is successful. 

Post that I have created XF folders with some variants, XF folder properties has been updated with Adobe Target config details.

https://docs.adobe.com/content/help/en/experience-manager-65/administering/integration/integration-i...

 

I am using AEM 6.5.0 and hence selected Default Workspace while setting up my Project and Integration in Adobe Console. I have changed my Role to Editor for Integration setup in Admin Console.

https://docs.adobe.com/content/help/en/experience-manager-65/administering/integration/experience-fr...

 

Under Day CQ Link Externalizer local Author and Publish links has been updated.

https://docs.adobe.com/content/help/en/experience-manager-65/developing/platform/externalizer.html

 

Queries:

1. Do I have to publish the XF to Publish(4503) in order to Export it to Adobe Target?

2. Where should I click Export it to Adobe Target is it in Author or in Publish? -  I currently work only on local Author and with WeRetail site for creating XF.

3. Do I have to create any activity in Adobe Target and sync it with my AEM so that when I click Export it to Adobe Target it pushes the changes to the activity only if it is synched with AEM ? I still get Create Offer Request Fail! error.

 

PFB Warnings:

16.07.2020 12:29:16.559 *WARN* [0:0:0:0:0:0:0:1 [1594882754740] POST /etc/cloudservices/testandtarget/ZILAEM-Target-IMS/jcr:content.recommendationsCapabilities.json HTTP/1.1] com.day.cq.analytics.testandtarget.impl.TestandtargetHttpClientImpl Adobe Target HTTP call returned status code 404

16.07.2020 12:29:16.561 *WARN* [0:0:0:0:0:0:0:1 [1594882754740] POST /etc/cloudservices/testandtarget/ZILAEM-Target-IMS/jcr:content.recommendationsCapabilities.json HTTP/1.1] com.adobe.cq.targetrecommendations.impl.servlet.CheckRecsCapabilitiesServlet Could not execute Recommendations API, recommendations capabilities are disabled for /etc/cloudservices/testandtarget/ZILAEM-Target-IMS/jcr:content TnT configuration!

 

Error:

16.07.2020 12:32:37.456 *WARN* [0:0:0:0:0:0:0:1 [1594882957454] POST /libs/cq/experience-fragments/content/commons/targetexporter.html HTTP/1.1] org.apache.sling.engine.impl.request.RequestData SlingRequestProgressTracker not found in request attributes
16.07.2020 12:32:38.446 *ERROR* [0:0:0:0:0:0:0:1 [1594882957454] POST /libs/cq/experience-fragments/content/commons/targetexporter.html HTTP/1.1] com.adobe.cq.xf.impl.adobetarget.exporter.AbstractExperienceFragmentExporter Create offer request failed!
com.day.cq.analytics.testandtarget.TestandtargetException: Create offer request failed!
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.create(RestApiAdapter.java:113) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.createOffer(RestApiAdapter.java:96) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.TestandtargetServiceImpl.createHTMLOffer(TestandtargetServiceImpl.java:65) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.TestandtargetCampaignMediatorImpl.syncOffer(TestandtargetCampaignMediatorImpl.java:537) [com.adobe.cq.cq-target-integration:1.3.22]
at com.adobe.cq.xf.impl.adobetarget.exporter.AbstractExperienceFragmentExporter.exportVariation(AbstractExperienceFragmentExporter.java:98) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.exporter.HtmlExperienceFragmentsExporter.exportVariation(HtmlExperienceFragmentsExporter.java:35) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportInFormat(ExperienceFragmentsTargetMediatorImpl.java:251) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportExperienceFragment(ExperienceFragmentsTargetMediatorImpl.java:235) [com.adobe.cq.cq-experience-fragments:1.2.44]
at com.adobe.cq.xf.impl.adobetarget.ExperienceFragmentsTargetMediatorImpl.exportAll(ExperienceFragmentsTargetMediatorImpl.java:210) [com.adobe.cq.cq-experience-fragments:1.2.44]

...

...

Hi Sushmitha,

Please find the answer for your queries below.

1. Do I have to replicate the XF i created to the Publish environment(4503) and then do Export to Adobe Target? - [V] No, publish is not a mandatory step to export the fragments into target. XF integration with target is towards author side where html will be extracted upon the click of export to target. Once you click on export to target it will ask you if you need to publish the content. It's up to you if you need the content in publisher. But for get there is no dependency on publishing the content

 

2.Do I have to create any Activity in Adobe Target specifically and sync it with AEM to make offer successful? - [V]Once the fragment is exported it will be independent fragments from AEM where you can use it on any experience on target. There is no flow from target to AEM.You need not to do any activity in target to sync with AEM. Please check in target console if you can see the exported fragments from AEM? 

 

3. Do I need to correct any other permission to get this resolved?-[V] Yes, you should have necessary permission to xf folders. Requires read and write permissions to extract the html. 

 

Also, Have you set added the publish domain in externaliser? - It is needed as well, if not fragment will not be exported, there is a domain check in the transformer. 

@Vaibhavi As per your last comment.. I have done all the steps mentioned. I have tried with both Custom and default workspaces, with Approver level access to my projects and integration in admin console. But still why I face this issue?
Did you try to install SP5?

@berliantI am not able to access and download the service pack. It shows below error.

 

Error 408: Request timeout

 

This page was not able to load. Try refreshing or visit a different page.

 

https://docs.adobe.com/content/help/en/experience-manager-65/release-notes/service-pack/sp-release-n...

@berliantI have installed SP5 and now the XF's are exported to Target and visible under Offers. Further when creating the A/B test Activity its shows site takes too long to load or does not contain tag libraries error. I work with WeRetail site and using default workspace.

 

https://docs.adobe.com/content/help/en/experience-manager-learn/sites/personalization/experience-fra...

 

Above document is what I follow to create activities. Inside XF I'm not able to find Targeting option to add activities and while creating activities in Target it shows above error. 

 

Let me know further steps to complete the integration between AEM and AT after the XF offers are visible in AT.

@berliant @Vaibhavi Kindly help me to resolve the error I mentioned in previous comment.

Hi Sushmitha, 

Great you can see the exported fragments in target. 

Once you go to the page which you are trying to target, by clicking on content which you plan to target ,you will get an option to choose exported fragments. Flow will be 

ACTIVITY page > Experience Fragment>pop window with list of experince fragments . 

 

If you are facing the above mentioned issues before you add the exported XF offers on page, then it is nothing to do this XF integration. Please do confirm me the below questions. 

1. When are you facing the above issue. Is it before you add Xf offers on target page or before? 

2. Have you looked into the logs? What error are you facing?

@VaibhaviPFB Error

 

Lastly my sample XFs that I created under XF folder got exported to AT and post that I opened a page I want to target the content, but while targeting the content in WeRetail experience page i got below error.

 

03.08.2020 12:32:11.980 *ERROR* [0:0:0:0:0:0:0:1 [1596438126336] POST /libs/cq/analytics/testandtarget/command HTTP/1.1] com.day.cq.analytics.testandtarget.impl.servlets.commands.SynchronizeCampaignCommand Create offer request failed!

 

Screenshot 2020-08-03 at 12.32.28 PM.png

@Vaibhavi Can I get steps to resolve the above issue