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.