Loading

Outlook integration: “An unexpected error occurred” in the Outlook Panel when trying to send an email

Data pubblicazione: Sep 22, 2026
Descrizione

The Salesforce Outlook Integration lets users create email messages and Tasks directly from Outlook. When Outlook Integration shows the error "An unexpected error occurred" while sending an email, it usually means something in Salesforce is blocking the creation or deletion of the related Task or Email Message record.

Common causes include Flows, Apex triggers, validation rules, or custom code that conflict with Task or Email Message creation. This article explains how to gather diagnostic information and identify what is interfering with Outlook Integration.

Risoluzione

This article explains how to troubleshoot the "An unexpected error occurred" message in Salesforce Outlook Integration when a user tries to send an email, by reviewing browser console logs and Salesforce debug logs to find what is blocking the underlying Task or Email Message record.

Why This Happens

Outlook Integration needs to be able to create Email Message and Task records in Salesforce. If a Flow, Apex trigger, validation rule, or custom code fires when that record is created or deleted and throws an error, Outlook Integration surfaces it as "An unexpected error occurred." For example, a validation rule that requires a specific Task field to be populated can block the Task Outlook Integration tries to create automatically.

Get Console Logs from the Outlook Integration Pane (Windows)

  1. Right-click on the Outlook Integration add-in or side panel and select Inspect.
  2. In the DevTools window, click the Console tab.
  3. Reproduce the error and check for error messages and referenced URLs in the console.
  4. Also check the Network tab in DevTools for failed requests.

Get Console Logs on Mac OS

For steps to capture console logs from Outlook Integration on Mac OS, see Get Console Logs for Outlook Integration on Mac OS.

Check Salesforce Automation

While reproducing the error, review Salesforce Debug Logs and check whether any Flows, Apex triggers, validation rules, or custom code run against the Task or EmailMessage object at that time. Temporarily deactivating a suspect automation and retesting can help confirm the root cause.

Numero articolo Knowledge

004518958

 
Caricamento
Salesforce Help | Article