Symptoms
You receive the following error message when you try to modify a Microsoft Business Solutions Business Portal user record:
displayError: --- soap:Server System.Web.Services.Protocols.SoapException: Server was unable to process request.
Cause
This problem occurs because the Business Portal user record is associated with an invalid back office user record. The Business Portal user record becomes invalid when the following records are removed from the back office with which the Business Portal user record is associated:
-
Employee ID / Company
-
Salesperson ID / Company
-
Manager / Company
-
Vendor ID / Company
-
Customer ID / Company
Resolution
To resolve this problem, remove the MbfRoleUser records that contain the invalid user records from the MbfRoleUser table. To do this, follow these steps.
NoteĀ In Great Plains, the MbfRoleUser table is located in the Dynamics database. In Dynamics SL, the MbfRoleUser table is located in the system database.-
Click Start, point to Programs, point to Microsoft SQL Server, and then click Query Analyzer.
-
Find the ID of the Business Portal user. To do this, paste the following statement in Query Analyzer, and then click the green arrow button.
select ID, Name from MbfUser where Name = 'UserName'
Note Replace XXX with the actual name of the user in Business Portal. The statement returns output that is similar to the following:
ID = 22723F13-9A89-4401-AF75-0988D09787BD
Name = Pilar Ackerman -
Find the advanced roles to which the Business Portal user is assigned. To do this, run the following statement in Query Analyzer.
select UserID, Constituent from MbfRoleUser where UserID = '22723F13-9A89-4401-AF75-0988D09787BD'
The statement returns the following:
UserID = 22723F13-9A89-4401-AF75-0988D09787BD
Constituent <entityKey><Microsoft.Dynamics.Common.Company.Company ID="-1" /><Microsoft.Dynamics.Hrm.Entity.Employee ID="BARR0001" /></entityKey>Note The Constituent row lists the invalid user records. -
Remove the invalid user record. To do this, make a backup of the database, and then run the following statement in Query Analyzer.
delete MbfRoleUser where Constituent like '%BARR0001%'
Note Replace BARR0001 with the Constituent value returned in step 4.
More Information
Steps to reproduce the problem
-
Start Business Portal.
-
Click Site Settings, point to Users and Permissions, and then click Manage Business Portal Users.
-
Click a user, and then click Modify in the Advanced Roles area.
-
Assign the user to the Employee/Company advanced role and assign a specific employee. To do this, follow these steps:
-
Click the Role/Company list.
-
Click Employee/Your Company.
-
Click an Employee Id in the Alias ID list.
-
Click OK.
-
-
Start Great Plains.
-
Click Tools, point to Setup, point to System, and then click Company.
-
Click the lookup glass, click the company that you specified in step 4, click OK, and then click Delete.
-
In Business Portal, click Site Settings, point to Users and Permissions, and then click Manage Business Portal Users.
-
Click the user whom you clicked in step 3.