"DOVICO Online Timesheet Support was great! One phone call, one person, maybe 10 minutes total. Great experience."

Alan G.,
Schroder Holdings plc

Search:     Advanced search
Browse by category:

DV1157 - Duplicated employees after Microsoft Project/Project Server link

Article ID: 129
Last updated: 03 Sep, 2010
Views: 956
Posted: 01 Apr, 2008
by Chase C.
Updated: 03 Sep, 2010
by Belliveau T.

The information in this article applies to:

  • DOVICO Timesheet versions 9.0  and above 

Symptoms:

After synchronizing with a Microsoft Project Resource Pool file (.mpp) or Microsoft Project Server Resource Pool, employees were duplicated in DOVICO Timesheet.

Cause:

This has occurred because the employees were entered into DOVICO Timesheet before synchronizing with the Microsoft Project/Project Server Resource Pool file. When you synchronize with the Microsoft Project /Project Server Resource pool, DOVICO Timesheet imports the employees from the Microsoft Project Resource Pool regardless of what employees currently exist in DOVICO Timesheet and therefore duplicate employees are created.

Resolution:

The resolution involves retrieving the Unique employee IDs from Microsoft Project/Project Server and using an SQL query to update the Employee table in DOVICO Timesheet. 

Important:

The steps involved in retrieving the unique IDs vary depending if using Microsoft Project or Micrsoft Project Server. Please follow the steps carefully.

STEP 1
  1. Backup your database as a precaution.
  2. In DOVICO Timesheet, delete all duplicated employees created when using the Microsoft Project Link - employees having ‘temp’ User IDs.
If using Microsoft Project follow Step 2
If using Microsoft Project Server go directly to Step 3
 
 
STEP 2: Retrieving Unique IDs
  1. Open your Resource Pool file in Microsoft Project.
  2. Right click on any column and select Insert Column.
  3. From the ‘Field Name’ drop-down list, select Unique ID.
  4. Make note of the Name and Unique ID associated with each employee. These will be required in following steps.
  5. Go directly to Step 6.
 
STEP 3: Creating a new temporary database
  1. Log into the Timesheet Database Manager (Start, All Programs, DOVICO Timesheet, Timesheet Database Manager).
  2. Select File, New Database from the menu.
  3. Enter the name of the new database in the Database Name field. The new database will be created in the directory where DOVICO Timesheet is installed.
    If the SQL Server is not installed locally, then you will need to select the Create database on remote SQL Server option. Once this option has been selected, you will need to specify the SQL Server Data Path. This is the directory path on the SQL Server where the database files (*.mdf and *.ldf) will be stored. This has to be a local path on the remote SQL server. IMPORTANT: This cannot be a UNC or Mapped Network Drive path.
  4. Click OK when done.
 
STEP 4: Synchronize Project Server resources to the new database.
  1. Log into the new DOVICO Timesheet database created in Step 3. Note you will be prompted to create an Administrator account for the new database.
  2. Navigate to Integration, Microsoft Project and choose the Project Server Link tab.
  3. Enter the connection information required to connect to Microsoft Project Server.
  4. Once connected, select Get Resources.
 
STEP 5: Retrieving Unique IDs
  1. Launch SQL 2005 Management Studio or SQL Server Management Studio Express.
  2. Navigate to the database created in Step 3 and expand it until you see the tables.
  3. Right click on the Employee table and select Open Table.
  4. For each employee make note of the name and the unique ID located in the Integrate column. The Integrate column format displayed will be either (<INT><MSP MSPID="12" /></INT>) or (<INT><MSP MSPID="f4572c86-7452-4d29-9d28-1a8a49ad5f89" /></INT>) depending on your version of Microsoft Project Server.

Note: Once the final steps (6a – e) have been successfully concluded, the new database created in Step 3 can be deleted.

 

 

 
STEP 6: Updating Unique IDs
  1. Launch SQL 2005 Management Studio or SQL Server Management Studio Express.
  2. Navigate to your live database, locate and expand until you see Tables.
  3. Right click on the Employee table and select Open Table.
  4. Select the SQL button Show SQL Pane.
  5. In the SQL Pane, run one of the following queries. The query must be run once for each employee linked. You can choose to update the employee table using employee Name or ID.

WARNING: If you are using the Active Directory link then you must use Query Option #3.

 

 

Query Option #1. This query requires the unique IDs retrieved from Microsoft Project/Project Server and the Employee first and last name.
UPDATE EMPLOYEE SET [INTEGRATE]='<INT><MSP MSPID="unique id" /></INT>' WHERE [LAST]='employee last name' AND [FIRST]='employee first name'
 
Query Option #2. This query requires the unique IDs from Microsoft Project/Project Server and the employee ID from the Employee table.
UPDATE EMPLOYEE SET [INTEGRATE]='<INT><MSP MSPID="unique id" /></INT>' WHERE [ID] = employee id
 
Query Option #3. This query appends the Microsoft Project unique ID to the Active Directory ID in the Employee table's Integrate column.
UPDATE EMPLOYEE SET INTEGRATE.modify('insert <MSP MSPID="unique id" /> as last into (/INT)[1]') WHERE ID = employee id

Note: The queries in this example are only to be used in the specified cases mentioned above. If your scenario differs from this article please contact Dovico Technical Support.

Also listed in
folder DOVICO Timesheet -> Version 9
folder DOVICO Timesheet -> Version 8
folder DOVICO Timesheet -> Version 10

Prev   Next
DV1019 - Installing on a different server than SQL Server     DV1100 - How to setup Flextime

Others in this category
document DV1147 - Not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
document DV1045 - Creating an Active Link with Microsoft Excel
document DV1021 - Incorrect version of Crystal Reports
document DV1145 - Users do not receive emails through the Job Scheduler or Instant Notifications
document DV1173 - Can't reject submitted time or expenses
» More articles