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 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 dictionary
except Exception as e:
print(f"Error reading model.json: {e}")
return {}
Anonymous
1 year agoNot applicable
Hi gerardotrejogcg ,
Just to confirm, are you saying that the issue is resolved with the new reading method, or are you still facing an error? If it's resolved, please accept it as a solution. It will be helpful for other members of the community who have similar problems as yours to solve it faster.
Thank you.