System Administrator

Connection closed without indication (Code: 150) when trying to export jCustomers profiles on a FTP

Question

When trying to export profiles on my FTP I get the following error:

2021-07-15T13:53:24,280 | WARN  | Camel (camel-1) thread #24 - timer://collectProfile | AggregateProcessor               | 69 - org.apache.camel.camel-core - 2.20.2 |  Error processing aggregated exchange. Exchange[ID-unomipp03-1626356169386-0-441]. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - File operation failed:  Connection closed without indication.. Code: 150] 
org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed:  Connection closed without indication.. Code: 150
 at org.apache.camel.component.file.remote.FtpOperations.doStoreFile(FtpOperations.java:615) ~[!/:2.20.2]
 at org.apache.camel.component.file.remote.FtpOperations.storeFile(FtpOperations.java:526) ~[!/:2.20.2]

 

Answer

To fix this, you need to add disconnect=true on your connection string, for instance

ftps://myFtpUser@my.host.com?password=thisIsAS3cret&binary=true&fileName=profiles-export-${date:now:yyyyMMddHHmm}.csv&fileExist=Append&disconnect=true&passiveMode=true