> For the complete documentation index, see [llms.txt](https://docs.slapfive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.slapfive.com/integrations/salesforce/slapfive-advanced-app/troubleshooting/connection-failed-action-failed-due-to-server-error.md).

# Connection Failed - Action failed due to server error

### The most likely cause

When Workato tries to connect to Salesforce but only shows **“Connection Failed – Action failed due to server error,”** 90% of the time it means Salesforce is blocking Workato from signing in. Here’s what you need to do.

Go to **Setup → Connected Apps → Connected Apps OAuth Usage.**

You’ll see a list of Connected App that users have recently authenticated with. Look for one of the following:

* **Workato**
* **Workato connector**
* **Workato OAuth Connector**

Salesforce does not literally put a red “Blocked” label here. Instead, a Connected App becomes effectively blocked when the app is restricted to “Admin approved users only”. This blocks the Integration User unless they're explicitly granted access.

#### **How to unblock:**

1. In the **Workato connector** row, click the **Manage App Policies** link.
2. Scroll to the **OAuth Policies** section and look at the **Permitted Users** field. If it says:

**“Admin approved users are pre-authorized”**

…then Salesforce is blocking Workato for all users who haven’t been assigned. To unblock it for your Integration User, there are two options:

#### Option 1 — Assign via Permission Set

1. Go to **Setup → Permission Sets**
2. Open the Permission Set used for API integrations
3. Click **Assigned Connected Apps**
4. Add **Workato connector**
5. Assign the Permission Set to the Integration User

#### Option 2 — Assign via Profile

1. Go to **Setup → Profiles**
2. Open the Integration User’s profile
3. Scroll to **Connected App Access**
4. Check the box next to **Workato connector**
5. Click Save

Once assigned, Workato is unblocked for that user.

If this doesn't eliminate the error, continue below.

***

### **Other possible causes**

The other 10% of the time that error appears, it is something more obscure. Here are the things to check, in order of likelihood.

#### **1. Confirm the Workato Connected App is installed**

Go to **Setup → Connected Apps → Manage Connected Apps**

Check that one of these appears in the list:

* **Workato connector**
* **Workato**
* **Workato OAuth Connector**

If the Workato app does not appear, the connection will fail.

**Fix:**\
You’ll need to install the Workato managed package so the Connected App becomes visible and assignable.

#### **2. Verify that the Integration User has the right permissions**

Salesforce only issues API tokens when the user has the necessary permissions.

Confirm the Integration User has:

* **API Enabled**
* **Access to the objects and fields** [shown here](/integrations/salesforce/synchronize-data-between-salesforce-and-slapfive/determine-the-salesforce-integration-user.md).

Missing object access or Record Type assignments commonly trigger this error.

#### **3. Check if your org is blocking non-installed Connected Apps**

Some Salesforce orgs enforce a security policy that blocks Connected Apps that are not explicitly installed in the org.

If this setting is active:

* Workato’s standard Connected App will be blocked
* You will see connection failures with no detailed error message

**Fix:**\
Install the **Workato Installed Package**, which adds an org-local version of the Workato Connected App that Salesforce will trust.

#### **4. Make sure Workato is connecting to the correct domain**

If your Salesforce org recently enabled **My Domain** or adopted **Enhanced Domains**, older connection settings no longer work.

**Fix:**\
Reconnect the Workato connection using your My Domain URL, for example:\
`https://yourdomain.my.salesforce.com`

***

#### **5. Check for IP restrictions or token policies**

If your org uses strict login or token policies, Salesforce may block Workato’s login attempt.

Please check:

* **Setup → Login Access Policies**
* **Setup → Network Access** (Trusted IP ranges)
* **Connected App Session Policies** for the Workato app

If Workato’s IP ranges are not trusted or token policies are too strict, OAuth login will fail.

#### **6. Refresh the connection in Workato**

Sometimes the simplest fix works:

1. Go to the Workato connection
2. Click **Reconnect**
3. Re-enter the credentials for the Integration User
4. Make sure your browser does not block the Salesforce login popup

This forces Salesforce to issue a fresh OAuth token.

#### **7. If the issue persists: capture the Salesforce Login History**

In Salesforce:

**Setup → Users → Integration User → Login History**

Look at the most recent failed login entry. The error code there (for example, *invalid\_grant*, *IP restricted*, *user hasn’t approved this app*) will tell us exactly what Salesforce is rejecting.

Send us that line and we can pinpoint the fix instantly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.slapfive.com/integrations/salesforce/slapfive-advanced-app/troubleshooting/connection-failed-action-failed-due-to-server-error.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
