export XF to Target through Adobe I/O

Avatar

Avatar
Validate 1
Level 2
Shaheena_Sk
Level 2

Likes

6 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
Shaheena_Sk
Level 2

Likes

6 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
Shaheena_Sk
Level 2

04-08-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

273 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

273 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile
ChitraMadan
MVP

05-08-2020

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

Answers (0)