Forum Discussion

ech0's avatar
ech0
New Member
6 months ago
Solved

Error IPynbToPyFailure when downloading notebooks via Fabric API (fabricGitSource format)

Hi everyone,

I’m trying to download all notebooks from my Microsoft Fabric environment using the Fabric REST APIs with a Service Principal.

 

My environment contains around 600 notebooks. So far, I’ve been able to download about 480 of them without any issues. However, for the remaining notebooks, I’m getting the following error when retrieving their definitions via the LRO API:

 

{'errorCode': 'IPynbToPyFailure', 'message': '"Convert data from ipynb to py failed. Detail:IPynbToPy: convert fail.", BadRequest'}

 

What’s strange is that:

  • This only happens when I use the format=fabricGitSource parameter.

  • If I manually open the affected notebook in the Fabric UI and download it again, the download succeeds.

Has anyone experienced a similar issue before, or knows what could cause this conversion failure?

I couldn’t find any documentation or forum posts mentioning this error.

 

Any insights would be greatly appreciated.

Best Regards,

Victor

  • Hi ech0 

    Thanks for your question.

    Are all your notebooks of the same type (I.e. Spark, Python or T-SQL Analytics)? You error seems to stem from some weird metadata or hidden formatting in the notebooks which cannot be parsed into a .py file compatible with GIT. Try and compare some of the 200 failing notebooks with succeeding notebooks, perhaps you will find some pattern - could be either large encoded images, special charecters or perhaps the notebooks stem from another platform (synapse, databricks etc.) which might save some metadata to them which is not supported in Fabric.

     

    Br Asger

3 Replies

  • Hi ech0 

    Thanks for your question.

    Are all your notebooks of the same type (I.e. Spark, Python or T-SQL Analytics)? You error seems to stem from some weird metadata or hidden formatting in the notebooks which cannot be parsed into a .py file compatible with GIT. Try and compare some of the 200 failing notebooks with succeeding notebooks, perhaps you will find some pattern - could be either large encoded images, special charecters or perhaps the notebooks stem from another platform (synapse, databricks etc.) which might save some metadata to them which is not supported in Fabric.

     

    Br Asger

    • v-menakakota's avatar
      v-menakakota
      Community Support

      Hi ech0 

      Thanks for reaching out to the Microsoft fabric community forum. 

       

      I would also take a moment to thank  AsgerLB   , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

      I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you 

       

      Best Regards, 
      Community Support Team  

      • v-menakakota's avatar
        v-menakakota
        Community Support

        Hi ech0 ,

        I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you

         

        Best Regards, 
        Community Support Team