<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nested notebooks calls: Cannot identify Lakehouse files from child notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4692124#M9284</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thank you for the suggestions. I did more exploration based on all the recommendations and got this worked.&lt;/P&gt;&lt;P&gt;The changes made&lt;/P&gt;&lt;P&gt;1. Made use of&amp;nbsp;&lt;SPAN&gt;notebookutils to do nested notebook calls and lakehouse file operations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. File path was changed to&amp;nbsp; Relative path for Spark starting from File/ in all notebookutils methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Changed file related operations with spark commands like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; spark.read.format("xml").option("rowTag","data").load(filepath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;df.write.format("parquet").load(save file)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 09:05:40 GMT</pubDate>
    <dc:creator>prathijp</dc:creator>
    <dc:date>2025-05-14T09:05:40Z</dc:date>
    <item>
      <title>Nested notebooks calls: Cannot identify Lakehouse files from child notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4686454#M9179</link>
      <description>&lt;P&gt;I have notebook named NB_Orchestrate with the below call to another another notebook.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;mssparkutils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;notebook&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;NB_xmlToParquet&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;300&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"xml_data_pathRef"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;dataRef&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"xml_struct"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;dataParseCodeRef&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"saveParsedFile"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;saveParsedFile&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The child note book&amp;nbsp;NB_xmlToParquet has the below code. When I execute the child note separately I am able to read the xml file and create the parquet file. But executed from the parent notebook it is throwing the below error. I tried with both relative filepath and abfs filepath&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FileNotFoundError: [Errno 2] No such file or directory: ''You can check driver log or snapshot for detailed error info! See how to check logs: &lt;A href="https://go.microsoft.com/fwlink/?linkid=2157243" target="_blank" rel="noopener"&gt;https://go.microsoft.com/fwlink/?linkid=2157243&lt;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&gt;&lt;SPAN&gt;exist_ok&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;# Save the DataFrame to Parquet format&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;to_parquet&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;saveParsedOuput&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 May 2025 10:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4686454#M9179</guid>
      <dc:creator>prathijp</dc:creator>
      <dc:date>2025-05-09T10:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested notebooks calls: Cannot identify Lakehouse files from child notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4686565#M9182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1269548" data-lia-user-login="prathijp" class="lia-mention lia-mention-user"&gt;prathijp&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;my guess would be that the functions from os library used for interacting with the file system in Fabric do not work when running the notebook from a separate one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd advice to use the notebookutils library instead of os to achieve the same. Here's the&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities" target="_self"&gt;documentation&lt;/A&gt;&amp;nbsp;. You will see that all functions you need are available in the library as well, for instance&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="terminal,monaco"&gt;notebookutils.fs.mkdirs&lt;/FONT&gt; instead of&amp;nbsp;&amp;nbsp;&lt;FONT face="terminal,monaco"&gt;os.makedirs.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Addtionally, I'd use &lt;FONT face="terminal,monaco"&gt;df.write.format("parquet").load(file_destination) &lt;FONT face="helvetica"&gt;instead. However, the error seems to occur with the directory, therefore the above would be the first thing I'd try to amend.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;FONT face="terminal,monaco"&gt;&lt;FONT face="helvetica"&gt;Hope this helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 11:47:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4686565#M9182</guid>
      <dc:creator>ObungiNiels</dc:creator>
      <dc:date>2025-05-09T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nested notebooks calls: Cannot identify Lakehouse files from child notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4686933#M9192</link>
      <description>&lt;P&gt;Thank you OungiNeils&lt;/P&gt;&lt;P&gt;I have made the below changes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;if notebookutils.fs.exists(xml_data_path):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tree&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ET&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;parse&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;xml_data_path&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;root&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tree&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getroot&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;notebookutils&lt;/SPAN&gt;&lt;SPAN&gt;.notebook.run(NB_xmlToParquet,300,"xml_data_path":dataRef,"xml_struct":dataParseCodeRef,"saveParsedFile":saveParsedFile})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I print the variable I can see the filepath. However the notebook execution is throwing the below error:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;&lt;SPAN&gt;: An error occurred while calling o6443.throwExceptionIfHave. : com.microsoft.spark.notebook.msutils.NotebookExecutionException: Can not create a Path from an empty string ---------------------------------------------------------------------------IllegalArgumentException Traceback (most recent call last)Cell In[6], line 8&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 May 2025 17:17:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4686933#M9192</guid>
      <dc:creator>prathijp</dc:creator>
      <dc:date>2025-05-09T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nested notebooks calls: Cannot identify Lakehouse files from child notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4688569#M9215</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1269548" data-lia-user-login="prathijp" class="lia-mention lia-mention-user"&gt;prathijp&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for using Microsoft Fabric Community,&lt;/P&gt;
&lt;P&gt;Thanks for the update.&lt;/P&gt;
&lt;P&gt;Just a quick clarification on the usage of notebookutils.notebook.run(): when passing parameters, please make sure to provide them as a single dictionary object. The syntax you're currently using is interpreted incorrectly and can result in empty values being passed to the child notebook, which leads to the IllegalArgumentException you're seeing.&lt;/P&gt;
&lt;P&gt;Corrected syntax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;notebookutils.notebook.run(
NB_xmlToParquet,
300,
{
"xml_data_path": dataRef,
"xml_struct": dataParseCodeRef,
"saveParsedFile": saveParsedFile
}
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Also, ensure that you're reading the parameters in the child notebook using:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;xml_data_path = notebookutils.notebook.get_context().notebook_param("xml_data_path")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This should help ensure the file path is passed and recognized correctly during execution.&lt;/P&gt;
&lt;P&gt;Let us know if you’re still seeing issues after updating the syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="729364" data-lia-user-login="ObungiNiels" class="lia-mention lia-mention-user"&gt;ObungiNiels&lt;/a&gt;&amp;nbsp;for your valuable response.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps. Please reach out for further assistance.&lt;BR /&gt;If this post helps, then please consider&amp;nbsp;to Accept as the solution to help the other members find it more quickly and a kudos would be appreciated.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 07:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4688569#M9215</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-05-12T07:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nested notebooks calls: Cannot identify Lakehouse files from child notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4690488#M9262</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the below to retrieve the parameters.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;xml_data_pathNB&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;notebookutils&lt;/SPAN&gt;&lt;SPAN&gt;.notebook.get_context().notebook_param(&lt;/SPAN&gt;&lt;SPAN&gt;"xml_data_path"&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However the method doesnot seem to be available -&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3 from datetime import datetime 4 import os ----&amp;gt; 6 xml_data_pathNB = &lt;STRONG&gt;&lt;EM&gt;notebookutils.notebook.get_context().notebook_param("xml_data_path") 7 removeFolderHeader = "" 8 xml_data_pathRef = "file:" + xml_data_pathNB.replace(removeFolderHeader,"") AttributeError: module 'notebookutils.notebook' has no attribute 'get_context'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But by removing the empty variable assignment I am able to get the parameters in the child notebook. However the file doesnot seem to be accessible.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;xml_data_pathRef:   Files/Landing/CTC_SM.xml&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;[Errno 2] No such file or directory: 'Files/Landing/CTC_SM.xml' ---------------------------------------------------------------------------FileNotFoundError Traceback (most recent call last)Cell In[5], line 13 10 saveParsedFile = saveParquetFile.replace(removeFolderHeader,"") 12 if xml_struct == "xml_struct_01": ---&amp;gt; 13 xml_struct_01(xml_data_pathRef,saveParsedFile) Cell In[4], line 11, in xml_struct_01(xml_data_pathRef, saveParsedFile) 7 notebookutils.fs.head(xml_data_pathRef, 3000) 8 # Read the XML file content ---&amp;gt; 11 with open(xml_data_pathRef, "r", encoding="utf-8") as file: 12 xml_data = file.read() 14 # Parse XML 15 #root = ET.fromstring(xml_data)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Again if I use the below code I am able to view the content of the file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;notebookutils.fs.head(&lt;SPAN&gt;xml_data_pathRef&lt;/SPAN&gt;, 3000)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 May 2025 09:53:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4690488#M9262</guid>
      <dc:creator>prathijp</dc:creator>
      <dc:date>2025-05-13T09:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nested notebooks calls: Cannot identify Lakehouse files from child notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4692124#M9284</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thank you for the suggestions. I did more exploration based on all the recommendations and got this worked.&lt;/P&gt;&lt;P&gt;The changes made&lt;/P&gt;&lt;P&gt;1. Made use of&amp;nbsp;&lt;SPAN&gt;notebookutils to do nested notebook calls and lakehouse file operations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. File path was changed to&amp;nbsp; Relative path for Spark starting from File/ in all notebookutils methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Changed file related operations with spark commands like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; spark.read.format("xml").option("rowTag","data").load(filepath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;df.write.format("parquet").load(save file)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 09:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Nested-notebooks-calls-Cannot-identify-Lakehouse-files-from/m-p/4692124#M9284</guid>
      <dc:creator>prathijp</dc:creator>
      <dc:date>2025-05-14T09:05:40Z</dc:date>
    </item>
  </channel>
</rss>

