notebook activity in ADF not able to call another synapse notebook

553 Views Asked by At

Synapse Notebook reference - Call Synapse notebook from another with parameters

notebook_name = '/NB_dim_load'

using

mssparkutils.notebook.run(notebook_name, 90, {"notebookparams": Job_configInfo_dicencoded})

the problem is when i ran my notebook from synapse notebook activity in ADF. but when i ran it notebook directly , able to call another notebook with encoded parameters ? CAN YOU HELP ME whats the solution?

1

There are 1 best solutions below

3
Pratik Lad On

Firstly, Notebook name should start and end with letter, number or underscore (_).

Fetch notebook content for /NB_dim_load failed with exception: Request to fetchNotebookContent failed with status code 404 error {"message":"{"code":"NotFound","message":"The document could not be retrieved because it does not exist.

The error you are facing is because of incorrect Notebook name or Inappropriate Notebook path.

To resolve this, make sure you are using proper notebook path or notebook name and check Enable unpublished notebook reference on every notebook.

enter image description here

As you see in above pictures, I tried with notebook name similar to yours and it got succeeded.

enter image description here