Verification Activity not working in Unattended Mode on Windows Server

Hey Everyone,

we have encountered a weird problem while setting up our new Windows Server Infrastructure with UiPath.

When running workflows attended, everything is working fine.

However, when running unattended everything BUT the verification activities seem to work. These throw the following error:

System.Exception: An internal error occurred during your request! —> UiPath.Testing.Activities.Api.RestHttpRequestException: {‘message’:‘An internal error occurred during your request!’,‘errorCode’:0,‘result’:null,‘targetUrl’:null,‘success’:false,‘error’:{‘code’:0,‘message’:‘An internal error occurred during your request!’,‘details’:null,‘validationErrors’:null},‘unAuthorizedRequest’:false,‘__abp’:true} at UiPath.Testing.Activities.Extensions.HttpResponseMessageExtensions.EnsureSuccessStatusCodeAsync(HttpResponseMessage response)
at UiPath.Testing.Activities.Api.Rest.HttpClientRestApi.MakeRequestAsync(String resource, HttpMethod method, Func2 onError, HttpContent data, CancellationToken cancellationToken)* *--- End of inner exception stack trace ---* *at UiPath.Testing.Activities.Api.Rest.HttpClientRestApi.MakeRequestAsync(String resource, HttpMethod method, Func2 onError, HttpContent data, CancellationToken cancellationToken)
at UiPath.Testing.Activities.Api.Rest.HttpClientRestApi.PostFileAsync(String resource, HttpContent data, Func2 onError, CancellationToken cancellationToken)* *at UiPath.Testing.Activities.OrchestratorService.RequestWithRetry[T,Q](Func2 request, T input, Func2 retryCondition, Func1 retryInput)
at UiPath.Testing.Activities.OrchestratorService.PostAssertionToOrchestrator(Assertion assertion, String screenshotFile)
at UiPath.Testing.Activities.AssertionActivity.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
at UiPath.UIAutomationNext.Activities.NApplicationCard.OnFault(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Does anybody have an idea of what might be going wrong here?

Thanks for your help!

If you can share the screen shot of verify property settings

Also try to add activate window activity before your ui activity add some delay and select wait for page load to complete

@LukasR

The workflow is working fine on another VM in unattended Mode. So I don’t think the settings of the actual activity or the activate function should be an issue.

I also am performing several UI interactions before that so the page load probably also isn’t the issue.

I am out of ideas of what could be the cause of that.

Ok so turns out the only thing needed was to enable View rights for folder packages for the robot account.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.