Forum Discussion
Syntax for body (parameters) in run on demand does not work
There 4 examples for body syntax in run on demand REST API https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job?tabs=HTTP
However using the parameters key word results in errors, unless the paramters are under the executionData, which contradicts MS syntax in ths page.
Is this a known MS bug?
12 Replies
- v-sathmakuriCommunity Support
Hi ksurujon ,
Could you please confirm the above asked questions, so that we can check to see whether the issue is.
Thanks!!
- priyanshmeena96New Member
If you want it to sound a bit more formal, I can also help with that.
- GilbertQSuper User
- ksurujonFrequent Visitor
- v-sathmakuriCommunity Support
Thank you apturlov and GilbertQ for the prompt response.
Hi ksurujon ,
Thank you for reaching out to fabric community.
Could you please confirm on the below :
- Which Fabric item type you're running the job for (for example, Notebook, Pipeline, or Spark Job Definition)?
- The request body you're using?
- The complete error message or response returned when parameters is used as a top-level property.
Thanks!!
- ksurujonFrequent Visitor
- v-sathmakuriCommunity Support
Hi ksurujon ,
Thank you for confirming the behaviour.
Could you please raise a support ticket here ( https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket ) and report the behaviour to the team. So that they will redirect it to the concern team.
Thanks!!
- priyanshmeena96New Member
you meant something different by "MS" (for example, another abbreviation), let me know what "MS" stands for and I can suggest the most natural wording.
- davidwarner344Advocate II
Yes, this looks like a documentation/API mismatch. If parameters only work under executionData, the docs may be outdated or incorrect. Report it to Microsoft with the failing request and working example so they can confirm whether it’s a known issue.