Unable to send APM objects through email


 Product(s):APM Implementation and Performance Management
 Version(s):N/A
 Environment:N/A
 Area:N/A
 Subarea:N/A


Problem:

Sometimes Users may notice that they are unable to send any APM objects through email, even they can’t see the preview.

The log file records similar errors as shown below;

Error  Ivara.Mail.OutlookMailPlugin.OutlookMessage [16] OutlookMessage::AddAttachment() - exception thrown EXCEPTION OCCURRED:COMException Cannot create file: PurchaseOrder.pdf. Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder.   

at Microsoft.Office.Interop.Outlook.Attachments.Add(Object Source, Object Type, Object Position, Object DisplayName)

at Ivara.Mail.OutlookMailPlugin.OutlookMessage.AddAttachment(String filename, String description)

Error  Ivara.Mail.OutlookMailPlugin.OutlookMessage [16] OutlookMessage::Send() - exception thrown EXCEPTION OCCURRED:COMException Array index out of bounds.   

at Microsoft.Office.Interop.Outlook._MailItem.Display(Object Modal)

at Ivara.Mail.OutlookMailPlugin.OutlookMessage.Send(Boolean bAutoSend)

Error  Ivara.Client.Callbacks.ClientEmail [16] ClientEmail::Execute() - Unable to send email

Solution:

The error mentioned above point towards the permission issue of temporary folder used by outlook. Sometime, this issue also appears when that temporary folder is full.

Here are possible resolutions;

• Restart User’s machine.

• Check the permissions for Outlook Secure Temp folder from User’s machine. To do this, you will have to locate the Outlook Secure Temp folder from User’s machine. Here are the steps to find this folder;
   1. Open Registry Editor
   2. For Outlook 2016, please find the below registry location;
       HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security
   3. You will get the location of the Outlook Secure Temp folder as shown in the below screenshot;
       
   4. Now, go to this location from file explorer and check the folder permissions.

• Check if the Outlook Secure Temp folder is full. If so, please try deleting 1 or 2 files from that folder and check if the issue gets resolved.

Please submit the service request to Bentley APM Support, if the above information doesn’t resolve the issue.

See Also: