I have created an SSIS package for downloading file from FTP server. When I debug the package, everything goes fine. But when I shedule the package as Job step, it sometimes fails to connect. The job is sheduled to repeat every 4 hours and in average every other run fails with Error: 0xC002918F - The Login request was denied.
The connection is anonymous and doesn't require password
I have tested it for a few hours now and found out some info:
I have no possibility to see the settings of the FTP server. What confuses me the most is the fact, that some sheduled tasks work fine and some fail. I haven't found any regularity in it.
What I have tried so far:
No luck so far. Still some attemps success and some not.
EDIT:
The FTP server is on Simatic device.
For this week, i kept shedule for every 1 hour and kept pinging the device every 30 seconds. Still some SSID attempts don't succeed and ping goes through every time :-/
The SFTP Task is an SSIS Control Flow task for remote file transfer and management.
Figure 7 shows the SSIS package with the three Connection Managers defined.
I would replace the standard SSIS FTP Task with an Execute Process Task, and call WinSCP.
https://winscp.net/eng/docs/guide_automation
I've found WinSCP is much more reliable and flexible. You can pass it a command line built using expressions to cover all the functionality of the SSIS FTP task, and more.
I think you have to accept just using a workaround in this scenario, maybe set the SQL agent SSIS job step to retry after an X seconds delay (advanced tab of SQL job step). We do this a lot when connecting to flaky cloud API's with SSIS.
Or maybe a for loop container in your package which continues on failure & breaks out on success - maybe try 3 times to connect?
Sorry if this is all obvious to you already.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With