I used Uipath.FTP.Activites to upload a file to ftp server and it works.
But if filename contains chinese or Japanese error occurred.
File path contains chinese or Japanese is OK. The problem is filename.
Other system read the designated filename so I can’t change it.
Is there any way to solve the problem. Thank you.
Hi @gin,
Could you provide the error message? It seems a bit odd that it would not recognize the characters from the filename but does handle the paths (I would think it parses the entire string).
Either way, seeing the error message and some extra context might help a bit.
System.AggregateException: One or more errors occurred. —> FluentFTP.FtpException: Error while uploading the file to the server. See InnerException for more info. —> FluentFTP.FtpCommandException: ??.txt: Cannot create file.
=>The problem is file can’t be created because file name contains Japanese is recognized to ??.txt And if I change the filename to test.txt it works.
It seems a bit odd that it would not recognize the characters from the filename but does handle the paths (I would think it parses the entire string).
=>The parameter local path I set the filepath+filename(the entire String).It works even file path contains Chinese or Japanese but error occurred when filename contains Chinese or Japanese.
Unfortunately I do not have insight into the code behind the activity, which would maybe help to resolve this issue.
I really cannot think of a workaround either, as the filename cannot be changed.
Maybe someone with more knowledge will help here.