Issue with Duplicate File Attachments after Upgrading from Pega 7 to Pega 8.7.5
Hi team,
We recently upgraded our application from Pega 7 to Pega 8.7.5, and one of the functionalities is not working properly.
In Pega 7, the drag-and-drop multiple file upload feature worked fine. However, after the upgrade, we’re facing an issue where duplicate files with the same name are being created.
Details:
In Pega 7, the following OOTB rules were used and worked correctly:
-
Data-WorkAttach-File • pzAttachFileMultiDragDrop / Pega-EndUserUI:07-10-07
-
Data-WorkAttach-File • pzMultiDragDropControlLocalised / Pega-EndUserUI:07-10-01
-
Data-WorkAttach-File • pzMultiDragDropControl / Pega-EndUserUI:07-10-11 (This HTML section contains an activity call)
-
@baseclass • pzDragDropMultiFileUpload / Pega-EndUserUI:07-10-01
In Pega 8, when using the same rules, files are not getting attached properly.
While checking the activity @baseclass • pzDragDropMultiFileUpload / Pega-EndUserUI:07-10-01, I noticed that step 3 (which calls Data-WorkAttach-File.pyUploadFile) was added in Pega 8.7.5.
It seems that this additional step might be causing the issue.
To troubleshoot, I tried using the following rules from Pega 8:
Hi team,
We recently upgraded our application from Pega 7 to Pega 8.7.5, and one of the functionalities is not working properly.
In Pega 7, the drag-and-drop multiple file upload feature worked fine. However, after the upgrade, we’re facing an issue where duplicate files with the same name are being created.
Details:
In Pega 7, the following OOTB rules were used and worked correctly:
-
Data-WorkAttach-File • pzAttachFileMultiDragDrop / Pega-EndUserUI:07-10-07
-
Data-WorkAttach-File • pzMultiDragDropControlLocalised / Pega-EndUserUI:07-10-01
-
Data-WorkAttach-File • pzMultiDragDropControl / Pega-EndUserUI:07-10-11 (This HTML section contains an activity call)
-
@baseclass • pzDragDropMultiFileUpload / Pega-EndUserUI:07-10-01
In Pega 8, when using the same rules, files are not getting attached properly.
While checking the activity @baseclass • pzDragDropMultiFileUpload / Pega-EndUserUI:07-10-01, I noticed that step 3 (which calls Data-WorkAttach-File.pyUploadFile) was added in Pega 8.7.5.
It seems that this additional step might be causing the issue.
To troubleshoot, I tried using the following rules from Pega 8:
-
Data-WorkAttach-File • pzAttachFileMultiDragDrop
-
Data-WorkAttach-File • pzMultiDragDropControlLocalised
-
pzMultiDragDropControlStandardRS / Pega-EndUserUI:08-07-05 (Control)
Instead of using the HTML section, I used the control. The files are now getting attached, but duplicates are being created — for example, if I drag and drop 4 files, 8 files are created with the same names.
All of these are OOTB activities, so it’s unclear why the behavior differs between versions.
Please help me understand:
-
How to fix the duplicate file issue.
-
Or, how to make the old (Pega 7) functionality work in Pega 8 without code changes.
Thank you for your help.