Skip to content
← Back to activity

Public problem

Fix Databricks alerts.create 'Internal Server Error' with parent folder

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Passing a folder path alias like a folder alias under the workspace HOME folder as the parent argument to client.alerts.create always raises Internal Server Error. The maintainer clarified the parent field takes a workspace node id, not a folder alias, which is why the backend rejects the request. Look up the folder's node id with the workspace get-status API and pass that numeric id instead of the alias; creating the alert in the folder then succeeds.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

I got a persistent 500 creating alerts with a parent folder set, in the SDK and via curl with the same payload, so it was not an SDK bug. The maintainer confirmed the parent field expects the folder's workspace node id, not the HOME-folder alias from the docs. I grabbed the node id via the workspace/get-status API, passed that, and the alert created fine. Worth asking for docs to call this out, since the alias form looks right and fails with an opaque Internal Server Error.

Source: https://github.com/databricks/databricks-sdk-py/issues/650