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: 

{{job.trigger.type}} not working and throws error on Edit Parameter from Job page

BrianJ
New Contributor II

Following the instruction on the Job Parameter Dynamic values, I am able to use 

{{job.id}}
{{job.name}}
{{job.run_id}}
{{job.repair_count}}
{{job.start_time.[argument]}}
However, when I set trigger_type as trigger_type: {{job.trigger.type}} and hit SAVE, it errors out as below image.

BrianJ_1-1713544000542.png

also, I noticed that the Dynamic values window from the Job parameter Edit Parameters page vs. the official doc has discrepancy - {{job.parameters.[name]}} is missing from the Job parameter Edit Parameters page.

BrianJ_0-1713544144110.png

 

5 REPLIES 5

Rajani
Contributor II

Hi @BrianJ 
I just tested job trigger type it is working fine.
attaching snippets for your reference

Rajani_0-1713758570135.pngRajani_1-1713758574832.png

 

Ajay-Pandey
Esteemed Contributor III

Hi @BrianJ 

 

It's working for me as well 

Thanks @Rajani 

Ajay Kumar Pandey

shan_chandra
Esteemed Contributor

Hi @BrianJ  - As a workaround, can you please add the parameter at the task level instead of the job level - {{job.trigger.type}}. 

@BrianJ  -  Have shared the details with the Databricks Engineering team to have this issue addressed. we assure that the issue will be prioritized and fixed in the next release. Kindly use the workaround to proceed further on this.

BrianJ
New Contributor II

Thanks everyone, I decided to use the Sparkcontext instead.

 

dbutils.notebook.entry_point.getDbutils().notebook().getContext().toJson()

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