Unable To Complete Import Using Migration Tool "An Error Occurred And The Operation Was Aborted. Please Check Logs File For More Information ( #600)"

How to solve the error "An error occurred and the operation was aborted. Please check logs file for more information ( #600)" while trying to login into Automation Cloud using the Migration Tool?

Error Message: Error while trying to login into Automation Cloud using the Migration Tool "An error occurred and the operation was aborted. Please check logs file for more information ( #600)"

In the logs, the below stack trace of the error can be observed:

"...

[HH:mm:ss.SSS | ERROR] Unable to complete import - check logs for failures System.Net.HttpListenerException (5): Access is denied.

at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)

at System.Net.HttpListener.AddAllPrefixes()

at System.Net.HttpListener.Start()

at UiPath.CloudMigration.WebMigrator.Application.Services.Auth.AuthCallbackService.WaitForCallback(String authEndpoint, String clientId, String redirectUri, String codeChallenge)

at UiPath.CloudMigration.WebMigrator.Application.Services.Auth.CloudAuthenticationService.PerformInteractiveLogin()

at UiPath.CloudMigration.WebMigrator.Application.Services.Auth.CloudAuthenticationService.GetAccessToken()

at UiPath.CloudMigration.WebMigrator.Application.Services.Import.Importer.ImportAsync(ImportOptions importOptions)

..."

Root Cause: On Windows, users who are not part of the local Administrators group cannot listen on any port, unless a URL reservation is made.

Resolution: The problem comes from the HttpListener. In the code, use HttpListener to build and listen to the redirect URL.

An explanation from Microsoft: "By default, only SYSTEM or the local Administrators group can listen to HTTP prefixes. To let other custom accounts listen on certain URL prefixes, explicitly grant access to other accounts."

In conclusion, is about the permission to listen to HTTP prefixes.

The solution would be either run the app as an Administrator or grant permission with non-admin mode with the below command (Running netsh requires administrative rights):

  • netsh http add urlacl url=http://127.0.0.1:8888/auth/ user=YOUR_DOMAIN\your_logged_username listen=yes

More details can be found here: Add-Urlacl

Note: Try a Search in Google for "HttpListener access denied". There are many examples of the solutions as well.

Get help on the command by running the below code:

  • netsh http add urlacl help

image.png

----

The Migration tool supports .Net Core 7.2 which is the latest version? IT team can not install 3.1 because it is no longer supported by Microsoft. It is possible to install version 7.

It should work with the new .Net core version. There is no need to downgrade to .Net 3.1.

----

There can be a problem if the exe app is running from the %temp% folder?

It is not a problem with the temp folder. The problem comes from the HttpListener.