Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


XAAS
  •  XAAS
  • Paid support Topic Starter
2020-07-02T14:22:19Z
When downloading file from SFTP, it fails with following error:

(Version 9.1.0)

Exception in Task: Failed to download file: /outbound/GCS/Position_and_PnL_Report.20200701.csv to D:\SFTP\Northlight\SNDATA\Import\JPM\Position_and_PnL_Report.20200701.csv, err: System.NullReferenceException: Object reference not set to an instance of an object.
at VisualCronService.RemoteFileAPI.DownloadSFTPFiles(TaskFoundationClass tf, ConnectionClientClass cc, ConnectionHandlerClass ch, String strConnectionId, List`1 files, String originalSaveFolder, FTPDownloadCommandClass downloadCommand, Int32& intTotalFiles, Boolean& active, VariableReplacerClass VR, TaskProcessClass tpc, Boolean bolDebugging) in C:\git\code\VisualCronService\Connection\apiRemoteFile.vb:line 1644
Exception in Task: No file(s) downloaded

How to fix?
Sponsor
Forum information
Support
2020-07-06T08:23:26Z
Originally Posted by: XAAS 

When downloading file from SFTP, it fails with following error:

(Version 9.1.0)

Exception in Task: Failed to download file: /outbound/GCS/Position_and_PnL_Report.20200701.csv to D:\SFTP\Northlight\SNDATA\Import\JPM\Position_and_PnL_Report.20200701.csv, err: System.NullReferenceException: Object reference not set to an instance of an object.
at VisualCronService.RemoteFileAPI.DownloadSFTPFiles(TaskFoundationClass tf, ConnectionClientClass cc, ConnectionHandlerClass ch, String strConnectionId, List`1 files, String originalSaveFolder, FTPDownloadCommandClass downloadCommand, Int32& intTotalFiles, Boolean& active, VariableReplacerClass VR, TaskProcessClass tpc, Boolean bolDebugging) in C:\git\code\VisualCronService\Connection\apiRemoteFile.vb:line 1644
Exception in Task: No file(s) downloaded

How to fix?



Hi,
Usually that means you've set the path incorrectly in the task. What error do you get if you use the Connection explorer (in Tools) and try to download the file from there?
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
XAAS
  •  XAAS
  • Paid support Topic Starter
2020-07-13T06:54:47Z
The path is correct. Other files are downloaded correctly some files like this one runs on error.

From Connection Explorer:
Retrieving file list for: /outbound/GCS
Downloading file Position_and_PnL_Report.20200710.csv
Connection lost due to error 0
Download finished


FIle was downloaded but with 0KB. Original File is 144KB
Support
2020-07-13T15:14:29Z
Originally Posted by: XAAS 

The path is correct. Other files are downloaded correctly some files like this one runs on error.

From Connection Explorer:

Retrieving file list for: /outbound/GCS
Downloading file Position_and_PnL_Report.20200710.csv
Connection lost due to error 0
Download finished


FIle was downloaded but with 0KB. Original File is 144KB



Hi,

Could you try go to Extra settings, and set the "Pipeline length" to 1 and see if that makes a difference? If not - try also setting Upload block size to 32256
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
XAAS
  •  XAAS
  • Paid support Topic Starter
2020-07-22T14:10:24Z
After activating "Auto Adjust transfer block", file can be downloaded without problem.
Users browsing this topic
Scroll to Top