Issue with double backslash using read text file activity

Hello everyone,

I have an excel config file. One of the values is a document path (C:\project\TEMP\Entrada.txt), i need to provide this path to a Read text file activity, but when i debug the project the output path is:

C:\project\ \TEMP\ \Entrada.txt

So it doesn’t read the file.

How can i fix this issue? i already tried an assign activity doing a String.Replace but it’s not working.

Hello @snapval

If you provide the path as “C:\project\TEMP\Entrada.txt”, is it throwing any error in Read Text file activity?

Thanks

Yes,

Output: Read Text File: One or more errors occurred.

can you share the screenshot of the workflow?

Thanks

Hi @snapval,

What about this

Input

Output

Code
Path.GetFullPath(out_Config("New2").ToString)

Thanks,
Rajkumar

if you are storing the path in any variable, then replace- Var.Replace(“\”,"").tostring.

1 Like

Hi,

Can you check content of $exceptionDetails in Locals panel as the following?

It contains cause of error and we can solve the issue from this.

And as double backslash in local panel is C# style backslash literal in string, it’s probably no problem.

Regards,