Excel Error Codes

Troubleshoot Salesforce Login Flow and OAuth Errors in Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 22, 2026 868 views

Question details

Troubleshoot Salesforce connection errors in Excel when a Salesforce login flow is enabled.

Troubleshoot Salesforce Login Flow and OAuth Errors in Excel
Product
Microsoft Excel and Salesforce add-in
Device & OS
not provided
Scenario
A user connects Excel to Salesforce using an account subject to a Salesforce login flow.
Observed behavior
Classic login may show an invalid-token error on the first attempt, while Lightning login with Lightning Runtime may return OAUTH_APPROVAL_ERROR_GENERIC.
Before you start

Make sure you can reproduce the sign-in attempt and identify the Salesforce account and login flow involved. Ask a Salesforce administrator for the relevant configuration details if you cannot access Setup.

Solution 1Recommended

Collect Excel and Salesforce details for support

Use this approach to give Microsoft or Salesforce support the information needed to investigate the environment-specific login failure.

1
Record the Excel version

In Excel, open File > Account > About Excel on Windows or Excel > About Excel on a Mac. Record the version and build, and take a screenshot of the version information.

2
Document the Salesforce configuration

In Salesforce Setup, search for Login Flows and record the flow assigned to the affected user or profile. Note whether the attempt uses Classic or Lightning login and whether Lightning Runtime is enabled.

3
Reproduce the error

Open the Salesforce add-in in Excel and attempt to sign in. Record the time, the steps taken, and the exact error message, including whether it appeared on the first attempt.

4
Collect and share the trace

Ask Microsoft or Salesforce support for the trace-collection procedure for your add-in and environment. Send the trace, version details, configuration, and error screenshot through the support agent's approved private channel.

Collect Excel and Salesforce details for support
Protect sign-in information: Trace logs and screenshots may contain sensitive account information. Do not post access tokens, passwords, or logs publicly; follow the support provider's instructions for sharing them securely.
Free Microsoft Office alternative

Edit Excel Workbooks with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility, making it easy to move existing workbooks. It does not fix Excel's Salesforce login or OAuth errors.

Open and edit Microsoft Excel XLSX and XLS workbooksContinue working with spreadsheet data while investigating the Excel connectionUse a familiar spreadsheet interface for an easier transitionWork with a free, lightweight Office alternative
QA img-9

Frequently Asked Questions

Where can I find my Excel version and build?

In Excel for Windows, select File > Account > About Excel. On a Mac, select Excel > About Excel. Record the version and build and capture a screenshot for support.

What does OAUTH_APPROVAL_ERROR_GENERIC mean in this scenario?

It indicates that the Salesforce OAuth approval process failed, but the message alone does not identify the cause. Reproduce the login and provide the add-in trace and Salesforce configuration to support.

How do I find the Salesforce login flow affecting the user?

In Salesforce Setup, search for Login Flows and check the flow assigned to the affected user or profile. If you do not have access to Setup, ask a Salesforce administrator to check it.

How can I get the Salesforce add-in trace log?

Contact Microsoft or Salesforce support for the collection steps that apply to your Excel add-in and environment. Share the resulting log through their approved private support channel, not in a public post.