Forum Discussion

gerardotrejogcg's avatar
1 year ago
Solved

Suddenly 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...
  • gerardotrejogcg's avatar
    gerardotrejogcg
    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 dictionary
        except Exception as e:
            print(f"Error reading model.json: {e}")
            return {}