The error "Trailer record is invalid or missing" can happen if your trailer is missing, incorrectly formatted or does not have the correct record count. This article covers uploads other than Account Data Upload (ADU). For ADU trailer issues see Upload Error: UL114.
Please add a correctly formatted trailer to the data file with the correct record count. Formatting requirements depend on the vendor code and can be found in the control file.