Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am getting such filename ~$Bank_ExcelFile.xlsx when I fetch with
context.filename = ((String)globalMap.get("tFileList_1_CURRENT_FILE"));
I don't need ~$ garbage value.
Can you give me any suggestion on this?
Thanks,
Shame on you guys from Talend Community. You just can´t even suggest some for a simple problem.
@dtsleite, What is your problem? Can you share your issue?
It is over 10 years since this was posted, but I did want to make a comment, in case others come here.
Excel has some features to support 'unsaved' changes. When accessing an Excel file in this state, Excel 'creates' a fake document, prefixed with the ~$ characters. It isn't a real file. I have had to put code in certain processes to IGNORE any files that start with ~$. It is especially problematic since we process a lot of Excel files created by end-users. We often get versions of the file that include this ~$Filename.xlsx.
Just ignore them, only process Excel files that do not start with it.
Hope this helps someone!