U0050014 Cannot open attachment file 'XXXXXXXXXXxxxxxxxx', error code: '2', error description: 'The
search cancel

U0050014 Cannot open attachment file 'XXXXXXXXXXxxxxxxxx', error code: '2', error description: 'The

book

Article ID: 89196

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

U0050014 Cannot open attachment file 'XXXXXXXXXXxxxxxxxx', error code: '2', error description: 'The

Environment

Release: AOATAM99000-9.0-Automic-One Automation Tools-Application Manager
Component:

Resolution

Detailed Description and Symptoms

Using a SEND_MAIL script command to send an email attachment intermittently/randomly fails. The message returned may be similar to one of the folowing:

U0050014 Cannot open attachment file 'C:\UC4\Attachments\Daily_Report.html', error code: '2', error description: 'The system cannot find the file specified.'.
 

or

U0050014 Cannot open attachment file 'C:\UC4\Attachments\Daily_Report.html', error code: '3', error description: 'The system cannot find the path specified.'


Investigation

Is a multi-server configuration being used?  If yes, try resolution below.?


Solution

If "C:\UC4\Attachments" is not a shared drive, and there are multiple host making up the Automation Engine with separate hard drives on each server, this configuration/setup will not work since only one Windows host has access to this folder. 

The "send_mail" function can be done by every WP of the Automation Engine (except DWPs), so if the "send_mail" is done by a WP on a Windows host  where no "C:\UC4\Attachments" folder is actually available - the "send_mail" will fail with one of the error messages above.

To resolve this problem, do one of the following:

1) Create a shared drive for all the Windows Servers in the Automation Engine to access for SEND_MAIL attachments.

2) Change your jobs to write out to a shared folder for all the Windows Servers in the Automation Engine to access for SEND_MAIL attachments.?