Issue with profile get/update using Campaign standard form in AEM



Hi all,

I am trying to create adobe campaign forms in AEM 6.4 The article used as reference is:

This article mentions something called - Encrypted Primary Key (EPK) that can be obtained from the profiles in Adobe Campaign. I couldn't see it in the profile page but have used adobe io APIs (<tenant-name>/campaign/profileAndServicesExt/profile/byEmail?email=<email-address>) to get the PKey value. My assumption is, this is the EPK value we should be using.

However, when I open the form with the URL encoded EPK hoping to see the profile data displayed, I get the following exception in the campaign bundle logs:

com.adobe.cq.mcm.campaign.profile.ProfileHelper Processing component 'encryptedpk' (mcm/campaign/components/form/profile/encryptedPK)

com.adobe.cq.mcm.campaign.profile.ProfileHelper Encrypted PK field found: {}encryptedpk

com.adobe.cq.mcm.campaign.profile.ProfileHelper URL parameter for encrypted PK is: epk

com.adobe.cq.mcm.campaign.profile.ProfileHelper Encrypted primary key: @BSbrKW-whkEgFuLcNESv6M3RK4cce_YyiabFpNFMC2sdmz2kcRHG8YrP0sVeNgthbgNONXOjkWgxbwEveBx0juhnzbg

com.adobe.cq.mcm.campaign.profile.impl.ProfileRetrieverImpl Requesting profile from Adobe Campaign ,,,

com.adobe.cq.mcm.campaign.profile.ProfileHelper Could not determine profile Unexpected status code (expected 200, was 404)

       at []

       at []

       at com.adobe.cq.mcm.campaign.profile.impl.ProfileRetrieverImpl.getJSON( []

       at com.adobe.cq.mcm.campaign.profile.impl.ProfileRetrieverImpl.load( []

       at com.adobe.cq.mcm.campaign.profile.ProfileHelper.getProfile( []

This is what we see in the error.log

GET /content/<page>.html HTTP/1.1] Status code: 404; response body is:

GET /content/<page>.html HTTP/1.1] Requested: /jssp/nms/amcGetProfile.jssp?__sessiontoken=***&mapping=mapRecipient&resource=mapRecipient&encryptedPK=@BSbrKW-whkEgFuLcNESv6M3RK4cce_YyiabFpNFMC2sdmz2kcRHG8YrP0sVeNgthbgNONXOjkWgxbwEveBx0juhnzbg

Has anyone faced this issue earlier or could someone point out what could we be doing wrong, so that we can investigate more?

We have checked the connectivity between AEM and Campaign and it is successful.

Any help/input is appreciated.



Accepted Solutions (1)

Accepted Solutions (1)



We figured out the issue and thought I should share here just in case someone faces the same issue.

We were using the wrong acMapping in the form page template:

Make sure the acMapping property on the page's jcr:content node is set to mapRecipient or profile when using Adobe Campaign 6.1.x or Adobe Campaign Standard, respectively

Re: Internal Adobe Campaign error: rc=-2003 while creating a profile

Answers (0)