Question
Atos Syntel
IN
Last activity: 22 Feb 2026 9:49 EST
D_pxGetFile is not allowing to delete the file from repository when in Stream mode.
I have a requirement to move a file from one folder to another in a NAS repository
I have utilized D_pxGetFile to get the contents of the file and copy it to D_pxNewFile and save the D Page and delete the source file using D_pxDelete.
This is working fine when i keep responseType paramvalue as STRING in D_pxGetFile, for larger files i have to set this responseType paramvalue as STREAM, the file is producing, getting copied to target location, step with D_pxDelete is executing without errors, but if i check in the repository location the source file is still there, when i try to open it i am getting a message saying "You do not have permission to open this file, See the owner of the file or an administrator to obtain this permission".
I tried Java step to delete the file instead D_pxDelete, executed without errors, but file is still there.
Tried deleting the file manually, file is disappearing but on refresh it comes back.
only when we restart the Pega Application, the files are getting deleted completely.
so i decided to stop using D_pxGetFile and went with a Java step for moving the file.
Any idea why D_pxGetFile is behaving this way for Stream mode, i also tried Page remove on D_pxGetFile before calling D_pxDelete, but it was doing the same.