You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/sales-copilot/crm-permissions-and-configurations/errors-enabling-salesforce-server-to-server-flow.md
+15-18Lines changed: 15 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,7 @@
2
2
title: Errors When Enabling Salesforce with Server-to-Server Flow
3
3
description: Troubleshoot errors that might occur when enabling Salesforce with a server-to-server flow in Sales app.
4
4
ms.date: 12/16/2025
5
-
author: sbmjais
6
-
ms.author: shjais
7
-
manager: shujoshi
8
-
ms.reviewer: marrabi
5
+
ms.reviewer: marrabi, shjais, v-shaywood
9
6
ms.custom: sap:CRM Permissions and Configurations\CRM Settings
10
7
---
11
8
# Errors that occur when enabling Salesforce with server-to-server flow
@@ -41,7 +38,7 @@ To resolve this issue:
41
38
42
39
1. In Salesforce, search for the **Sales Integration User** user.
43
40
44
-
2. Confirm the user is active.
41
+
1. Confirm the user is active.
45
42
- If inactive, set the user status to active.
46
43
- If you can't activate the user, contact [Microsoft support](/microsoft-sales-copilot/get-support).
47
44
@@ -55,19 +52,19 @@ When you try to enable Salesforce with a server-to-server flow, the following er
55
52
56
53
### Cause
57
54
58
-
During the Salesforce server-to-server flow setup, a connected app is deployed to the Salesforce organization. The connected app is associated with an integration user that is created automatically. A Salesforce Integration user license is assigned to this integration user. The error occurs when the maximum number of Salesforce Integration user licenses has already been reached.
55
+
During the Salesforce server-to-server flow setup, a connected app is deployed to the Salesforce organization. The connected app is associated with an integration user that is created automatically. A Salesforce Integration user license is assigned to this integration user. The error occurs when the maximum number of Salesforce Integration user licenses is reached.
59
56
60
57
### Resolution
61
58
62
-
To resolve this issue, check if the maximum number of Salesforce Integration user licenses has been reached. If so, you need to reassign existing integration users to other licenses or purchase more licenses.
59
+
To resolve this issue, check if you reached the maximum number of Salesforce Integration user licenses. If you reached the maximum, reassign existing integration users to other licenses or purchase more licenses.
63
60
64
61
To check the number of integration user licenses available in your Salesforce organization:
65
62
66
63
1. Sign in to Salesforce as an administrator.
67
64
68
-
2. Go to **Setup** > **Company Settings** > **Company Information**.
65
+
1. Go to **Setup** > **Company Settings** > **Company Information**.
69
66
70
-
3. Under **User Licenses**, check the number of available **Salesforce Integration** licenses under the **Remaining Licenses** column. If the number is **0**, you need to deactivate existing integration users or change their licenses to other types. You can also purchase more licenses.
67
+
1. Under **User Licenses**, check the number of available **Salesforce Integration** licenses under the **Remaining Licenses** column. If the number is **0**, deactivate existing integration users or change their licenses to other types. You can also purchase more licenses.
71
68
72
69
## Unexpected errors when enabling Salesforce with a server-to-server flow
73
70
@@ -89,7 +86,7 @@ During the Salesforce server-to-server flow setup, a connected app is deployed t
89
86
90
87
### Resolution
91
88
92
-
To resolve this issue, retry the operation. If the issue persists, gather the error details and contact [Microsoft support](/microsoft-sales-copilot/get-support).
89
+
To resolve this issue, retry the operation. If the problem continues, gather the error details and contact [Microsoft support](/microsoft-sales-copilot/get-support).
93
90
94
91
> [!NOTE]
95
92
> You might encounter an error message that's not listed above. This issue can happen for several reasons. For example, your Salesforce organization might have a validation rule that requires specific values for user records. If this prevents the integration user from being created, try temporarily disabling the validation rule. Once the integration user is created, you can re-enable the rule.
@@ -104,11 +101,11 @@ When you try to enable Salesforce with a server-to-server flow, the following er
104
101
105
102
### Cause
106
103
107
-
During the Salesforce server-to-server flow setup, a connected app is deployed to the Salesforce organization. The connected app is associated with an integration user that is created automatically. A permission set is then assigned to the integration user. The error occurs when the same permission set has already been assigned to the user.
104
+
During the Salesforce server-to-server flow setup, a connected app is deployed to the Salesforce organization. The connected app is associated with an integration user that is created automatically. A permission set is then assigned to the integration user. The error occurs when the same permission set is already assigned to the user.
108
105
109
106
### Resolution
110
107
111
-
To resolve this issue, check for any manual changes to the connected app or profiles with the `CopilotForSales` prefix. If the changes were unintentional, revert them. Otherwise, retry the operation. If the issue continues, contact [Microsoft support](/microsoft-sales-copilot/get-support).
108
+
To resolve this problem, check for any manual changes to the connected app or profiles with the `CopilotForSales` prefix. If you find unintentional changes, revert them. Otherwise, retry the operation. If the problem continues, contact [Microsoft support](/microsoft-sales-copilot/get-support).
112
109
113
110
## The profile name is already in use. Pick a different name or rename the existing profile in Salesforce
114
111
@@ -120,11 +117,11 @@ When you try to enable Salesforce with a server-to-server flow, the following er
120
117
121
118
### Cause
122
119
123
-
During the Salesforce server-to-server flow setup, a profile named **Sales Integration Profile**is created in the Salesforce organization. The error occurs when a profile with the same name already exists, preventing the creation process.
120
+
During the Salesforce server-to-server flow setup, the process creates a profile named **Sales Integration Profile** in the Salesforce organization. The error occurs when a profile with the same name already exists, which prevents the creation process.
124
121
125
122
### Resolution
126
123
127
-
To resolve this issue, check if a profile with the same name already exists in the Salesforce organization. If it was created before enabling the server-to-server flow, rename the existing profile and try again. If the profile wasn't created previously, contact [Microsoft support](/microsoft-sales-copilot/get-support).
124
+
To resolve this issue, check if a profile with the same name already exists in the Salesforce organization. If you created the profile before enabling the server-to-server flow, rename the existing profile and try again. If you didn't create the profile, contact [Microsoft support](/microsoft-sales-copilot/get-support).
128
125
129
126
## Required fields are missing
130
127
@@ -136,17 +133,17 @@ When you try to enable Salesforce with a server-to-server flow, the following er
136
133
137
134
### Cause
138
135
139
-
During the Salesforce server-to-server flow setup, a connected app is deployed to the Salesforce organization. The connected app is associated with an integration user that is created automatically. The error occurs when custom validation rules are created for creation of a user in Salesforce.
136
+
During the Salesforce server-to-server flow setup, a connected app is deployed to the Salesforce organization. The connected app is associated with an integration user that is created automatically. This error occurs when there are custom validation rules for user creation that prevent the integration user from being automatically created in Salesforce.
140
137
141
138
### Resolution
142
139
143
140
To resolve this issue:
144
141
145
-
1. Temporarily disable the custom validation rules for user creation from Setup > Object Manager > User > Validation Rules.
146
-
1. Create the integration user manually and provide the Salesforce user ID to [Microsoft support](/microsoft-sales-copilot/get-support)for allow listing it in the backend. Microsoft then creates the user bypassing the validation rules.
142
+
1. Temporarily disable the custom validation rules for user creation by going to **Setup** > **Object Manager** > **User** > **Validation Rules**.
143
+
1. Create the integration user manually and provide the Salesforce user ID to [Microsoft support](/microsoft-sales-copilot/get-support)so the user can be added to the backend allow list. Microsoft then creates the user, bypassing the validation rules.
147
144
148
145
## More information
149
146
150
-
If your issue is still unresolved, go to the [Sales in Microsoft 365 Copilot - Microsoft Community Hub](https://techcommunity.microsoft.com/t5/viva-sales/bd-p/VivaSales) to engage with our experts.
147
+
If your issue isn't resolved, go to the [Sales in Microsoft 365 Copilot - Microsoft Community Hub](https://techcommunity.microsoft.com/t5/viva-sales/bd-p/VivaSales) to engage with experts.
0 commit comments