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

PDF merge is not happening with ConcatenateEForms activity

SA-43831

Summary



User is trying to merge generated PDF file using Out-of-the-box (OOTB) activity ConcatenateEForms.

Merging of PDF happens but in the merged PDF only the first PDF file is shown.

Error Messages



Not Applicable


Steps to Reproduce



1.Create a HTML rule and map a Section rule onto HTML rule.
2.Using OOTB HTMLToPDF convert the above HTML rule to PDF. PDF is generated.
4.Repeat the same steps to generate second PDF file for another HTML rule (generating 2 PDF files).
5.Call Code-Pega-eForm. ConcatenateEForms to merge the generated PDF files from step 3,4. PDF is generated but the merged file has only first file content.


Root Cause



As StreamName parameter is being passed for "HTMLToPDF" activity, in that activity this StreamName parameter is inturn converted to Param.Markup.

When a different StreamName parameter is passed for second time activity call, the Markup parameter which was created first time is used in the java step instead of second Markup. So the merged PDF is showing same first PDF content twice.


Resolution


Perform the following local-change:

Instead of directly passing StreamName Parameter, add a step with Property-Set-HTML method to pass the HTMLstream to Param.Markup and pass Markup to the activity.

Published December 14, 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