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?

Hi,

You cannot use : in your file path.

Can you remove it?

Regards,

thanks for reply, let me try

@Odango

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

1 Like

Hi,

Illegal Character - : is not allowed in FileName convention

Also for concatenation use +

Hope this helps

Thanks