workspace notebook path not recognized by dbutils.notebook.run() when running from a workflow/job

siva_pusarla
Databricks Partner

result = dbutils.notebooks.run("/Workspace/YourFolder/NotebookA",
timeout_seconds=600, arguments={"param1": "value1"})
print(result)

I was able to execute the above code manually from a notebook.

But when i run the same notebook as a job, it fails stating that the path not found.

Complete code is checked-in to repo and job reads the source from repo.

But I'm still unclear as I have mentioned the absolute path of the workspace notebookA.