Synapse Notebooks %run failed: MagicUsageError ...Exception: Failed to get notebook artifact

Naveen Kumar 0 Reputation points
2024-01-16T08:20:00.31+00:00

My notebooks calls other notebooks using the magic run (%run) command. Since today it stopped working with error:

MagicUsageError: Cannot read notebook abc/test_nb. The possible reason is that the notebook doesn't exist. More details please visit https://go.microsoft.com/fwlink/?linkid=2173018 --> Exception: Failed to get notebook artifact abc/test_nb. Reason: Not found.

All referenced notebooks are published and enabled unpublished notebook references. Been working all this while, and just today gives this error. Configuration shown in image.

User's image

Similar incident around this error references to fix, which has been done

https://learn.microsoft.com/en-us/answers/questions/1374721/synapse-notebooks-run-failed-magicusageerror-reaso

Any thoughts/ideas would be big help !

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2024-01-18T23:41:10.8133333+00:00

    Hello Naveen Kumar,

    Thanks for the above details. Can you please double check if the referenced notebook is published?

    from the below synapse feedback items, Synapse doesn’t support unpublished notebook reference in pipeline scenarios

    User's image

    1. If the notebook is being pulled from Git repo, if yes then the behavior is expected.
    2. Please refer to table in [How to use Synapse notebooks - Azure Synapse Analytics | Microsoft Learn] https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-development-using-notebooks#reference-unpublished-notebook and see if you are meeting the conditions

    https://feedback.azure.com/d365community/idea/2cad0a50-f27a-ed11-a81b-000d3ae49307 https://feedback.azure.com/d365community/idea/357b09be-fcef-ed11-a81c-000d3a7a9cdb https://feedback.azure.com/d365community/idea/4db7723f-aa64-ee11-a81c-000d3ae5ae95

    0 comments No comments

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.