This article first came about following an issue spotted by one of our MVP’s, Hans Hoet of Ordina, Belgium. There are a couple of issues that are worth being aware of relating to the automatic provisioning of project sites when you create a new plan from the Project Center in Project Web App (PWA). The first issue relates to the use of Alternate Access Mappings (AAM) in SharePoint Central Administration and the second relates to the use of different looks to your project site templates. Hopefully a fix for this first issue will get into the April 2013 CU for Project Server 2013.
First, the issue with AAM. If you have your alternate access mapping configured so that your Default zone uses just your machine name – for example https://project2013, and you then add a mapping for the Internet zone as , and you have your PWA site directly under this Url, then you will see this problem. It only manifests when sites are created automatically when creating a new plan in PWA, so the steps would be to: go to Project Center, create a new pan by selecting New, Enterprise Project (for example), give the new plan a name and then click Save. All appears to be OK and the Schedule web part loads – but if you look at the queue you will see a job, Project Site Update, with a state of Failed But Not Blocking Correlation. The error you will see if clicking on the link will start something like:
General
CreateWssSiteContent: Creating project site failed! Project Uid=bcf03024-4d5b-e211-93f8-00155d74660a, site URL=https://Project2013.contoso.com/PWA/TestProject123, site name=TestProject123. System.Runtime.InteropServices.COMException (0x81070907): <nativehr>0x81070907</nativehr><nativestack></nativestack>The folder that would hold URL _/PWA/oso.com/PWA/TestProject123_ does not exist on the server. at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateWeb(
The clue to the problem is the strange URL that it quotes – _/PWA/oso.com/PWA/TestProject123_, and it appears that deep in our code we are doing some substring manipulations and in this specific scenario the two Urls and the shorter https://Project2013/PWA/Project2013 are getting crossed and that is where the …oso.com, the end of Contoso.com, is coming from.
There are a couple of easy workarounds, and it could even be considered that these are probably the better way to configure things anyway. The first would be to use the fully qualified domain name (FQDN) as the Default zone Url, and then add an Internal Url to the same Default zone for the server name – https://Project2013/. Another option would be to set the FQDN as the Default zone Url and then add the shorter version as the Intranet zone or Custom zone. Either of these would mean that the strings wouldn’t get confused and the site would get created.
On to the second topic – creating and using custom Project Site templates. I’m not specifically covering how you would create a custom template, and this hasn’t really changed much from 2010 – just the place you start from, The Settings ‘Gear’ in the top right, then Site Contents and you can create template site from their. See this post for the full 2010 details and I’ll probably add a new 2013 version soon. One option for sites in SharePoint 2013 – and this is just as applicable to Project Web App and the Project Sites is to ‘Change the Look’. So for example, I can take a new blank (not connected to a project) Project Site – and change the look to one of these delightful samples:
For example I could choose the one in the top right, and also add a new Link to this blog, and then save this as my template.
Then make this the Project Site template that gets used for any new Enterprise Project Type (EPT) of Enterprise Project and create a new plan. What do I get?
Not quite what I was expecting. Well actually I have done it before and also followed the code in a debug session – so it was what I was expecting… At least this time. When we provision a new site we are also applying the theme of PWA to the site – so this ‘undoes’ some of the customization that you might have expected to see (confirmed with the Product Group that this is considered ‘by-design’ and was a conscious branding decision). I do still see my new link – and if I had added content I would still see it (assuming I had checked the option when creating the template to also save the content). I have also seen some issues if you then try to ‘change the look’ of this new site – with the ‘change the look’ page being empty – as if the Gallery contained no options – or in some cases just showing the current version. I think this may be related to the first issue – as in preparing this blog posting and using the workaround for issue 1 of using the FQDN and adding the Internal Url for the machine name all seems to be working OK. Just to prove it, I’ve re-applied the same look to this site, which showed as the ‘current’ one anyway (because we had programmatically overwritten some stuff) and got back to:
I still think there is some work to do here both in terms of understanding the themes and the galleries, and for the first issue there is a bug logged, although with the workaround looking OK I’m not sure when this will get fixed. Also I have an ongoing thread with Hans, who brought this to our attention, as in his environment, which includes other AAM settings and is running on Azure VM’s (this technology is in preview, so not currently supported), there are still some provisioning issues. So probably more later perhaps including a posting on the use of Azure virtual machines for Project Server 2013…