News:

  • June 11, 2026, 07:24:50 AM

Login with username, password and session length

Author Topic: Error opening attachment  (Read 7828 times)

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
Error opening attachment
« on: July 08, 2019, 11:36:38 AM »
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?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Error opening attachment
« Reply #1 on: July 08, 2019, 12:17:53 PM »
The email driver failed while opening the file. Any time there is an error with the file system, it stuffs the error message into the body of the attachment. I'd have to dig a little deeper to know more, but perhaps the file is open for writing elsewhere or has been deleted.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
Re: Error opening attachment
« Reply #2 on: July 08, 2019, 12:35:38 PM »
Thanks. I'll try better interlocking.