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.
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.
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.
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
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.
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]\"."}]}
Views
Replies
Total Likes
...
Views
Replies
Total Likes
...
Views
Replies
Total Likes
...
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
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.
Also please share the logs if you still face the issue after the configuration.
Views
Replies
Total Likes
Views
Replies
Total Likes
.
Views
Replies
Total Likes
Hi Sushmitha,
Please check the below documentation.
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
Views
Replies
Total Likes
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.
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.
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]
Views
Replies
Total Likes
...
Views
Replies
Total Likes
...
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@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.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies