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
+39-35Lines changed: 39 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
-
title: Errors When Enabling Salesforce with Server-to-Server Flow
3
-
description: Troubleshoot errors that might occur when enabling Salesforce with a server-to-server flow in Sales app.
2
+
title: Errors When Enabling Salesforce in Server-to-Server Flow
3
+
description: Troubleshoot errors that occur when you try to enable Salesforce in a server-to-server flow in the Sales app.
4
4
ms.date: 12/16/2025
5
5
ms.reviewer: marrabi, shjais, v-shaywood
6
6
ms.custom: sap:CRM Permissions and Configurations\CRM Settings
7
7
---
8
-
# Errors that occur when enabling Salesforce with server-to-server flow
8
+
# Errors occur when enabling Salesforce in a server-to-server flow
9
9
10
-
This article helps you troubleshoot errors that might occur when you try to enable Salesforce in a server-to-server flow in Sales app.
10
+
This article helps you troubleshoot errors that occur when you try to enable Salesforce in a server-to-server flow in the Sales app.
11
11
12
12
## Who is affected?
13
13
@@ -24,39 +24,37 @@ This article helps you troubleshoot errors that might occur when you try to enab
24
24
25
25
### Symptoms
26
26
27
-
When you try to enable Salesforce in a server-to-server flow, the following error message might occur:
27
+
When you try to enable Salesforce in a server-to-server flow, you receive the following error message:
28
28
29
29
> Couldn't assign permission set because the integration user is inactive in Salesforce.
30
30
31
31
### Cause
32
32
33
-
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 integration user is inactive in Salesforce. The permission set can't be assigned to an inactive user.
33
+
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's created automatically. A permission set is then assigned to the integration user. The error occurs if the integration user is inactive in Salesforce. The error occurs because a permission set can't be assigned to an inactive user.
34
34
35
35
### Resolution
36
36
37
37
To resolve this issue:
38
38
39
39
1. In Salesforce, search for the **Sales Integration User** user.
40
-
41
-
1. Confirm the user is active.
42
-
- If inactive, set the user status to active.
43
-
- If you can't activate the user, contact [Microsoft support](/microsoft-sales-copilot/get-support).
40
+
1. Check whether the user is active.
41
+
1. If the user is inactive, set the user status to active. If you can't activate the user, contact [Microsoft Support](/microsoft-sales-copilot/get-support).
44
42
45
43
## Couldn't create user because Salesforce integration license limit reached
46
44
47
45
### Symptoms
48
46
49
-
When you try to enable Salesforce in a server-to-server flow, the following error message might occur:
47
+
When you try to enable Salesforce in a server-to-server flow, you receive the following error message:
50
48
51
49
> Couldn't create user because Salesforce integration license limit reached.
52
50
53
51
### Cause
54
52
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.
53
+
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's created automatically. A Salesforce Integration user license is assigned to this integration user. The error occurs if the maximum number of Salesforce Integration user licenses is reached.
56
54
57
55
### Resolution
58
56
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.
57
+
To resolve this issue, check whether 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.
60
58
61
59
To check the number of integration user licenses available in your Salesforce organization:
62
60
@@ -66,79 +64,85 @@ To check the number of integration user licenses available in your Salesforce or
66
64
67
65
1. Under **User Licenses**, check the number of available **Salesforce Integration** licenses in 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.
68
66
69
-
## Unexpected errors when enabling Salesforce with a server-to-server flow
67
+
## Errors when enabling Salesforce in a server-to-server flow
70
68
71
69
### Symptoms
72
70
73
-
When you try to enable Salesforce in a server-to-server flow, you might receive one of the following error messages:
71
+
When you try to enable Salesforce in a server-to-server flow, you receive one of the following error messages:
72
+
73
+
> Couldn't get deployment status due to incorrect ID format.
74
+
75
+
> Couldn't find the connected app.
76
+
77
+
> Couldn't get user license ID is missing to create connection user.
78
+
79
+
> Couldn't fully remove connection data from Dataverse. Contact Sales support to request manual cleanup.
80
+
81
+
> Couldn't complete the connected app or permission set deployment to Salesforce. Try again.
82
+
83
+
> Couldn't complete the connected app deployment to Salesforce. Try again.
74
84
75
-
-> Couldn't get deployment status due to incorrect ID format.
76
-
-> Couldn't find the connected app.
77
-
-> Couldn't get user license ID is missing to create connection user.
78
-
-> Couldn't fully remove connection data from Dataverse. Contact Sales support to request manual cleanup.
79
-
-> Couldn't complete the connected app or permission set deployment to Salesforce. Try again.
80
-
-> Couldn't complete the connected app deployment to Salesforce. Try again.
81
-
-> Couldn't complete the permission set deployment to Salesforce. Try again.
85
+
> Couldn't complete the permission set deployment to Salesforce. Try again.
82
86
83
87
### Cause
84
88
85
-
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. In this process, some unexpected errors might occur.
89
+
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's created automatically. A permission set is then assigned to the integration user. During this process, errors occur.
86
90
87
91
### Resolution
88
92
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
+
To resolve this issue, retry the operation. If the problem continues, gather the error details, and contact [Microsoft Support](/microsoft-sales-copilot/get-support).
90
94
91
95
## No changes were made
92
96
93
97
### Symptoms
94
98
95
-
When you try to enable Salesforce in a server-to-server flow, the following error message might occur:
99
+
When you try to enable Salesforce in a server-to-server flow, you receive the following error message:
96
100
97
101
> No changes were made.
98
102
99
103
### Cause
100
104
101
-
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.
105
+
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's created automatically. A permission set is then assigned to the integration user. The error occurs if the same permission set is already assigned to the user.
102
106
103
107
### Resolution
104
108
105
-
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).
109
+
To resolve this problem, check for any manual changes to the connected app or profiles that have 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).
106
110
107
111
## The profile name is already in use. Pick a different name or rename the existing profile in Salesforce
108
112
109
113
### Symptoms
110
114
111
-
When you try to enable Salesforce in a server-to-server flow, the following error message might occur:
115
+
When you try to enable Salesforce in a server-to-server flow, you receive the following error message:
112
116
113
117
> The profile name is already in use. Pick a different name or rename the existing profile in Salesforce.
114
118
115
119
### Cause
116
120
117
-
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.
121
+
During the Salesforce server-to-server flow setup, the process creates a profile that's named **Sales Integration Profile** in the Salesforce organization. The error occurs if a profile that has the same name already exists. This situation prevents you from creating a new profile.
118
122
119
123
### Resolution
120
124
121
-
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).
125
+
To resolve this issue, check whether a profile that has the same name already exists in the Salesforce organization. If you created the profile before you enabled the server-to-server flow, rename the existing profile, and then try again. If you didn't create the profile, contact [Microsoft Support](/microsoft-sales-copilot/get-support).
122
126
123
127
## Required fields are missing
124
128
125
129
### Symptoms
126
130
127
-
When you try to enable Salesforce in a server-to-server flow, the following error message might occur:
131
+
When you try to enable Salesforce in a server-to-server flow, you receive the following error message:
128
132
129
133
> Required fields are missing: \<FieldName\>
130
134
131
135
### Cause
132
136
133
-
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 custom validation rules for user creation prevent the integration user from being automatically created in Salesforce.
137
+
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's created automatically. This error occurs if custom validation rules for user creation prevent the integration user from being automatically created in Salesforce.
134
138
135
139
### Resolution
136
140
137
141
To resolve this issue:
138
142
139
-
1. Temporarily disable the custom validation rules for user creation by going to **Setup** > **Object Manager** > **User** > **Validation Rules**.
140
-
1.Retry setting up the Salesforce connection in the [Sales admin settings](/dynamics365/sales/admin-settings-overview).
141
-
1. After the Salesforce connection is set up and the integration user created, re-enable your validation rules.
143
+
1. Temporarily disable the custom validation rules for user creation. To make this change, go to **Setup** > **Object Manager** > **User** > **Validation Rules**.
144
+
1.Try again to set up the Salesforce connection in the [Sales admin settings](/dynamics365/sales/admin-settings-overview).
145
+
1. After the Salesforce connection is set up and the integration user is created, re-enable your validation rules.
0 commit comments