Message: One or more errors occurred. (Value cannot be null. (Parameter ‘path’))
Exception Type: System.AggregateException
System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter ‘path’)) —> System.ArgumentNullException: Value cannot be null. (Parameter ‘path’) at UiPath.FTP.FtpSession.UiPath.FTP.IFtpSession.DirectoryExistsAsync(String path, CancellationToken cancellationToken)
at UiPath.FTP.Activities.UploadFiles.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
— End of inner exception stack trace —
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Trouble is, neither of the paths (local or remote) are null.
I have activities just before the Upload Files activity that write the non-null paths to the log so I can review them. I know the file exists because I can open it with other activates. I know the FTP connection is good because the Download Files activity works.
I’m not sure why the error thinks the path is null.
My FTP directory is structured in a way that includes a drive or volume identifier, a user-specific folder, and a file name with a version number.
Example: ABC_D:[USER.FOLDER]Filename.csv;1
I’ve tried the file upload without the version number, and without naming the file.
can you try by updating FTP dependency as stated in below thread:
Also, check if any of the components in the below path have any special characters that should not be there in path.
Example: ABC_D:[USER.FOLDER]Filename.csv;1
I don’t think there are any special characters that should not be in the path.
I use the same structure for the Download Files activity.
Is there a way to check and be sure?
I can see from your screenshot, you already have runtime rules set as "lowest applicable version’.
And as you confirmed there are no special characters also in your workflow.
Can you also confirm if this upload files functionality has worked for you ever? If not, i would suggest to degrade you package to 2.30 or 2.2.0 version and then try and see.
Also, if you are able to share screenshots from your upload/download files configuration, would help us identify if there is any issue in same.
This is a newer workflow. I have not had it successfully upload anything as of yet. I did try 2.3.0 yesterday, and unfortunately I had the same error.
I also started on 2.2.0 yesterday, but UiPath does not save any of the original configuration when swapping to 2.2.0 and I did not have time to rebuild it then.
I’m unable to share multiple screenshots right now, as I am a new forum user.
I assign UploadPath as “ABC_D:[USER.FOLDER]File_01.csv;1” and FilePath as “\Sever\Folder1\Folder2\File_01.csv”
My Download Files activities is similar:
Path to files to download = “ABC_D:[USER.FOLDER]File_02.csv;1”
Where to download = “\Sever\Folder1\Folder2\File_02.csv”
While I do appreciate you attempting to provide additional resource to help solve my issue, I assure you I have scoured the forums for a solution before I made my original post.
I have reviewed these videos in the past, and again today.
I do not think they are instructive enough to aid us with this issue.
I’m hoping someone has experienced something similar and is able to provide more instruction as it relates to a FTP directory that is structured similar to mine.
As a last resort, you can try providing upload path value only till folder/directory level and skip file name and version. When you provide the folder level, don’t provide the backslash in the end and see if it works.
It’s much easier to do the file transfer in Alteryx, write the results of the transfer to a table, then reference that table to finish out my process in UiPath.
Thanks again to Sonail and J0ska for trying to help.