How to Rename a control file from .CSV.meta to .meta

I have requirement to fetch the file from repository which is .csv.meta file rename it to .Meta(remove .csv) and place it in another sftp location.

while in this process is there is a way to rename the file before actually copying it. I tried to use Rename file OOTB activity which eventually calls pxGetFile Datapage which fetch the content from file. but its not worked.

@sindhujav4915 In Pega, renaming a file during the process of copying it to another location is not directly supported by an OOTB feature. However, you can achieve this by using a custom activity or a Java step. You can fetch the file from the repository, store it temporarily, rename it by removing the .csv extension, and then place it in the desired SFTP location. Please note that this approach requires a good understanding of Java and Pega activities.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Transfer the file from Pega cloud SFTP folder to Client SFTP folder

Read File from FTP Server

How to write and read files from SFTP server

@MarijeSchillern No there is OOTB activity called Rename File which worked in my scenario. I just had to do some customizations to activity but it’s worked for my requirement.

Thanks,