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

SOLVED

export XF to Target through Adobe I/O

Avatar

Level 4

I followed these 2 documents and worked on the configuration. Permission was given to my user from Admin Console. The integration and health check was showing successful but when I am trying to Export an XF to Target, it's failing. I am using AEM 6.5.

Screenshot (405).pngScreenshot (406).png

error:

*ERROR* [0:0:0:0:0:0:0:1 [1596546043939] 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]

.

.

.

.

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:607) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:562) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.createOffer(WebServiceImpl.java:264) [com.adobe.cq.cq-target-integration:1.3.22]
at com.day.cq.analytics.testandtarget.impl.RestApiAdapter.create(RestApiAdapter.java:108) [com.adobe.cq.cq-target-integration:1.3.22]
... 139 common frames omitted
Caused by: java.lang.Exception: Unexpected response status code [403] for request [https://<name>/target/offers/content].
{"httpStatus":403,"requestId":"eAJ7YleuhpbyUh91cLsLI6jzsdfsQLlLfX","requestTime":"2020-08-04T13:00:46.730Z","errors":[{"errorCode":"Forbidden.Resource","message":"Access denied. To perform this operation, all of the following privileges are required \"[editor]\"."}]}
at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:604) [com.adobe.cq.cq-target-integration:1.3.22]
... 142 common frames omitted

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Shaheena_Sk ,

 

This looks like a permission issue - try changing access from Editor to Approver.

 

Please look into below threads for the same issue.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/problem-when-export-experi...

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/create-offer-request-faile...