Freigeben über


Problem with Publisher_2010.xml in Productivity Hub 2010 SP1

When attempting to install the Publisher content pack for the SharePoint 2010 Productivity Hub SP1 you may receive the error shown below when attempting to run the install script with the Publisher_2010.xml file.

 

Exception calling "Load" with "1" argument(s): "'<' is an unexpected token. The expected token is '>'. Line 10, position 16."
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:88 char:41
+ $xd = [System.Xml.Linq.XDocument]::Load <<<< ((Resolve-Path $xml))
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:98 char:34
+ $productName = $xd.Root.Attribute <<<< ("Product").Value
    + CategoryInfo : InvalidOperation: (Attribute:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:102 char:37
+ $productVersion = $xd.Root.Attribute <<<< ("ProductVersion").Value
    + CategoryInfo : InvalidOperation: (Attribute:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:104 char:37
+ $productIconUrl = $xd.Root.Attribute <<<< ("IconUrl").Value
    + CategoryInfo : InvalidOperation: (Attribute:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:106 char:39
+ $productFullTitle = $xd.Root.Attribute <<<< ("FullTitle").Value
    + CategoryInfo : InvalidOperation: (Attribute:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:108 char:78
+ [System.Guid] $productKeywordGuid = new-object System.Guid($xd.Root.Attribute <<<< ("KeywordGuid"
).Value)
    + CategoryInfo : InvalidOperation: (Attribute:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:191 char:14
+ if(Test-Path <<<< $productIconUrl)
    + CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.
   Commands.TestPathCommand

Registering keyword in term mgr
CreateKeywordTerm : Cannot process argument transformation on parameter 'tagGuid'. Cannot convert n
ull to type "System.Guid".
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:232 char:93
+ [Microsoft.SharePoint.Taxonomy.Term] $keywordTerm = CreateKeywordTerm -site $spSite -tagGuid <<<<
  $productKeywordGuid -termString $productKeywordTerm
    + CategoryInfo : InvalidData: (:) [CreateKeywordTerm], ParameterBindin...mationExcept
   ion
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,CreateKeywordTerm

Uploading content
You cannot call a method on a null-valued expression.
At C:\Files\Productivity Hub 2010 SP1\Unpack\Publisher\Install.ps1:251 char:33
+ foreach($xe in $xd.Root.Elements <<<< ())
    + CategoryInfo : InvalidOperation: (Elements:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

 

The cause of the error is that the Publisher_2010.xml file has an error in it. In the top section on line 10 (shown below) the <Document> element closing tag is not properly formatted.

 

<Documents Product="Publisher" ProductVersion="2010" IconUrl="Images\Product-Publisher.png" FullTitle="Microsoft Publisher" KeywordGuid="{1F0076A0-2FDA-45A0-97E5-95AED69205CE}">
  <Document>
    <Filename>2010\Reference_Publisher_2007_to_2010.xlsx</Filename>
    <Title>Publisher Command Reference</Title>
    <Abstract>See where commands moved from Publisher 2007 to Publisher 2010.</Abstract>
    <Difficulty>Beginning</Difficulty>
    <IsVideoContent>No</IsVideoContent>
    <IsFeaturedContent>No</IsFeaturedContent>
    <AppearsInRotator>No</AppearsInRotator>
  </Document

To correct the problem you will need to add ">" to the end of the line so that it looks like this...</Document>