Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Jennifer_siders
Contributor III
Contributor III

tFileList - tfFileCopy

Hello All,

I have a requirement to rename a file by removing the

Old File Name: Orders-2021_06_29_153733

New file name: Orders-20210629153733

Basically, I should remove the underscores from the file name.

Also, when I have multiple files to copy, tFileList ->Iterate -> tFileCopy only copies one file, though the iterate count displays the number of files.

0695b00000GfNeeAAF.png

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

I guess it is because the same file name replace existing file.

If you want to remove the underscores from the old file name, set the destination filename as:

(String)globalMap.get("tFileList_1_CURRENT_FILE").replaceAll("_","")

 

Regards

Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi

I guess it is because the same file name replace existing file.

If you want to remove the underscores from the old file name, set the destination filename as:

(String)globalMap.get("tFileList_1_CURRENT_FILE").replaceAll("_","")

 

Regards

Shong

Jennifer_siders
Contributor III
Contributor III
Author

Thanks a lot @Shicong Hong​