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



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|[] 9201121 - []: Error adopting XML from post data InvalidStream, StorageStream) sax parse error: Content is not allowed in prolog.
From: (H413662C475DC14A88B536AEF91C5A58B:[])
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.mapInputData(
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.activityExecutionProlog(
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

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.


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