Expand my Community achievements bar.

SOLVED

AEM - Target integration with Adobe I/O

Avatar

Level 2

In our project we are trying to configure the integration between AEM and Target using Adobe I/O, we have followed all steps described in the note

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

And it looks fine. But when we try to export to Adobe Target an Experience Fragment, we are getting an error

rosamart_0-1596714394830.png

 

 

We’ve been testing more things and we think the problem lies on Target default workspace.

We have defined the following configuration for the Experience Fragments:

 

Screenshot_2.png

 

If we try exporting it we get the error on the first screenshot.

In the error.log file we get this:

{"httpStatus":400,"requestId":"yFOYfxyaS11AeybyJnPOKInot1MNYb6C","requestTime":"2020-07-31T11:41:29.155Z","errors":[{"errorCode":"WorkspacesEnabledClient.offerDTO.workspaces","message":"workspaces not enabled for the client","meta":{"workspaces":"invalid"}}]}

        at com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl.request(WebServiceImpl.java:607) [com.adobe.cq.cq-target-integration:1.3.28]

        ... 151 common frames omitted

31.07.2020 13:41:37.548 *INFO* [sling-default-4-com.day.cq.replication.impl.ReverseReplicator.4346] com.day.cq.replication.Agent.publish1westeurope_reverse Sending GET request to http://10.217.1.36:4503/bin/receive?sling:authRequestLogin=1&binaryless=true

 

Once we’ve seen this error we’ve tried to delete AEM from the equation so we are testing the integration using the Target API you have available here:

http://developers.adobetarget.com/api/#introduction

There we can download a Postman collection to interact with Adobe Target directly:

rosamart_2-1596714394880.png

 

The first step is to obtain a JWT token from Adobe IO following this instructions:

https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/JWT.md

With this token we can invoke the first service in Postman to obtain the access token for the following service calls:

Screenshot_4.png

 

We define the global variables used by the Postman requests:

Screenshot_5.png

 

And now we can retrieve the offers we have on Target, for example:

Screenshot_6.png

 

But if we try to create a new offer we get the same error that we can see at AEM:

Screenshot_7.png

 

 

In the previous image we can see we are using the default workspace. In our orject we have 2 workspaces:

Screenshot_8.png

 

We cannot create an offer on any workspace….

In the integration tab we can see the role configured to ‘Editor’ which it's assigned to several people it’s also OK or that's how it looks:

Screenshot_9.png

 

 

On the other hand, we’ve tested to create an offer without specifying the workspace in Postman and we could do it (but AEM cannot do it of course).

rosamart_10-1596714395045.png

 

rosamart_11-1596714395069.png

 

 

Please, can you help us know where the problem is?

I think it’s in at the ‘default Workspace’ but we don’t know what to configure and where. Do any of you know what is happening?

 

PS: 

We’ve realized is that we cannot switch between workspaces in target despite we’ve seen we have 2 workspaces and the user has approver role for both.

We expected to see a selector at the upper right corner of the screen but we can only see the user name and the role… (I don’t know if this is normal).

 

Thanks a lot!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hey Rosa. We had a similar problem with the I/O integration of AEM/Target. Do you have Target Standard or Premium? For us, we are on Target Standard and the AEM service pack only supports integrating when there are multiple workspaces available (ie. only with Target Premium). We eventually had to integrate with AEM using the classic method instead.

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @rosamart  I was able to create offer using Admin API. while creating the project you need to add the workspace with the project and same workspace id must be given while creating the offer using api

LordOfTheRings_0-1597386485116.png

 

Avatar

Level 2

Hello Friend, This is known issue in AEM before 6.5.7 . it is fixed in 6.5.7

 

https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/service-pack/sp-release-...

 

  • Cannot export Experience Fragments to Adobe Target if using IMS configuration and Adobe Target Standard environment (NPR-34555).

Avatar

Correct answer by
Level 3

Hey Rosa. We had a similar problem with the I/O integration of AEM/Target. Do you have Target Standard or Premium? For us, we are on Target Standard and the AEM service pack only supports integrating when there are multiple workspaces available (ie. only with Target Premium). We eventually had to integrate with AEM using the classic method instead.

Avatar

Level 2
we finally have integrated Target with AEM using the classic method, and it seems it works. Thanks!

Avatar

Level 1

How did that worked ? I cannot see the workspace id is passed in request and that is creating offer creation failed in target. can someone help me to resolve that issue?

Avatar

Employee

@rosamart Can you please confirm if your account is provisioned for Target Standard or Target Premium?

From the error, it looks that the Default Workspace could probably not set for your account. You could write an email to Target support (clientcare@adobe.com) for verifying this.

Please also confirm if you are able to export Experience Fragment using the legacy integration?