Page 1 of 1

Ensure '<CR><LF>' does not appear in a extracted filename

Posted: Wed Oct 22, 2014 11:08 pm
by ntesla22
Hello

I have a situation where I want to identify the file path and name of a TXT file in C:\Temp. Let's say the file is called 'test_file.txt' I have used the 'Search For File' and then the option of 'Save the File List to Variable', using the variable name file_name.

When I later ask RoboTask to run {file_name}, the process fails, with the log saying 'Cannot open file "C:\Temp\test_file<CR><LF>.TXT". The system cannot find the file specified'.

In short, somehow '<CR><LF>' is being added and I'm not sure why.

How can I avoid this '<CR><LF>' problem?

Regards

Re: Ensure '<CR><LF>' does not appear in a extracted filenam

Posted: Thu Oct 23, 2014 11:08 am
by Oleg
It would be great to see your task. Maybe I can find your mistake.

You can remove EOL symbols by using STR Trim action

The log panel transforms EOL symbols to "<CR><LF>" string for visualization.
<CR> - carriage return, the symbol #13
<LF> - line feed, the symbol #10