コンテンツ ツリーにSitecore JavaScript Services(JSS)とSXAの両方のサイトと設定がある場合、Sitecore Experience Accelerator(SXA)のバージョン9.3から10.2へのアップグレードに失敗する場合があります。この問題は、新しいSXAパッケージをインストールした後、既存のコンテンツを更新するときに発生します。
Upgradeリンクをクリックすると、PowerShellスクリプトの結果ダイアログに、インストールに必要なすべてのアップグレード手順が表示されます。
Upgrade step result: Error (without details)コンソールに次のメッセージが表示されます:
WhatIf: Performing the operation "Import functions" on target "master:\system\Modules\PowerShell\Script Library\SXA\SXA - Scaffolding\Functions\Cmdlets\Get-UniqueItem".
ERROR Error while performing timed 'script execution in ScriptSession '$scriptSession$|pz2lzmowpkjrwsrjums5xktp|21b7d3c8-32d8-4f8e-9c4a-724c08ed44fe'' operation within 2273 ms. Exception logged at operation origin point.
ERROR Error while executing PowerShell script.
Exception: System.Management.Automation.RuntimeException
Message: Upgrade step 'Fix Jss Sites Dictionary' returns incorrect result of type [System.Object[]]. But should be [Sitecore.XA.Foundation.Upgrade.Model.UpgradeStepResult]
Source: System.Management.Automation
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Spe.Core.Host.ScriptSession.ExecuteCommand(Boolean stringOutput, Boolean marshallResults)
...
この問題を解決するには、KB1001820で入手可能な、対応する累積Hotfixをダウンロードしてインストールします。