Silverlight Control error generating document with Word Merge
When you use the built-in Word Merge feature to generate the Word document, the Silverlight Control error occurs.
“Silverlight Control ERROR in 'ProcessHttpResponse': Failed to download rule. Waitcode: WORD_TEMPLATE_DOWNLOAD”
Steps to Reproduce
- On click of a button, the Word document generation HTML section is called.
- This in turn calls the Silverlight component embedded in the PRPC engine.
- The Silverlight component opens the corresponding Word document through the following error message:
The Issue is generally caused because the Silverlight Word Merge functionality expects an XML element with the required parameters to accomplish its task(word template, PRPC server url, Pega-Rules cookie).
The reason it fails is the missing pyClassName: In this context, pyClassName is populated using pyWorkPage.pxObjClass property with the help of @baseclass * WordManager_Settings Generic XML Stream rule.
The flow for Word Merge functionality is used further internally to identify the Word template in @baseclass.WBGetRuleXmlWithKeys activity.
Make sure that the corresponding WordTemplate rule is in the class from where you are running the Silverlight Word Merge, so that the pyClassName parameter that is passed is correct..
0% found this useful