Powershell: Project Server Set-SPProjectWebInstance & SQL Mirror

If you have to mirror SQL Project Server database, You will find 2 things among a lot:

  • Set-SPProjectWebInstance providing PrimaryDBMirrorServer and ReportingDBMirrorServer
  • AddFailoverServiceInstance
From my tests, the last one is not enough. Here start the pleasure of non ended cmdlet..Still works about them. The Get- can’t show properties add with the Set-…

So no way to find if it’s already done or good..Here is a script that
:

  • get all PWA URLthrough service application 
  • Remove the “/” on ending url (else the cmdlet Set- throw an error !)
  • Put back all existing settings and add the mirror server

 

$work=Get-SPServiceApplication | ?{$_.DisplayName -match"Project"} | Get-SPProjectWebInstance 
foreach ($item in $work) 
{ 
Write-Output"doing $($item.url)" 
$mirror=$item.PrimaryServer -replace ("sqlone","sqltwo") 
Set-SPProjectWebInstance -Url ($item.Url).ToString().TrimEnd('/') ` 
-AdminAccount $item.AdminAccount ` 
-PrimaryDbserver $item.PrimaryServer ` 
-ArchiveDbname $item.ArchiveDatabase ` 
-DraftDbname $item.DraftDatabase ` 
-PublishedDbname $item.PublishedDatabase ` 
-ReportingDbServer $item.ReportingServer ` 
-ReportingDbname $item.ReportingDatabase ` 
-PrimaryDBMirrorServer $mirror` 
-ReportingDBMirrorServer $mirror } 
Categories Uncategorized

Project Server 2010 SP1: OLAP generation fails

Context:

  • Project Server 2010 SP1
  • Fail to generate OLAP
Problem:
Cube generation doesn’t work anymore.
Cause:
Eventlog
Source:Project Server   Event ID:7704
Error PS : GeneralQueueJobFailed (26000)

A queue job has failed. This is a general error logged by the Project Server Queue everytime a job fails – for effective troubleshooting use this error message with other more specific error messages (if any), the Operations guide (which documents more details about queued jobs) and the trace log (which could provide more detailed context). More information about the failed job follows. GUID of the failed job: . Name of the computer that processed this job: MyServer (to debug further, you need to look at the trace log from this computer). Failed job type: CBSRequest. Failed sub-job type: CBSQueueMessage. Failed sub-job ID: 2. Stage where sub-job failed: (this is useful when one sub-job has more than one logical processing stages).

SharePoint logs (ULS):

ConvertWindowsClaimToWindowsPrincipalName() encountered error: Some or all identity references could not be translated.

 

Workaround:

Some of the users have been removed from AD but are still active in Project.
This is automatically handed if:

  • “user profile Synchronization” works,
  • Project group are synced with windows groups
  • sync has occured since deletion.
These errors only occurs when you are in claim mode and SP1.
To solve it, you must remove deleted users from project group.
Here is a powershell script to find out the guilties:
import-module"ActiveDirectory" 
$pwaUrl="http://mysite/pwa" 
$svcProjectUrl=$pwaUrl+"/_vti_bin/PSI/Resource.asmx?wsdl" 
$c=Get-Credential 
$svcProjectProxy=New-WebServiceProxy -uri $svcProjectUrl -credential $c 
$users=$svcProjectProxy.ReadUserList("Active").Resources 
foreach ($u in $users) 
{ 
$temp= [regex]::Replace($u.WRES_ACCOUNT, "^.*\", ""); 
if ((get-aduser $temp) -eq $false{ "missing ad user "+($u.RES_NAME) } } 
Categories Uncategorized

Try out MS Project Server for 15 days….For Free!

I am currently working on really interesting project !

This is about providing access to MS Project Server and client in the cloud…Only using https ! Many way to reach the solution:

  • You already have MS Project client : connect it to the server directly
  • You just want to have a look on the server side: use Internet Explorer
  • You want to try the whole without installing anything: connect to our portal to get a remote MS Project Client connected to the server
The access is opened within 5 minutes without any Paypal account, neither credit card.

https://www.pmside.net/try/ 

Categories Uncategorized
WordPress Appliance - Powered by TurnKey Linux