Forum Discussion
gerardotrejogcg
Helper I
1 year agoSuddenly lost access to a shortcut from a Notebook
I have a shortcut in the Lakehouse that I’m able to access to manually. It was implemented a notebook that reads the shortcut and the last successfully processed folder was “2025-02-1...
- 1 year ago
I did not find the permission issue. I just changed the way to read the file
try:df = spark.read.option("multiline", "true").json(schema_file)json_data = df.toJSON().collect()schema = json.loads(json_data[0]) # Convert first row to a dictionaryexcept Exception as e:print(f"Error reading model.json: {e}")return {}
gerardotrejogcg
Helper I
1 year agoI just checked and looks like everything is ok. The error I have in the notebook is "IPython won't let you open fd={file} by default as it is likely to crash IPython. If you know what you can use builtins' open."
I'm trying to read this location
schema_file = f"/lakehouse/default/{synapse_link_shortcut_path}/{synapse_link_environment}/{folder}/model.json"
PermissionError: [Errno 1] Operation not permitted: '/lakehouse/default/Files/synapse_link/dataverse-ssmprod-unqcXXXXXXXXXXXXXX/2024-09-10T22.28.32Z/model.json'
PermissionError: [Errno 1] Operation not permitted: '/lakehouse/default/Files/synapse_link/dataverse-ssmprod-unqcXXXXXXXXXXXXXX/2024-09-10T22.28.32Z/model.json'