Hi all,
I am trying to create adobe campaign forms in AEM 6.4 The article used as reference is: https://helpx.adobe.com/experience-manager/6-4/sites/authoring/using/adobe-campaign-forms.html#Testi...
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 (https://mc.adobe.io/<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
com.day.cq.mcm.campaign.ConnectionException: Unexpected status code (expected 200, was 404)
at com.day.cq.mcm.campaign.impl.CampaignConnectorImpl.callGeneric(CampaignConnectorImpl.java:249) [com.day.cq.mcm.cq-mcm-campaign:1.3.8]
at com.day.cq.mcm.campaign.impl.CampaignConnectorImpl.callFunction(CampaignConnectorImpl.java:207) [com.day.cq.mcm.cq-mcm-campaign:1.3.8]
at com.adobe.cq.mcm.campaign.profile.impl.ProfileRetrieverImpl.getJSON(ProfileRetrieverImpl.java:70) [com.day.cq.mcm.cq-mcm-campaign:1.3.8]
at com.adobe.cq.mcm.campaign.profile.impl.ProfileRetrieverImpl.load(ProfileRetrieverImpl.java:135) [com.day.cq.mcm.cq-mcm-campaign:1.3.8]
at com.adobe.cq.mcm.campaign.profile.ProfileHelper.getProfile(ProfileHelper.java:205) [com.day.cq.mcm.cq-mcm-campaign:1.3.8]
This is what we see in the error.log
GET /content/<page>.html HTTP/1.1] com.day.cq.mcm.campaign.impl.CampaignConnectorImpl Status code: 404; response body is:
GET /content/<page>.html HTTP/1.1] com.day.cq.mcm.campaign.impl.CampaignConnectorImpl 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.
Thanks
Ruchi