How to exit out of workflow (Return not working)

Hi,
I am using FTP activity to establish sftp connection to a server. I put the FTP activity inside try-catch activity to catch connection time out errors. Inside Catch, i log message and call RETURN activity. But it does not RETURN to main file (from where sftp workflow is invoked), instead throws this error.

Try Catch: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.
sftpDownload - Invoke Workflow File (sftpDonwload.xaml): Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.
Return: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.
Main Sequence: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.

How can i resolve this issue? I need to exit out of workflow when ftp connection times out.

This error occurs in the latest version of UIAutomation package. Try downgrading it to 24.10.12 and retry.

@Daksha

  1. Try to change the system activities package version
  2. To force download the packages again you can go to c:\users\username\.nuget and rename the packages folder and reopen the project ..the libraries would be downloaded again.this can also fix the incorrect libraries

Cheers

@Daksha

Try upadating to latest or downgrading the below packages

  • UiPath.FTP.Activities
  • System.Diagnostics.DiagnosticSource
  • UiPath.UIAutomation.Activities

Hi @Daksha

Could you please list the dependencies used in your project as well as your Studio version, just so that we have a full picture?


Here you go.

Thanks, it worked. I do not prefer downgrading the package version, as it makes me rework the ftp activities(directory exist activity). So, for now the exception will be handled by global handler.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.