Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
samedwalker50
Regular Visitor

fabric inserting code snippet is not supported on this file type

Hey EveryOne,

I am having problems reading the json files in the lakehouse after passing a json through an API.

I get this error anytime i try previewing the json file. inserting code snippet is not supported on this file type.

Any help would be deeply grateful.

1 ACCEPTED SOLUTION
samedwalker50
Regular Visitor

Sorry for not responding quickly enough. Yes, I implemented the solution and it worked for me. Thanks for sharing. By the way I am open to helping out in projects if you its available

View solution in original post

3 REPLIES 3
samedwalker50
Regular Visitor

Sorry for not responding quickly enough. Yes, I implemented the solution and it worked for me. Thanks for sharing. By the way I am open to helping out in projects if you its available

v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @samedwalker50 

 

Thanks for using Microsoft Fabric Community.

 

The error message "inserting code snippet is not supported on this file type" indicates that the preview functionality in Microsoft Fabric Lakecouse doesn't allow embedding code snippets within JSON files.

  • Download and View Locally: Download the JSON file from Lakecouse and open it in a text editor or JSON viewer on your local machine. These tools are specifically designed to display code and formatted data clearly.
  • Preview as Text: If a dedicated JSON viewer isn't available, try previewing the file as plain text. This might not provide a formatted view, but you'll still be able to see the raw JSON content.

 

Following are the reasons that might be encountering issues while previewing JSON files in the Microsoft Fabric lakehouse after passing data through an API.

  • Verify format settings: Make sure the format settings in your Data Pipeline's Copy Activity are correct. Ensure "JSON" is selected as the format type.
  • Check for incompatible characters: Previewing might not work if the JSON file contains special characters that the previewer can't handle. You can try opening the file in a text editor to confirm if there are any non-standard characters.
  • Data Pipeline configuration: If you're using a Notebook activity to transform the JSON file before saving it to the lakehouse table, double-check the code for any errors. Ensure it's properly parsing and formatting the JSON data.

Please refer this documentation for additional information : Microsoft Fabric – writing JSON data into a Lakehouse table – Random Procrastination (gosbell.com)

 

I hope this information helps. Please do let us know if you have any further queries.

 

Thank you.

Hi @samedwalker50 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.
In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thanks.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.