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)

3 REPLIES 3

User16764241763
Honored Contributor

Hello @pratik gaikwadโ€‹ 

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

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 III

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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group