While adding test data "There was an error while collecting Test Data Queues metadata. Please Check the exception details for additional information" massage blocks me

Hello,
While learning on how to work with data driven test cases i encoutered this issue, i have been battling with it whole day and i cannot find a solution to it.

Whenever i select a source for Test Data Queue for TestCase i get this error. Im able to sent this test case to Orchestrator, perform a test and send the results, so i dont think its a problem with Orchestrator not being connected.

Any help is apricated.

@stan1,

Welcome to the UiPath Community :tada:

Can you share the error Details by clicking on Details button on error popup?

Thanks,
Ashok :slight_smile:

Hello,
Yes here are details:
"
Error: UiPath.Studio.Contracts.RecoverableException: The Orchestrator returned the status code Forbidden. Please make sure you have the rights to execute Test Data Queue APIs
—> System.Exception: {“message”:“You are not authorized!”,“errorCode”:0,“result”:null,“targetUrl”:null,“success”:false,“error”:{“code”:0,“message”:“You are not authorized!”,“details”:“You are not allowed to perform this operation.”,“validationErrors”:null},“unAuthorizedRequest”:true,“__abp”:true}
— End of inner exception stack trace —
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.TestDataQueues.TestDataQueueRestApi.ValidateResponse(IRestResponse restResponse, String endpoint)
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.TestDataQueues.TestDataQueueRestApi.GetTestDataQueues(CancellationToken cancellationToken)
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.Services.DataVariationTestDataQueueService.GetTestDataQueues(CancellationToken ct)
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.ViewModels.ImportDataVariationTestDataQueueControlViewModel.ReadTestDataQueues(), HResult -2146233088
"

@stan1,

As you said you already have the access to the Orchestrator folder. Check this property of Get Test Data Queue Item activity.

Check if it’s provided correctly.

Thanks,
Ashok :slight_smile:

@stan1

As per error you are not authorized it might be apermission issue as well…when you say you already ran a test case did something change after it? Do you have access tot he require dtest data aueue and the folder it is present in

Cheers

Hi

I too am having a problem with creating a new test case that uses a test data queue.

I’m going through the UiPath training module ‘Get Started with Testing in Studio’, and am at the exercise ‘Creating a data-driven test case’. The new queue is created and now populated with data.

When I try to create a new test case and select test data source = Test data I get the error ‘There was an error while collecting Test Data Queues metadata’. The error log shows I am not authorized.

Such ‘Not authorised’ messages I see when I’ve not specified the Folder for a queue (e.g. for Bulk create queue items’), but the panel does not ask for the folder name.

In Project Settings for the test automation project, there is a page for ‘Test Manager Settings’, with no URL and ‘Disconnected’ state.

According the exercise instructions, I should be seeing this:

There is no instruction in the exercise to set this value. I’ve attempted to connect using my own Orchestrator Cloud tenant URL but not working.

I’m set-up as and Administrator for the tenant and so far had no issues.

Help / guidance much appreciated, as reached a blocker in the training.

Many thanks
Steve

DOH! Issue resolved. Just needed to set the folder at the footer of Studio: