Forum Discussion
Intermittent issues with accessing files over ADLSv2 shortcut using "File API path" from a notebook
- 1 year ago
Hello 1569hypernova
path = mssparkutils.fs.getMountPath("/your_shortcut_path")
files = mssparkutils.fs.ls(path)
Please check if this working for you.
Not officially known issue but other user have reported similar type of issue
https://www.reddit.com/r/MicrosoftFabric/comments/1ff5vd9/anyone_else_having_intermittent_errors_with/Please accept the answer if this is helpful and give kudos
Thanks
Hi 1569hypernova ,
Thank you for sharing your workaround. While your approach works well, we suggest considering a more efficient retry mechanism using Exponential Backoff.
- Instead of retrying at fixed intervals you can gradually increase the wait time between retries ( 5s → 10s → 20s → 40s).
- This method reduces unnecessary delays and enhances reliability when accessing the shortcut.
- It also incorporates a maximum retry limit to prevent infinite loops.
- If the shortcut remains inaccessible, please check permissions, cluster initialization, and the sync timing of the Synapse Link.
If my answer addressed your query, please mark it as the Accepted Solution so that others can easily find the solution. I would also appreciate a 'Kudos' if you found my response helpful.