Support Article
Issue with Pega attachment functionality
SA-17576
Summary
When trying to attach a file of size greater than the specified size from Pega OOTB functionality, it is showing an exception in logs- User attempted to upload a file larger than 2 MB. Please contact the System Administrator.
Error Messages
com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'PYUPLOADFILE' that applies to 'SP-FW-SPOCFW-Work-NewIssuer'. There were 6 rules with this name in the rulebase, but none matched this request.
User attempted to upload a file larger than 2 MB. Please contact the System Administrator.
Steps to Reproduce
1. Run the Case.
2. Try attaching a file which is greater than the threshold size(5MB) from OOTB functionality.
<env name="Initialization/MaximumFileUploadSizeMB" value="5" />
Root Cause
A defect in Pegasystems’ code or rules. user did not specify a size which is less or equal to 'initialization/maximumfileuploadsizemb' value in prconfig. Values (in prconfig and in 'pyMaxDragDropAttachSizeMB') are out of sync.
Resolution
Perform the following local-change:
Changed the level value to the preferred threshold value in Pega-ProcessEngine.pyMaxDragDropAttachSizeMB so that the value in level is in sync with the value mentioned in prconfig file.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.