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: 

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

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!