Project Server 2010 Fails when using a custom template.

Antwoord Project Server 2010 Fails when using a custom template.

  • vrijdag 29 juli 2011 15:18
     
     

    I have a brand new clean installation of Project Server 2010 with SP1 and all the Cummulative updates. 

    Anytime I try to create a project (basic, sample, or custom) the only template I can use successfully is the default Microsoft project site.  From the PWA site, I created a new site, cutomized it, and then saved it as a template.  Anytime I try to use that template, I get the following error.  I have seen several post with this same problem but no solutions.

    Need Help desperately - Thanks

    Your CreateWssSite job failed.  Its current state is FailedNotBlocking.  It was 0% complete.  It entered the queue at 07/29/2011 09:25:57.

    To get more information about the job failure, please go to Project Web App.  Select Personal Settings from the left menu.  Then select My Queued Jobs.

    The errors returned from the queue are as follows:

     Error ID: 16400

     Error ID: 26000

    Detailed error below - send it to the administrator for more detailed troubleshooting.

    <?xml version="1.0" encoding="utf-16"?>

    <errinfo>

      <general>

        <class name="CreateWssSiteContent: Creating project site failed! Project Uid=8954d23b-ed59-4c18-9ec4-6c6f1970807e, site URL=http://tspm01/PWA/testss2, site name=testss2. System.Runtime.InteropServices.COMException (0x8107058A): &lt;nativehr&gt;0x8107058a&lt;/nativehr&gt;&lt;nativestack&gt;&lt;/nativestack&gt;Invalid URI: The hostname could not be parsed.&#xD;&#xA;   at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String&amp; bstrWebTemplate, Int32&amp; plWebTemplateId)&#xD;&#xA;   at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String&amp; bstrWebTemplate, Int32&amp; plWebTemplateId)Microsoft.SharePoint.SPException: Invalid URI: The hostname could not be parsed. ---&gt; System.Runtime.InteropServices.COMException (0x8107058A): &lt;nativehr&gt;0x8107058a&lt;/nativehr&gt;&lt;nativestack&gt;&lt;/nativestack&gt;Invalid URI: The hostname could not be parsed.&#xD;&#xA;   at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String&amp; bstrWebTemplate, Int32&amp; plWebTemplateId)&#xD;&#xA;   at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String&amp; bstrWebTemplate, Int32&amp; plWebTemplateId)&#xD;&#xA;   --- End of inner exception stack trace ---&#xD;&#xA;   at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)&#xD;&#xA;   at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String&amp; bstrWebTemplate, Int32&amp; plWebTemplateId)&#xD;&#xA;   at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)&#xD;&#xA;   at Microsoft.SharePoint.SPSite.CreateWeb(String strUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid webId, Guid rootFolderId, Boolean createSystemCatalogs)&#xD;&#xA;   at Microsoft.SharePoint.SPSite.SPWebCollectionProvider.CreateWeb(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere)&#xD;&#xA;   at Microsoft.SharePoint.SPWebCollection.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)&#xD;&#xA;   at Microsoft.Office.Project.Server.BusinessLayer.Admin.CreateSPWeb(SPSite topSite, String spWebUrl, String spWebName, String spWebDescription, String spWebLogoUrl, Int32 webTemplateLCID, String webTemplateName, String&amp; errorMessage)">

          <error id="16400" name="WSSCreateSiteFailure" uid="b313043d-1758-4bb6-81be-7596278488f6" projectUID="8954d23b-ed59-4c18-9ec4-6c6f1970807e" workspaceUrl="http://tspm01/PWA/testss2/testss2" projectWorkspaceName="testss2" />

        </class>

        <class name="Queue">

          <error id="26000" name="GeneralQueueJobFailed" uid="836b5c7d-f4ee-431e-b6a5-a61aa18e9072" JobUID="9b14deaa-cf40-4d62-8cf4-7c925e0c5956" ComputerName="TSPM01" GroupType="CreateWssSite" MessageType="CreateWssSiteMessage" MessageId="1" Stage="" />

        </class>

      </general>

    </errinfo>

    You can do the following:

    1. Try troubleshooting using the error IDs, error XML.

    2. Contact administrator with your jobID (9b14deaa-cf40-4d62-8cf4-7c925e0c5956) and error XML.

    To turn off these notifications, go to Project Web App, click Personal Settings on the left menu, and then click Manage My Alerts and Reminders.

    From this page, you can clear the check box for those notifications you no longer want to receive.

Alle reacties

  • vrijdag 29 juli 2011 17:30
     
     Antwoord

    What specific customizations are you making in the template? DOes your customization involve the 'deletion' of any of the default lists (Issues, Risks, Project Document Libraries, Deliverables?

    If yes, you might want to try and isolate that as your issue, by creating a template without doing that specific customization..

     


    Prasanna Adavi, PMP, MCTS http://thinkepm.blogspot.com
    • Als antwoord gemarkeerd door mkbranch maandag 1 augustus 2011 12:58
    • Markering als antwoord ongedaan gemaakt door mkbranch maandag 1 augustus 2011 12:59
    • Als antwoord gemarkeerd door mkbranch maandag 1 augustus 2011 13:01
    •  
  • vrijdag 29 juli 2011 18:01
     
     Antwoord

    When you create a custom template, make sure it is not associate with a project site.  For example, in the past, I create a project, published and used the new publish site as a template.  This will not work because the site is now assocated with the template.  There are powershell commands to remove the associations or create a site from scratch.

    cheers


    Michael Wharton, MBA, PMP, MCT, MCSD, MCSE+I, MCDBA
    www.WhartonComputer.com
    • Als antwoord gemarkeerd door mkbranch maandag 1 augustus 2011 13:00
    •  
  • zondag 31 juli 2011 6:47
    Moderator
     
     

    Hi,

    Can I confirm that the template site you are creating is based on the Microsoft Project Site Template? Project Server will only support workspaces created from a Project Site template. Also to reiterate what Prasanna asked, if you used a Project Template, did you delete the risks, issues or deliverables libraries, these are required for the workspace to synchronise with PS.

     


    Alex Burton
    www.epmsource.com | Twitter
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    • Als antwoord gemarkeerd door mkbranch maandag 1 augustus 2011 12:59
    • Markering als antwoord ongedaan gemaakt door mkbranch maandag 1 augustus 2011 13:00
    •  
  • zondag 31 juli 2011 13:32
     
      Bevat code

    Hi. If you are using any custom web parts in the project site you based your template then it might be assicated to that. Try going back to basics. Remove any custom web parts, then try, try again until you can isolate the issue.

    The other thing is to check if the site collection you are making the project site template is the same as the one you are publishing to. If different then perhaps you don't have a site collection/site feature activated which the template requires. If this is the case you can usually go to the site collection root and look at all the sites available and see your site half created in the site collection. If you use the sharepoint method (Site Actions>Create Site) to create the site using your template, you can usually get a more descriptive error which indicates the missing site feature id.

    Then use Powershell to retrieve the descriptive name of the missing feature from your source template site. For Exmaple

    Get-SPFeature 10eb8dad-31aa-4461-9843-27305d0c7c93
    
    

    rerturns:

    DisplayName          Id                    Scope
    
    -----------          --                    -----
    
    PWAWebParts          10eb8dad-31aa-4461-9843-27305d0c7c93   Site
    
    
    

    Failing this then check the SharePoint logs for some additional information.,

    Regards,

    Piet Remen


    Regards, Piet Remen
  • maandag 1 augustus 2011 13:13
     
     

    Thank all of you so very much for responding.

    To answer everyone's questions - I was using create site with the Microsoft Project Site to create the template.

    I was creating a new site that was not associated to any project.

    I was not using any custom web parts.

    It turned out to be a combination of things.  I did not know that risk, issues, and deliverable were required on the custom site.  However, I wasn't deleting the Issues, Risk, or Deliverable but I was renaming them to Project Risk, Project Issues, and Project Deliverables which apparently was enough that it would not Sync.

    Bottom line - If you want to use a custom template, you must create a brand new site from the All Site Content Page (using the Microsoft project site from the list).  You can create custom list to add to the page, but do not edit or delete the default list such as risk, issues, or deliverables because they are required to Sync with Project Server.

    Thanks again everyone - Lifesavers!


    Michael
  • woensdag 18 april 2012 20:39
     
     
    Good afternoon!  Where might I go to find these STSADM or PowerShell commands that can remove these associations?  Thanx in advance, SKH

    skh

  • maandag 28 januari 2013 16:56
     
     
    Where can I find the commands PowerShell to run it?