Cannot Start a job via an API call in Postman "startJobParameters must not be null"

postmanからPOSTされたjsonデータを受けとり、値をexcelに書き込むロボットを作成しています。

前段階として、エクセルのファイルAからファイルBに転記するロボットを作成しました。
postmanからOrchestratorに要求を送り、プロセスを開始することもできています。

しかし、送りたいjsonをbodyに記述すると
"startJobParameters must not be null"というエラーが出され、
そもそもjsonをロボットに送ることができるのかもわかりかねています。

どなたか対処法をご教示いただけますと幸いです。

Check these articles:

https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/start-a-job-using-Orchestrator-API
https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/Start-a-job-on-specific-machine-using-modern-folder-via-API-call
https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/How-to-make-Orchestrator-API-Requests-using-HTTP-Request-activities

ご回答頂きありがとうございます。

現在OrchestratorのAPI呼び出しやStartJobなどは実行できている状況です。

可能であればこれと同時に引数を渡したいのですが、InputArgumentsに記入してもエラーが返ります。


記述の仕方に間違いがあるのでしょうか。

よろしくお願い致します。

The easiest way to check by yourself if that process it is allowing the input arguments and how is to monitor the Orchestrator UI Rest API call in the back-end with Inspect tool in the browser (I prefer Google Chrome).

So in my example, I found that the InputArguments should look like

"InputArguments":"{\"in_C\":1,\"in_D\":2,\"out_Addition\":3}"

Let us know if this helped.

Thank you for your reply.

I tried that method right away!!
But I didn’t get the result like yours.
2022-08-10d

Can you tell me what is wrong?

Start the Inspect tool before accessing the Processes tab. Perform the needed actions and then you will be able to see the call and the payload.

Let us know if this is clear.

Thank you and sorry for the late reply.
I tried, but I couldn’t…

I started the process with DevTools open and got the results as shown in the image.

By the way, [Jobs ~…] is displayed like this.

thank you.

I am contacting you because I was able to resolve this issue.
It looks like the robot argument settings were wrong, not the postman settings.
Thank you for your help.

I am glad that you were able to solve the issue. Mark as a solution the correct post in this thread that helped to solve your issue. In this way, you will help others to find easier what they are looking for.

Thanks for understanding.

1 Like

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