ADF Not Passing Parameters to Databricks Job as Expected

Dima Frank 0 Reputation points
2025-05-19T09:20:50.2733333+00:00

Hello,

I'm encountering an issue where Azure Data Factory (ADF) does not seem to pass parameters correctly to a Databricks job.

Here's the situation:

  • I have an ADF pipeline that uses the "Databricks Job activity to trigger a Databricks job.
  • I am passing a parameter called entity_name in the jobParameters section of the ADF activity JSON, like so:
    User's image

User's image

On the Databricks side, the job has:

  • A defined job parameter named entity_name with a default value. User's image
  • Despite this setup:
    • The job starts, but the parameter does not appear to be passed through.
    • I see the default value in the “Run parameters” on the Databricks run page.
    • User's image Is there a required setting in either ADF or Databricks that ensures parameters are correctly passed and resolved? Thanks in advance for your help. Best regards,
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,525 questions
{count} votes

1 answer

Sort by: Most helpful
  1. J N S S Kasyap 3,780 Reputation points Microsoft External Staff Moderator
    2025-05-19T10:08:22.2233333+00:00

    Hi @Dima Frank

    Is there a required setting in either ADF or Databricks that ensures parameters are correctly passed and resolved?

    There are required settings in both ADF and Databricks to ensure that parameters are correctly passed and resolved. These settings must align on both sides for parameter passing to work.

    The parameter name in ADF (entity_name) must exactly match the widget name in Databricks notebook should be case-sensitive.

    dbutils.widgets.text("entity_name", "")
    entity_name = dbutils.widgets.get("entity_name")
    
    

    Please refer the below Microsoft document for more information
    https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-databricks-notebook

    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.