Every day a PLC sends out reports via email for the days activities. Most of the reports appear well and good. But one is stupid. If I check the file in the RAMdisk, it opens and reads as expected. But when it gets send at the end of the day in an email, the .csv file literally says "Error opening attachment" in the first cell, and that's it. The data is gone and the file has a message in it that I didn't write through the PLC.
What might cause this?