Connect-FTP 'Local file' cannot be found/read

We are attempting to use Connect-FTP and receiving following error:

 "File does not exist or cannot be read: /usr/local/tomcat/temp/StaticContent/global/ServiceExport/test.txt"

We are receiving same error when attempting to use both relative and absolute path in 'Local file' parameter of the Connect-FTP method. I cannot find any other threads with solutions to this problem. The file is definitely available, I have tested running @baseclass.DownloadFile using exact same path in both relative/absolute scenarios and the activity works.

Our requirement is to send file located on our SFTP Cloud server to internal FTP Server and we received the same error, so using a file on temporary path was the next attempt to rule out SFTP repository issues and even then it was unsuccessful as I mentioned above.



Keep up to date on this post and subscribe to comments

February 16, 2019 - 12:04pm

does App Server has all rights to read this location?

February 16, 2019 - 3:02pm

Yes, App Server has full rights to location.

Connect-FTP method fails here when attempting using parameters provided:

// Invoke FTP via ServiceUtils 
	ServiceUtils svcUtil = tools.getServiceUtils();
	svcUtil.invokeFTPConnector(ftpPage, ftpParams);

 Does anyone know if invokeFTPConnector() uses as opposed to PRFile? I can successfully access/verify file using PRFile using the same path. I have experienced issues with "file not found" when using Better yet, does PRFile offer permissions to access a location that would not normally have. This is cloud instance so I cannot check directory permissions. I have only checked permissions using PRFile.canRead()/canWrite().

October 12, 2019 - 8:38am

Were you able to find a solution for this issue?

October 14, 2019 - 4:59am
Response to Raja V


Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write Post button here. Once created, please reply here with the URL of the new post.

You may also refer this discussion link as a reference in the new thread.

Vidyaranjan | Community Moderator | Pegasystems Inc.