none
Enable the Project Web App site collection features in Project Server 2013 RRS feed

  • Question

  • Hello everyone,

    I'm having some difficulty following this article: http://technet.microsoft.com/en-us/library/jj200305(v=office.15).aspx

    Here is my config:

    SharePoint 2013 on-premise fully patched
    Project Server 2013 SP1
    Web application for host-named site collections: https://SPAPP
    Empty root host-named site collection
    Host-named site collection https://lineofbusiness.contoso.com - Team site
    Host-named site collection https://lineofbusiness.contoso.com/pmo - I want to use this as my online project management site

    Here is my script that I use to create my site
    New-SPSite -url "https://lineofbusiness.contoso.com/pmo"  -HostHeaderWebApplication https://SPAPP -owneralias contoso\user -owneremail user@contoso.com -template pwa#0

    New-SPProjectDatabase –Name "test_PMO_DB" -ServiceApplication “Project Services Application ” -DatabaseServer sqlserver -Tag Test

    # Enable project web app site collection features
    $web=get-spweb "https://lineofbusiness.contoso.com/pmo"
    $web.Properties["PWA_TAG"]="Test"
    $web.Properties.Update()

    Enable-SPFeature pwasite -URL "https://lineofbusiness.contoso.com/pmo"

    Everything works great up to the point of $web.Properties["PWA_TAG"]="Test" when the script hits that point, it throws the errors:

    Cannot index into a null array.
    At C:\script.ps1:6 char:1
    + $web.Properties["PWA_TAG"]="Test"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : NullArray

    You cannot call a method on a null-valued expression.
    At C:\script.ps1:7 char:1
    + $web.Properties.Update()
    + ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull

    Enable-SPFeature : Failed to find Project Site object. Are there any database
    mounted?
    At C:\script.pmo.v3.ps1:9 char:1
    + Enable-SPFeature pwasite -URL "https://lineofbusiness.contoso.com/pmo"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...etEnableFeature:
       SPCmdletEnableFeature) [Enable-SPFeature], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletEnableFe
       ature

    Driving me crazy!  Any help is much appreciated!!

    Monday, January 19, 2015 10:23 PM

Answers

  • So this is one of those times where you really need to understand:
    Web Application
    Service Application
    Site Collection

    What I was doing wrong is this:  I had multiple site collections:
    Host-named site collection https://lineofbusiness.contoso.com - Team site
    Host-named site collection https://lineofbusiness.contoso.com/pmo - I want to use this as my online project

    And I was setting the PWA application to https://lineofbusiness.contoso.com and thinking that I could provision the PWA to https://lineofbusiness.contoso.com/pmo.  But https://lineofbusiness.contoso.com/pmo is NOT a subsite, it's a site collection of it's own. 

    So here's how it works, if any of you are interested.  Project Server 2013 is not just a web template, it's an application with it's own database. 

    I have host named site collections in a host named web application with a project service application.  I can't share the project service application across all my different site collections, I need to have one per site collection, which is my https://lineofbusiness.contoso.com/pmo site collection.  What I was doing wrong is, I was provisioning project at the root site collection: https://lineofbusiness.contoso.com and wondering why the https://lineofbusiness.contoso.com/pmo site collection with the project template wasn't working.  It wasn't working because I hadn't provisioned it!!!!  Clear as mud? I hope not and i hope this helped someone else.

    • Marked as answer by rmmill3 Sunday, January 25, 2015 7:03 PM
    Sunday, January 25, 2015 7:02 PM

All replies

  • Wow,
    No replies!  So I have made SOME progress.  It appears that I need to run the command as my farm account.  So imagine my disappointment when I run Enable-SPFeature pwasite -URL "https://lineofbusiness.contoso.com/pmo" I then receive the error:

    Enable-SPFeature : Failed to find Project Site object. Are there any database mounted?

    Here's some more info:
    1. I did create the database with the -tag attribute 
    2. I use host header site collections
    3. The command works for the root site: https://lineofbusiness.contoso.com

    I really am stuck, I have tried all kinds of things to get this to work and just having nothing but problems....

    Friday, January 23, 2015 7:37 PM
  • So this is one of those times where you really need to understand:
    Web Application
    Service Application
    Site Collection

    What I was doing wrong is this:  I had multiple site collections:
    Host-named site collection https://lineofbusiness.contoso.com - Team site
    Host-named site collection https://lineofbusiness.contoso.com/pmo - I want to use this as my online project

    And I was setting the PWA application to https://lineofbusiness.contoso.com and thinking that I could provision the PWA to https://lineofbusiness.contoso.com/pmo.  But https://lineofbusiness.contoso.com/pmo is NOT a subsite, it's a site collection of it's own. 

    So here's how it works, if any of you are interested.  Project Server 2013 is not just a web template, it's an application with it's own database. 

    I have host named site collections in a host named web application with a project service application.  I can't share the project service application across all my different site collections, I need to have one per site collection, which is my https://lineofbusiness.contoso.com/pmo site collection.  What I was doing wrong is, I was provisioning project at the root site collection: https://lineofbusiness.contoso.com and wondering why the https://lineofbusiness.contoso.com/pmo site collection with the project template wasn't working.  It wasn't working because I hadn't provisioned it!!!!  Clear as mud? I hope not and i hope this helped someone else.

    • Marked as answer by rmmill3 Sunday, January 25, 2015 7:03 PM
    Sunday, January 25, 2015 7:02 PM
  • Hello,

    I had the exact same issue and I am wondering what are the exact Powershell commands you ran to resolve the issue. I read your description marked as the answer but it is still not clear which commands you ran to populate the "PWA_TAG" property value and Enable the PWA features and against which site.

    Also you mentioned that you needed to create one Project Service Application per site collection, can you please clarify this?

    Thank you in advance.

    Thursday, February 5, 2015 1:07 PM