Forum Discussion

quyendothanh200's avatar
quyendothanh200
New Member
4 months ago
Solved

dbt job fails with InternalServerError when triggered via REST API using Service Principal

We are unable to trigger a dbt job (DataBuildToolJob) via the Fabric REST API using a Service Principal (SPN). The API accepts the request (HTTP 202) but the job immediately fails with InternalServer...
  • nilendraFabric's avatar
    4 months ago

    Hi quyendothanh200

     please confirm the SPN has at least Contributor access in the workspace, because dbt jobs require Contributor or higher to create/manage, and dbt execution also needs read/write access to the target warehouse and linked assets.

  • nilendraFabric's avatar
    4 months ago

    REST API execution for Fabric dbt jobs was only recently announced (the feature was in preview from December 2025 with no API support at all as of January 2026). It's possible SPN execution specifically has a bug or is still rolling out