BAT is not working

The following BAT is not working. The error content for the BAT is below, and although UiPath and the packages have been updated, nothing changes after publishing.
Please let me know the cause.

“@echo off
set UiPath=“C:\Program Files\UiPathPlatform\Robot\26.0.203-cloud.25204\UiRobot.exe”
set PACKAGE=“C:\ProgramData\UiPath\Packages\NextDelivery.1.0.10.nupkg”
rem set LOG=“C:\Logs\UiPath_Run_%DATE%.txt”
%UiPath% -file %PACKAGE%”

Error content
"C:\Scripts>RunUiPath.bat
System.Exception: Failed to install the following package: ‘NextDelivery.1.0.10’
—> System.Exception: NU1102: Unable to find package UiPath.UIAutomationNext.Activities with version (= 26.10.0)

  • Found 1 version(s) in https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json [ Nearest version: 20.4.2 ]
  • Found 1 version(s) in Official [ Nearest version: 20.4.2 ]
  • Found 0 version(s) in Executors
  • Found 0 version(s) in Local
  • Found 0 version(s) in C:\ProgramData\UiPath\Packages
  • Found 0 version(s) in nuget.org
  • Found 0 version(s) in Connect
    — End of inner exception stack trace —
    at UiPath.Robot.Core.ProjectInstaller.ThrowInstallationException(IEnumerable1 loggerErrors, IEnumerable1 additionalInstallPackageCommandErrors, Package package) in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 111
    at UiPath.Robot.Core.ProjectInstaller.InstallCore(InstallProjectCommand installCommand) in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 76
    at UiPath.Robot.Core.ProjectInstaller.<>c__DisplayClass11_0.<b__0>d.MoveNext() in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 57
    — End of stack trace from previous location —
    at UiPath.Robot.Core.ProjectInstaller.Install(InstallProjectCommand installCommand) in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 57
    at UiPath.CommandLine.CommandLineAppHelpers.GenerateJobModel(ExecuteVerb args, IEnumerable`1 sources, CancellationToken ct) in D:\a\1\s\Robot\UiPath.CommandLine\CommandLineAppHelpers.cs:line 68"

Hi @t_kato,

Welcome to the community.

As per the error, it looks like the issue is with the package dependency. On your Dev machine/Orchestrator, the UiPath UIAutomation package version 26.10 is available. However, it is not available on the machine where the process is running.

So, either downgrade the UiPath UIAutomation package to 20.4.2 or copy the 26.10 package from the Dev machine to the machine where the process is running.

Thanks!

Hi @t_kato ,
Updating Studio/Robot alone won’t fix it. The published package contains an unavailable/deprecated dependency, so fix the project dependency and republish.

Thanks

Error - NU1102: Unable to find package UiPath.UIAutomationNext.Activities
with version (= 26.10.0)

This means that when UiRobot.exe tries to install and run the package NextDelivery.1.0.10.nupkg, it cannot find the required dependency UiPath.UIAutomationNext.Activities v26.10.0.

Try-

Open the workflow in Studio → Manage Packages → either:

  • Install/restore UiPath.UIAutomationNext.Activities 26.10.0, or
  • Downgrade to a package version available in your environment and republish.

Also verify the Robot machine has access to the correct UiPath package feed and clear the local package cache before running again.

I don’t see UiPath.UIAutomationNext.Activities in the package management. How can I install it?

Hi @t_kato,

It is UiPath.UIAutomation.Activities Package. The UiPath.UIAutomationNext.Activities package is deprecated and its features are merged to UiPath.UIAutomation.Activities Package.

Can you try any of the following approch:

Thanks!

Do not downgrade to 20.4.2 ,that is a Windows Legacy release from 2020 and will break your modern .NET activities.

The root cause is that UiRobot is running your package locally via -file in an isolated/standalone environment, but the Robot machine lacks the required runtime package feed to restore dependencies. UiPath.UIAutomationNext.Activities is an internal transitive dependency bundled with UiPath.UIAutomation.Activities 26.10.0, which is why it does not appear as an independent package in Manage Packages.

When UiRobot attempts to restore dependencies, it only queries the local and configured feeds listed in your error log:

  • Local package folder (C:\ProgramData\UiPath\Packages)
  • An outdated public feed URL capped at version 20.4.2

To resolve this for standalone BAT execution:

Open C:\Program Files\UiPathPlatform\Robot\NuGet.config (or %appdata%\NuGet\NuGet.Config) on the Robot machine, and ensure the official v3 package feed is added:
<add key=““UiPath Official”” value=““https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json”” />

Once the feed or local package cache contains the 26.10.0 dependencies, your batch script will restore and launch the package normally."

For BAT execution, ensure the UiPath Official NuGet feed is added to the Robot machine’s NuGet.config file.
Once the feed is configured and the required 26.10.0 dependencies are available, the batch script should restore the packages and run normally.

I added v3, but I’m getting the same error.
Did I add it incorrectly?
The location is “C:\Program Files\UiPathPlatform\Robot\NuGet.config,” but
on the robot machine, it is
“C:\Program Files\UiPathPlatform\Robot\26.0.204-cloud.25540\NuGet.config.”
Could there be a problem with the installation?

C:\Scripts>RunUiPath.bat
System.Exception: 次のパッケージのインストールに失敗しました: ‘次回納品.1.0.10’
—> System.Exception: NU1102: Unable to find package UiPath.UIAutomationNext.Activities with version (= 26.10.0)

  • Found 1 version(s) in https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json [ Nearest version: 20.4.2 ]
  • Found 1 version(s) in UiPath Official [ Nearest version: 20.4.2 ]
  • Found 1 version(s) in Official [ Nearest version: 20.4.2 ]
  • Found 0 version(s) in Executors
  • Found 0 version(s) in Local
  • Found 0 version(s) in C:\ProgramData\UiPath\Packages
  • Found 0 version(s) in nuget.org
  • Found 0 version(s) in Connect
    — End of inner exception stack trace —
    at UiPath.Robot.Core.ProjectInstaller.ThrowInstallationException(IEnumerable1 loggerErrors, IEnumerable1 additionalInstallPackageCommandErrors, Package package) in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 111
    at UiPath.Robot.Core.ProjectInstaller.InstallCore(InstallProjectCommand installCommand) in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 76
    at UiPath.Robot.Core.ProjectInstaller.<>c__DisplayClass11_0.<b__0>d.MoveNext() in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 57
    — End of stack trace from previous location —
    at UiPath.Robot.Core.ProjectInstaller.Install(InstallProjectCommand installCommand) in D:\a\1\s\Robot\UiPath.Robot.Core\NetCore\ProjectInstaller.cs:line 57
    at UiPath.CommandLine.CommandLineAppHelpers.GenerateJobModel(ExecuteVerb args, IEnumerable`1 sources, CancellationToken ct) in D:\a\1\s\Robot\UiPath.CommandLine\CommandLineAppHelpers.cs:line 68

The UiPath.UIAutomationNext.Activities package is deprecated and its features are merged to UiPath.UIAutomation.Activities Package.

Thank you, everyone, for your answers.
It wasn’t working because I had installed it incorrectly.
I had created the file on the development machine and edited it on the execution server, but I found out that updating to version 26.10 on the execution server wasn’t enough; I also had to update it on the original development machine.
Your suggestions helped me solve the problem.
Thank you.