cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Error updating workflow, webhook not found?

jonathan-dufaul
Valued Contributor

I have no idea what this error means or what it could mean. When I'm trying to save a workflow I get a popup saying this:

image

1 ACCEPTED SOLUTION

Accepted Solutions

jonathan-dufaul
Valued Contributor

Turns out there was a webhook but databricks had a bug that made it so it didn't show up in the UI.

The way to find out the offending portion is to look at the json for the job:

image 

imageThe ui is convinced that doesn't exist so you have to use the jobs API to fix it.

import requests
 
api_base = "https://adb-[redacted].azuredatabricks.net/api/2.0"
databricks_service = "the_o=_part_of_the_url"
 
# let databricks know the authorization and that we're submitting json
headers = {
    "Content-Type": "application/json",
    "Authorization": f"Bearer {databricks_token}",
}
 
# create data for request
data = {
    "job_id": {job_id},
    "fields_to_remove": ["webhook_notifications"],
}
 
 
# submit the rerquest
update_jobs_url = f"{api_base}/jobs/update?o={databricks_service}"
 
requests.post(update_jobs_url, headers=headers, json=data).text

fix your stuff databricks.

View solution in original post

2 REPLIES 2

jonathan-dufaul
Valued Contributor

Turns out there was a webhook but databricks had a bug that made it so it didn't show up in the UI.

The way to find out the offending portion is to look at the json for the job:

image 

imageThe ui is convinced that doesn't exist so you have to use the jobs API to fix it.

import requests
 
api_base = "https://adb-[redacted].azuredatabricks.net/api/2.0"
databricks_service = "the_o=_part_of_the_url"
 
# let databricks know the authorization and that we're submitting json
headers = {
    "Content-Type": "application/json",
    "Authorization": f"Bearer {databricks_token}",
}
 
# create data for request
data = {
    "job_id": {job_id},
    "fields_to_remove": ["webhook_notifications"],
}
 
 
# submit the rerquest
update_jobs_url = f"{api_base}/jobs/update?o={databricks_service}"
 
requests.post(update_jobs_url, headers=headers, json=data).text

fix your stuff databricks.

Robin_LOCHE
New Contributor II

I had the same issue, thanks for the info! Apparently it's also possible to fix it by removing all the actual notification in the interface (the bugged one is not displayed, but if you remove everything for some reason it removes the bugged one too). I just had to save and put it back after and it worked

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.