cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
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

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 

shan_chandra
Esteemed Contributor
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()