VMware Horizon Community
jtumminelli1
Contributor
Contributor
Jump to solution

SendLinkedCloneRecompose FAILED Powershell

Just upgraded from view 6.1 to 6.2.3.  I have a script that runs a recompose monthly on our non-persistent linked clones.  This is running from a remote server using windows task scheduler.

It was working fine until i did the upgrade to 6.2.3  Everything else is working fine.  The parent vm old snap-shot gets deleted correctly.  New snap-shot is created fine and the pool in the view admin console is pointing to the new snap before I kick off sendlinkedclonerecompose.

I also had to run the add-snapin.ps1 in "C:\Program Files\VMware\VMware View\Server\extras\PowerShell\add-snapin.ps1" on the connection server to register the vmware cmd applets. Powershell version on the remote server i am running the WTS is version 4.0.  The ps version on the connection server is 3.0.  The exact error i am getting whether it is remote or on the connection server is list here.

PowershellService::SendLinkedCloneRecompose FAILED, error=Provider

org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

    + CategoryInfo          : InvalidResult: (vmware.view.pow...dCloneRecompos

   e:SendLinkedCloneRecompose) [Send-LinkedCloneRecompose], Exception

    + FullyQualifiedErrorId : PowershellService::SendLinkedCloneRecompose FAIL

   ED,vmware.view.powershell.cmdlets.SendLinkedCloneRecompose

    + PSComputerName        :servername.com

I am looking for help on resolving this issue.  This script was working fine until i upgrade to 6.2.3

Is there something that I am missing?  of change with this upgrade.

Any help would be appreciated.

This is the block of code

$schedule = $schedule.GetEnumerator() | Sort-Object Name

    foreach ($t in $schedule){

        $time = (Get-Date).AddMinutes($t.Name)

        Write-Host "`nIn" $t.Name "minutes (" -NoNewline -ForegroundColor Cyan

        Write-Host $time.ToShortTimeString() -NoNewline -ForegroundColor Cyan

        Write-Host ")`n**********************************" -ForegroundColor Cyan

#       $t.Value | Format-Columns -Property Name -Autosize -MaxColumn 8  | Out-Host

        if (-not $Simulate){

            $attempted,$successful,$unchanged = 0,0,0

            $t.Value | Group-Object -Property pool_id | % {

                $poolID = $_.Name

                $options = @{

                    parentVMPath = $poolData[$poolID].parentVMPath

                    parentSnapshotPath = $poolData[$poolID].snapshot

                    schedule = $time

                    forceLogoff = $forceLogoff

                    stopOnError = $stopOnError

                }

                $result = $_.Group | Send-LinkedCloneRecompose @options

                $attempted += $_.Count

                $successful += $result.vmsToRecompose

                $unchanged += $result.vmsUnchanged

            }

            Write-Host ("`n  {0,-13} {1}" -f "Attempted:",$attempted) -ForegroundColor Yellow

            Write-Host ("  {0,-13} {1}" -f "Successful:",$successful) -ForegroundColor Green

            Write-Host ("  {0,-13} {1}" -f "Unchanged:",$unchanged) -ForegroundColor Magenta

        }

    }

1 Solution

Accepted Solutions
jtumminelli1
Contributor
Contributor
Jump to solution

I tried this and it did fix the issue.  Thanks mwkaufman.

View solution in original post

0 Kudos
2 Replies
mwkaufman
Contributor
Contributor
Jump to solution

It looks like there's an issue in 6.2.3 with a missing Apache Xerces JAR file in the C:\Program Files\VMware\VMware View\Server\broker\endorsed directory. I would try the resolution steps from the KB linked below:


"1. Copy xercesImpl.jar from the directory “<Server Installed Path>\VMware\VMware View\Server\lib” to the directory: <Server Installed Path>\VMware\VMware View\Server\broker\endorsed”.

2. Restart the View Connection Server."

Service Provider Metadata Generation fails for Horizon 6 version 6.2.3. (2146390) | VMware KB

0 Kudos
jtumminelli1
Contributor
Contributor
Jump to solution

I tried this and it did fix the issue.  Thanks mwkaufman.

0 Kudos