I experienced this exact issue with large EDI files timing out while small files worked fine. The root cause was a combination of factors, and here’s what actually resolved it.
First, regarding the FTP timeout on large files - the 180-second threshold you’re hitting suggests a network infrastructure timeout rather than an FTP protocol issue. Check your firewall’s connection tracking timeout and NAT gateway settings. We discovered our corporate firewall was terminating idle connections after 240 seconds, but the FTP control channel was staying alive while the data channel appeared idle during large transfers.
For the small files transferring fine, this confirms your FTP configuration and credentials are correct - the issue is specifically related to transfer duration. Implement FTP keep-alive packets on the control channel to prevent the firewall from considering the connection idle. Configure this in your SAP integration layer:
ftp.keepalive.enabled=true
ftp.keepalive.interval=60
ftp.control.keepalive=true
Regarding the timeout increase you tried - increasing the application timeout won’t help if an intermediate network device is dropping the connection. You need to address the network layer. Work with your network team to either increase firewall connection tracking timeouts to match your transfer duration or implement TCP keep-alive at the OS level.
Additionally, consider implementing a hybrid approach: configure your EDI integration to automatically split files larger than 40MB into multiple segments before transmission. This keeps individual transfers under your timeout threshold while maintaining data integrity. On the receiving end, implement an automatic file assembly process that concatenates the segments based on sequence numbers in the filename.
For immediate relief, enable FTP passive mode if you haven’t already, and configure your integration to use binary transfer mode explicitly. We also implemented retry logic with exponential backoff - if a large file fails, the system automatically retries up to three times with increasing delays.
Monitor your integration logs for specific FTP error codes. A 421 timeout code indicates server-side issues, while connection reset errors point to network infrastructure problems. This will help you pinpoint whether the supplier’s FTP server or your network path is the bottleneck.
After implementing these changes, our supply planning EDI integration handles files up to 200MB without any timeout issues, and we’ve had zero delays in material availability updates for the past six months.