Orchestrator からプロセスを実行したところ「次のパッケージのインストールに失敗しました (NU1202)」というエラーが発生する

:white_question_mark: Question

UiPath Orchestrator からプロセスを実行したところ下記エラーが発生してジョブが失敗しました。原因と回避策について教えてください。

UiPath.CoreIpc.RemoteException: 次のパッケージのインストールに失敗しました: <プロセス名> ---> UiPath.CoreIpc.RemoteException: NU1202: Package <プロセス名> is not compatible with net6.0-windows7.0 (.NETCoreApp,Version=v6.0). Package <プロセス名> supports: net8.0-windows7.0 (.NETCoreApp,Version=v8.0)
NU1202: Package <プロセス名> is not compatible with net6.0-windows7.0 (.NETCoreApp,Version=v6.0) / win10-x64. Package <プロセス名> supports: net8.0-windows7.0 (.NETCoreApp,Version=v8.0)
--- End of inner exception stack trace ---
at UiPath.Robot.Core.ProjectInstaller.InstallCore(InstallProjectCommand installCommand)
at UiPath.Service.Core.NetWindowsProjectInstaller.InstallCore(InstallProjectCommand installCommand)
at UiPath.Robot.Core.ProjectInstaller.<>c__DisplayClass10_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.Robot.Core.ProjectInstaller.Install(InstallProjectCommand installCommand)
at UiPath.Service.Core.PackageService.InstallProcess(PublishedProcess process, ImpersonableIdentity identity, IRobot robot, Nullable`1 jobId, CancellationToken ct)
at UiPath.Service.Job.InstallPackage(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Job.PrepareForExecution(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Job.UiPath.Service.Core.IExecutorEvents.ExecutorAvailable(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Impl.ExecutorProxy.OnExecutorAvailableAsync(Object sender, AvailableEventArgs args)
at UiPath.Service.Core.ExecutorService.Available(AvailableMessage availableMessage)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler)

:light_bulb: Answer

原因

プロセスを開発した端末にインストールされている UiPath Studio のバージョンが Orchestrator から実行したロボット実行端末の UiPath Studio/Robot より新しいため、エラーが発生しました。詳しくは下記公開情報を確認してください。

UiPath は、UiPath のドキュメントに記載されている場合を除き、製品の前方互換性を保証しません。

解決策

プロセスが開発された UiPath Studio のバージョンと同一か、より新しいバージョンの UiPath Studio/Robot をロボット実行端末へインストールします。