Get jobs uipath count is wrong

I am retrieving jobs using the ‘Get Jobs’ activity in UiPath, but I’m noticing a mismatch in the job count. The number of jobs shown in UiPath is different from the count I see when I apply filters in the Jobs section of Orchestrator**

Hi @Vijayan_Sathyagiri_EXTERN

The ‘Get Jobs’ activity and Orchestrator Jobs page use different filters by default, causing a job count mismatch. pls check & ensure the activity’s filters (folder, status, etc.) match the filters you apply in Orchestrator.

1 Like

iam doesnt do any filter.i just get job but also it is mismatching

Ok,Could you pls share the screenshot with activity properties?

Hi @Vijayan_Sathyagiri_EXTERN

Could you please show how have you configured your get jobs activity and what filters you have applied in the activity and in the jobs section of orchestrator?

If you do not apply any filter, it retrieves the entire job list from the beginning. Apply a filter on the “Get Jobs” activity and compare the list or count with the Orchestrator UI, make sure that the same filter is applied on Orchestrator as well.

Provide some specific context. We need to see the API call you are making and the display you show in the Orchestrator.

Its quite likely that one side has different parameters or filters than the others. The UiPath front end uses the same API call, so it doesnt make any sense that they wouldnt match.

@Vijayan_Sathyagiri_EXTERN

Msay be a screenshot of what parameters and all would help here

as it all depends on what you ahve done

cheers

i want to get start time,execution time,processname,machine from orchestrtor iam using get current job info then psasing job key to get job



i need to add this workflow to every work process to calculate roi

A job key is unique, meaning only one record should be returned. So in what way is the count mismatching with what you see in the Orchestrator?

Please take the effort to properly show an example of the job count from get jobs, including the filters you set, and the job count you see in the Orchestrator.
Otherwise we cannot assist.

1 Like

i want to get bot start time,end time,robot account from get current job info

after that i will pass job key output to get job details but getting error

Hi @Vijayan_Sathyagiri_EXTERN

I believe you don’t need to add odata/jobs here in the filter as this activity is already meant for jobs api.

Please only provide filter condition under filter and try. It should work.

You can also consider using a “filter builder” to build the filter query.

This filter builder is right there on the activity get jobs. Click it and follow the filter wizard

Could you please explain..iam not getting it

Hi @Vijayan_Sathyagiri_EXTERN

In your get Jobs activity filter, you have specified filter as

“Odata/jobs/(filterkey)”

I think this is what is causing the issue.

Right next to filter there is an option use a filter builder, use that one and build your filter query using the same.

I am attaching below doc which also specifies how can builds be used, kindly refer the same

@Vijayan_Sathyagiri_EXTERN
I tried applying the Filter Builder, and it worked for me.


Deployed the process to Orchestrator and was able to get the desired result

But while debugging the job, it failed to give the desired result. I will figure out the root cause and post it here.


i ahve done as you said showing Error ERROR Validation Error BC30311: Value of type ‘String’ cannot be converted to ‘Guid’. The selected value is incompatible with the property type. Main.xaml

Thanks in advance

Please try converting the String to Guid.

Guid.Parse(JobData.Key)

Hi @Vijayan_Sathyagiri_EXTERN

Please parse the same and it should work. Key parameter doesn’t accept string value, hence try parsing like @manasrlenka25 has suggested.

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