Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Binit17
Regular Visitor

While configuring notebook session from datafactory pipeline, pipeline notebook activity fails

I am following the fabric documentation to configure lakehouse on notebook from pipeline but getting error Configuration should be valid json object. I see an escape character has been added to the parameter that i am passing.

https://learn.microsoft.com/en-in/fabric/data-engineering/author-execute-notebook#parameterized-sess...

image.jpg

image.jpg

image.jpg

6 REPLIES 6
Binit17
Regular Visitor

I realized if we use the same %%configure command in interactive mode we get the attached error as well

image.jpg

Anonymous
Not applicable

Hi @Binit17 ,

Thanks for using Fabric Community.
It looks like issue is with the child nodes and for defaultLakehouse is name, id and workspaceId.
You cannot use parameter name and defaultvalue along with defaultLakehouse.

I would like to understand what you are trying to achieve? So that I can guide you better.

vgchennamsft_0-1710314741719.png


For example -

%%configure  

{ 
    "driverCores": 
    { 
        "parameterName": "driverCoresFromNotebookActivity", 
        "defaultValue": 4 
    }
}

 
Docs to refer - Develop, execute, and manage notebooks - Microsoft Fabric | Microsoft Learn

Hope this is helpful. Please let me know incase of further queries.

Hi @Anonymous , 


I saw in the fabric documentation that these configurations can be passed from the pipeline to the notebooks. I have a situation where i have multiple lakehouse in a workspace and i want to execute a notebook to create tables in different lakehouse from a single notebook. For this i want to pass the lakehouse as a parameter from pipeline to notebook so it sets the default lakehouse as per input parameter and create tables in appropriate lakehouses. 

Anonymous
Not applicable

Hello @Binit17 

Apologies for the delay in reply from our side.


You can follow below step inorder to pass them as pipeline parameters -

In Pipeline:

vgchennamsft_0-1710397890452.png


In Notebook:

vgchennamsft_1-1710398083707.png

 

%%configure  

{ 
    "defaultLakehouse": {  // This overwrites the default lakehouse for current session
        "name": {
      "parameterName": "paramterName",
      "defaultValue": "gopi_lake_house_1"
        } ,
        "id": {
      "parameterName": "parameterId",
      "defaultValue": "7b6de"
        } 
    }
}


Output -

vgchennamsft_2-1710398154620.png


Hope this is helpful. Please let me know incase of further queries.



Anonymous
Not applicable

Hello @Binit17 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
Otherwise, will respond back with the more details and we will try to help .

Anonymous
Not applicable

Hi @Binit17 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
Otherwise, will respond back with the more details and we will try to help .

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.