Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Eloqua WCS integration is not working after recent Eloqua Rest API 2.0 change in Eloqua build 485

2666009Feb 2 2017 — edited Feb 2 2017

We are facing below error when we are embedding image in Eloqua landing page. Image is displaying correctly. But the place holders (for contact details) are not resolving correctly and it is still displaying filed names as {{C_FirstName}}.

Failure case -

[2017-01-31 12:41:19,752 UTC] [DEBUG] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: json={"grant_type":"refresh_token","refresh_token":"MzQwMjA3MTU4OjFzNjQ5QW4xODBrR3U5ZThBM0xMOXQtMjFOZXFuTGQyT2dEODh+Y01nMHNEWTFlQndpeG91dTQ1SkphYXhBblhBWi1rT1ZmQ1ZwVTJYMlk3dX5IcEJzYX5pZG1JdGVRSnUtYm0=","scope":"full","redirect_uri":"https:\/\/qaprd.coh.element115.net:443\/cs\/ContentServer?pagename=EloquaIntegration\/Enable"}

[2017-01-31 12:41:19,752 UTC] [DEBUG] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: authorizationheader=Basic NzBmYjA4NjUtMTU0ZC00N2NmLTk2NjktZWY3ZGYxYTE2NDQzOjF6eTB+QTVCMlFVcUcyU0p0V3Y2dDBIaGhXYmRQZUgxVUdqYn52Q09+YkdRSU43R2FDOXJZLXY5SkNLM3Ixd2tyN29tdUlTdlRRUE1Wc3YxanNuUVQ3SE5idlBkTFdidXRXdng=

[2017-01-31 12:41:20,156 UTC] [ERROR] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: exception thrown making token request

[2017-01-31 12:41:20,156 UTC] [ERROR] [.kernel.Default (self-tuning)'] [oracle.wcsites.eloquaintegration] EloquaIntegrationInstallationManager.getFreshToken: token response={"error":"invalid_grant","error_description":"The refresh token is incorrect, malformed, expired, or has been invalidated."}

If we reinstall cloud app  in eloqua, for the first time image is embedding, it is working fine. For the subsequent requests it is throwing above errors.

We are using OOB EloquaIntegration as mentioned in the Eloqua WCS integratio and I don't know what code change we have to make and where to persist the token and reuse it as mentioned in below documents. If we get any code example then we will patch it or if any patch is available then we will update that. We are using Oracle Web center sites 11.1.1.8.1 patch 13 and following code is failing

https://community.oracle.com/thread/3965408

https://community.oracle.com/docs/DOC-1003687

  public void selectFields(String installId, String instanceid, String fieldlist)

  {

    HttpURLConnection conn = null;

    EloquaIntegrationInstallationManager eim = new EloquaIntegrationInstallationManager(this.ics, installId);

    String[] access_token = eim.getFreshToken();

    if (access_token == null) {

      logger.error("EloquaInstanceManager.selectFields: no token");

      return;

    }

    ................

  }

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2017
Added on Feb 2 2017
1 comment
340 views