Troubleshooting ProjectWise User Synchronization Issues TN


 Product(s):ProjectWise User Synchronization Service
 Version(s):All
 Environment:N/A
 Area:N/A
 Subarea:N/A

Overview

The ProjectWise User Synchronization Service (USS) is used to synchronize ProjectWise user and group accounts with Windows user and group accounts. This allows users to log into ProjectWise using the same username and password that they use to log in to Windows. 

Troubleshooting

On the USS server, go to services and find ProjectWise User Synchronization Service.  If its not running, then start it, if it is running, restart it.  Note that the 'logon user' must be a domain user and be able to enumerate users on each domain. Make sure this user has 'log on as a service' rights on the computer running the USS. 

If the problem is still occurring after restarting the service, open ProjectWise Administrator.

  1. In your data source, go to the Windows Security System node and right click User Synchronization Service, and select Properties. When the dialog opens you should see the name of the Computer that the User Synchronization Service is installed.


  2. Highlight and delete all entries (do not highlight and retype). Make sure you have the correct information before deleting the current entries.
    1. Retype the computer name where USS resides.  In some cases we have seen browsing to the Server may not work and you can’t find the Server name.  If this is the case, type in the name of the computer that has the USS running.  (Example:  \\myserver)
    2. Retype the ProjectWise username and password. Recommended to be a logical account, so you don't have to worry about password expiration. It is required to be in the Administrator group, and have the ability to create users.

If none of the above resolves the problem check the logs by doing the following:

  1. Right click on User Synchronization Service and select "synchronize accounts". 
  2. Open this file in notepad and scroll to the very bottom C:\Users\Public\Bentley\Logs\usersync.log 
  3. Check the latest entries in the log that should point out the cause of the problem

What if only one user has a problem or several random users are not being synchronized?

In the usersync.log (description just above) do a search for “Unique constraint violated” You will likely find a line that looks similar to this:


User group issue
2014-02-19 15:22:03,761 ERROR [0x00000000] pwise.usersync - Failed to create user group 'MyDomain\MyGroup[MyDatasource://MyDomain.com/DC=us/OU=company/OU=MySection/CN=MyGroup] [S-1-2-12-123456-123456789-123456789-12345]' in the datasource 'PROJECTWISE.mydomain.com:PWdatasource'. Unique constraint violated

User issue
2014-02-19 15:22:04,856 ERROR [0x00000000] pwise.usersync - Failed to create user 'MyDomain\MyUser [MyDatasource://MyDomain.com/DC=us/OU=company/OU=MySection/OU=MyGroup] /CN=MyUser] [AD:S-1-2-12-123456-123456789-123456789-12345]' in the datasource 'PROJECTWISE.mydomain.com:PWdatasource'. Unique constraint violated

Typically there is a lost SID or the user was created in ProjectWise with a SID that no longer matches the SID in Active Directory.

  1. In ProjectWise Administrator, go to the User Account Properties. 
  2. On General (tab) > Security, switch the account type from Windows - synchronized to Windows 
  3. Run user synch.
  4. Go back to the user account and switch back to Windows - synchronized.
  5. Run the user synch again.

If you have several users or groups you can highlight them all, go to properties and make the changes as directed above.

 

 Switching the user to Windows and then back to Windows - synchronized should flush and recreate the user SID.

 Original Author:Bentley Technical Support Group