Forum Discussion

NotebookEnjoyer's avatar
NotebookEnjoyer
Icon for Advocate II rankAdvocate II
1 year ago
Solved

Links to nested notebook snapshots not loading

I have notebooks in which I run multiple other notebooks via mssparkutils.notebook.run(), which works fine. However, when I want to see snapshots of the sub-runs, the links aren't loading in the top-level snapshot, which looks like this:

(Don't mind the printed stuff, that's from me.)

What can I do?

  • NotebookEnjoyer's avatar
    NotebookEnjoyer
    1 year ago

    I'm sorry to have no better answer, but the issue disappeared yesterday. It takes quite a while to load the fancier new snapshot link layout with the progress bar and such, but it just works. The ticket is thus closed.

10 Replies

  • v-saisrao-msft's avatar
    v-saisrao-msft
    Icon for Community Support rankCommunity Support

    Hi NotebookEnjoyer,

    Thank you for the clarification. Since the snapshot links for mssparkutils.notebook.run() were working earlier and have recently stopped, this could be due to a platform-level regression.

    I recommend raising a support ticket with Microsoft Fabric Support for deeper investigation, as they can access backend logs and confirm if any recent updates have impacted this functionality.

    How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

     

    Thank you.

    • v-saisrao-msft's avatar
      v-saisrao-msft
      Icon for Community Support rankCommunity Support

      Hi NotebookEnjoyer,

      Could you let us know if you have submitted a support ticket to address the issue? If the issue has been resolved, please share your insights, as it could benefit others in the community.

       

      Thank you.

      • NotebookEnjoyer's avatar
        NotebookEnjoyer
        Icon for Advocate II rankAdvocate II

        I have submitted a ticket and will post an update if anything comes of it.

  • This is not possible to get the snapshots of sub-runs. The correct way is to run with mssparkutils.notebook.run().

    • NotebookEnjoyer's avatar
      NotebookEnjoyer
      Icon for Advocate II rankAdvocate II

      I think you're missing the point. I AM running the notebooks with mssparkutils.notebook.run(), and seeing the snapshots of these delegated runs worked fine until one or two months ago.

      Like this:

       

  • I think you have to understand that Microsoft is constantly updating the documentation. First, I think so before a year ago, there was bronze, silver and gold. Now they change the silver to Materialized views. 

     

    Choose beforehand, whether you wanna to go to notebooks or dataflow gen 2 to refresh the  tables or multiple notebooks with 

    # Note: NotebookUtils is only supported on runtime v1.2 and above. If you are using runtime v1.1, please use mssparkutils instead.
    DAG = {
        "activities": [
            {
                "name": "NotebookSample", # activity name, must be unique
                "path": "NotebookSample", # notebook path
                "timeoutPerCellInSeconds": 90, # max timeout for each cell, default to 90 seconds
                "args": {"p1": "changed value", "p2": 666}, # notebook parameters
            },
            {
                "name": "NotebookSimple2",
                "path": "NotebookSimple2",
                "timeoutPerCellInSeconds": 120,
                "args": {"p1": "changed value 2", "p2": 777}
            },
            {
                "name": "NotebookSample2.2",
                "path": "NotebookSample2",
                "timeoutPerCellInSeconds": 120,
                "args": {"p1": "changed value 3", "p2": 888},
                "retry": 1,
                "retryIntervalInSeconds": 10,
                "dependencies": ["NotebookSample"] # list of activity names that this activity depends on
            }
        ]
    }

    notebookutils.notebook.runMultiple(DAG)
     
    For thaqt, you have to understand the concept of databricks delta lake and Microsoft.