Salesforce connected App suddenly stopped working

Balazs Farkas 25 Reputation points
2025-10-06T11:18:27.1866667+00:00

My salesforce linked service in Azure Synapse stopped working on 4th october around 03:00. Here is the error response:

Unable to establish connection to the Salesforce environment using provided client id and client secret, please verify the details. Error message: {"error":"invalid_grant","error_description":"no valid scopes defined"}

There were no changes done to the Connected APP on our side, any reason why I am not able to access it now?

Azure Synapse Analytics
Azure Synapse Analytics

An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.


Answer accepted by question author
Vijaya Kumar Adepu 95 Reputation points
2025-10-07T10:54:56.32+00:00

This issue is related to Salesforce’s recent security changes for Connected Apps (rolled out in late September / early October 2025).

The “no valid scopes defined” error means the Connected App does not include the OAuth scopes that your Azure Synapse linked service is requesting.

To fix it:

In Salesforce Setup → App Manager, open your Connected App.

Click Edit.

Under Selected OAuth Scopes, add the following (if not already selected):

✅ Access and manage your data (api)

✅ Perform requests on your behalf at any time (refresh_token, offline_access)

Click Save, wait 2–3 minutes, then re-test your Synapse connection.

If your Connected App uses Client Credentials Flow, make sure that:

“Enable Client Credentials Flow” is checked under Edit Policies, and

A Run-As user is assigned.

After saving, re-run the OAuth request or re-test the Synapse linked service connection.

Was this answer helpful?

3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.