cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected error while calling Notebook string matching regex `\$[\w_]+' expected but `M' found

pratik21
New Contributor II

Run result unavailable: job failed with error message INVALID_PARAMETER_VALUE: Failed to parse %run command: string matching regex `\$[\w_]+' expected but `M' found) Stacktrace:

/Notebookpath: scala

to call notebook we are using

dbutils.notebook.run("Notebookpath",3600)

4 REPLIES 4

User16764241763
Honored Contributor

Hello @pratik gaikwad​ 

Could you please share the notebook path (full string) that is passed to dbutils.notebook.run?

Kaniz
Community Manager
Community Manager

Hi @pratik gaikwad​, We haven’t heard from you on the last response from @Arvind Ravish​ , and I was checking back to see if you have a resolution yet. If you have any solution, please do share that with the community as it can be helpful to others. Otherwise, we will respond with more details and try to help.

pratik21
New Contributor II

I just copied all the cells from same notebook and created a new notebook with same name at same location (no path changed)

removed old notebook

it worked .

first i tried to clone the notebook but it was giving same error.

and the error occurred unexpectedly my job was live it was working and then sudden error (no changes)

 for time being i was able to get above way around but don't know the actual reason of error

wise_owl
New Contributor II

Not sure of @pratik21 , but for me cloning the notebook at a different location worked for me and it stopped giving me the error altogether.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!