book
Article ID: KB0079148
calendar_today
Updated On:
Description
The "Send Email" task in TIBCO Spotfire Automation Services has an option to attach files in the "Attached files" option, which can be used to attach image files like .png, .pdf, .jpg etc. This is often used in combination with the "Export Image" task where an image is saved to disk. After clicking "Add..." button in the "Attached files:" section, and selecting the file to attach to the email, you provide the "Title of attachment" where you give a proper name like "Example.png":
When executing the job locally or on server, the attachments received in the email gets a generic title like "ATT00005" or "noname" without an extension, instead of the expected "Example.png". The preview of the image in the email will display correctly but the image will not be openable. If the attached files are renamed with the proper file extension, they can be opened as expected.
Example of default behavior:
Resolution
This is caused by a defect in TIBCO Spotfire Automation Services. Currently, the only option is to use the following workaround:
- Rename the actual image file to have a .xlsx file extention. For example, rename the actual file on disk from "Example.png" to "Example.xlsx"
- In the "Attach Files" dialog, click "Add..." and enter the path to the file in the "Select file to attach to email" section. For example: "\\myserver\myshare\Example.xlsx"
- In the "Title of Attachment" enter the correct file extension. For example: "Example.png"
Now the attached image file will retain the correct file name and extension.
Issue/Introduction
In TIBCO Spotfire Automation Services Job Builder, there is an option to "Export Image" to file as a .png image type. Then in the "Send Email" step it is possible to attach the exported image using a title with .png file extension. In this situation the attachment in the received email is given an incorrect name and file extension like ATT00005.jpg.