I encountered this error when downloading a file: Invoke Workflow File: The activity ‘Wait for Download’ with ID 183 threw or propagated an exception while being canceled.
The download didn’t succeed because of some strange behavior of the application, but the activity Wait for Download is inside a Retry Scope activity and is designed to retry downloading the file for maximum 3 times, but it seems that this time it didn’t retried at all and nether didn’t entered in my Catch block from the TryCatch, the flow just stopped at that error completely.
I don’t have the source code anymore.
But if I remember well, this issue was solved when I configured the activity to exclude the temporary files generated by Chrome for downloads.
Ref: https://docs.uipath.com/activities/docs/get-last-downloaded-file → Make sure that the specified Downloads folder doesn’t contain temporary files created by other applications, such as Microsoft Office apps. The Wait for Download activity may mistake these files for downloaded files.