Troubleshoot Salesforce Login Flow and OAuth Errors in Excel
Question details
Troubleshoot Salesforce connection errors in Excel when a Salesforce login flow is enabled.

- 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.
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.
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.
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.
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.
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.
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.

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.

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.




