Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Launching of a Pega application by clicking on link fails

SA-34807

Summary



The user has upgraded from Pega 6.3 to Pega 7.2. and is launching a Pega application from another application by clicking on a link. Clicking on the link invokes a java script that executes an activity to create work object and launch harness. This functionality was working fine in Pega 6.3 but is failing after the upgrade.


Error Messages



2017-02-24 07:37:43,305 [ch Thread t=009b8430] [ STANDARD] [ APP:01.06.01] (ngineinterface.service.HttpAPI) ERROR test-qa.pega.com|[] 9201121 - []: Error adopting XML from post data
com.pega.pegarules.pub.clipboard.InvalidStreamError: InvalidStream com.pega.pegarules.data.internal.clipboard.XMLStream.newStream(String, StorageStream) sax parse error: Content is not allowed in prolog.
From: (H413662C475DC14A88B536AEF91C5A58B:[])
at com.pega.pegarules.data.internal.clipboard.XMLStream.newStream(XMLStream.java:477)
at com.pega.pegarules.data.internal.clipboard.XMLStream.newStream(XMLStream.java:432)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.adoptXMLForm(ClipboardPageImpl.java:818)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.mapInputData(HttpAPI.java:2481)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.activityExecutionProlog(EngineAPI.java:554)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:388)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
ink.java:200)


Steps to Reproduce

  1. Launch a Pega application from a link in another application.


Root Cause



An issue in the custom application code or rules is identified as root cause of the issue. In the java script calling the activity to create work object, the code "window.attachEvent("onload", setValidate);" is used to call the setValidate function. The actiivity is not called and the work object fails to be created.

Resolution



Perform the below local change in the java script to resolve the issue:

Previous Code:
window.attachEvent("onload", setValidate);

New Code:
window.onload = setValidate;

Published March 10, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us