The output arguments in API response are null

Hello,

I am trying to execute a process through postman which as response should return the output arguments’ values, contained in my process.
When the job is executed through orchestrator or postman in the job details there are listed the output values, while in the response returned in Postman the
output arguments are “null” so are the input arguments.
Also the job is completed, but the state status in the postman response is “Pending” while in the jobs section in orchestrator is “Successful”. I tried to execute the stop job API, but i get the response from below.
Please take a look at the attached screenshots.
Is there anything I can do to solve this issue?

Thanks!

StartJob

Hello @dragana!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
@Forum_Staff

Hello!

That looks like a problem of timing.

If you are using POST​/odata​/Jobs​/UiPath.Server.Configuration.OData.StartJobs, then the command to start a Job will be sent, but the request doesn’t wait for the Job to finish, so the response doesn’t have the output results.

After you send that command, you need to wait for the Job to finish and then retrieve the arguments using the endpoint GET ​/odata​/Jobs(ID). This ID can be retrieved from the response of the first request that you made to start the Job.

Also, if it’s a Job that takes a lot of time, you need to make sue that it finished successfully before trying to get the result. For that, check if the field State of the response from GET ​/odata​/Jobs(ID) has the value Successful.

1 Like

Great!
Thank you!

Hello Dragana,
Check this video for detailed logic from Postman:

and example in power automate:

Thanks,
Cristian Negulescu

Thanks a lot, it worked perfectly :slight_smile:

We Run API call to get trigger details like days/time .When i run the bot it is returning error saying \ “you are not authorised to perform this operation.\validation error"null”“unauthorised request”:true"“__abp”:true}"