Forum Discussion

santh00's avatar
santh00
Frequent Visitor
2 years ago
Solved

Notebook Session Issue

I have a notebook in my Microsoft Fabric Synapse Data Engineering environment. Whenever I run the notebook after a period of inactivity, it throws an error with a standard session. However, if I run it with a high concurrency session, it does not throw an error. How can I overcome this issue so that running it after a period of inactivity with a standard session does not result in an error? Is it possible to achieve this?

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi santh00 ,

    Thanks for using Fabric Community.

    There are a few ways you might be able to overcome the error you're encountering

    1. Check for Connection Timeouts: Standard sessions might have lower connection timeouts compared to high concurrency sessions.

    2. Refresh Connections: Another possibility is that the notebook loses its connection to external resources during inactivity. You can try adding a code block at the beginning of your notebook that refreshes the connections before running the main logic

    Hope this is helpful. Please do let me know incase of further queries.

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi santh00 ,

    Thanks for using Fabric Community.

    There are a few ways you might be able to overcome the error you're encountering

    1. Check for Connection Timeouts: Standard sessions might have lower connection timeouts compared to high concurrency sessions.

    2. Refresh Connections: Another possibility is that the notebook loses its connection to external resources during inactivity. You can try adding a code block at the beginning of your notebook that refreshes the connections before running the main logic

    Hope this is helpful. Please do let me know incase of further queries.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi santh00 ,

      We haven’t heard from you on the last response and was just checking back to see if your query was answered.
      Otherwise, will respond back with the more details and we will try to help .

      Thanks

      • santh00's avatar
        santh00
        Frequent Visitor

        Hi Anonymous, 

        How to I add a code block to refresh connection can you give me a example.