The Box FTP server will often return the following error when we attempt to upload a CSV file each morning:
- FTPS reply: 551 /F Reporting/2022-03-11_2022-03-12-1647079226485.csv: Error on output file.
When we regenerate a file with the same contents but a slightly different name (it's based on timestamps) and attempt to upload it again, it will succeed.
According to Box’s documentation (box link), this error indicates that the folder name may include trailing whitespace:
- Error on output file. You may have folder names that include trailing space characters. These are not allowed. Rename any folders to remove the extra space.
If this were the case, I would not expect a second attempt to succeed as the folder name is not dynamic. The file name is, but we have confirmed through logs and code review that there is no trailing whitespace on the file name.
The size of files we generally transfer are 2 to 5mb in size. The behavior we've identified leads us to believe that the file is successfully making it to Box's server, it just isn't being saved in the final location.
- Can we have further explanation on why we are getting a 551 response code seemingly randomly? Does the time of day have any bearing on this response?
- What sort of logs does Box have for our uploads?