skip to Main Content

I am using the below code to get some information in the Azure Databricks notebook, but runOutput isn’t appearing even after the successful completion of the notebook activity.

Code that I used.

import json
dbutils.notebook.exit(json.dumps({
    "num_records" : dest_count,
    "source_table_name" : table_name
}))

Databricks notebook exited properly, but Notebook activity isn’t showing runOutput.

Can someone please help me what is wrong here?

enter image description here

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I am not sure why it is not populating runOuput. Basically, I need to get number of records it is pushing to Azure Synapse, So I have used Lookup Activity to get the Number of records in that table.


  2. When I tried the above in my environment, it is working fine for me.

    These are my Linked service Configurations.

    enter image description here

    enter image description here

    Result:

    enter image description here

    I suggest you try the troubleshooting steps like, changing Notebook and changing the Databricks workspace with new one or using Existing cluster in linked service.

    If still, it is giving the same, then it’s better to raise a Support ticket for your issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search