Runtime execution error - illegal characters in path - append line

I got a runtime execution error as below:
Source: Append Line
Message: Illegal characters in path
Exception Type: System.ArgumentException

My Append Line Text is as below:
Path.Combine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss ") & "copy source file return: " & copyReturn.ToString)

How could there be illegal character?


You cannot use : in your file path.

Can you remove it?


thanks for reply, let me try


And also it should be seperated by comma “,” but not “&”.

1 Like


Illegal Character - : is not allowed in FileName convention

Also for concatenation use +

Hope this helps