<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble doing SELECT OPENROWSET from JSON Lines file due to file extension in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Trouble-doing-SELECT-OPENROWSET-from-JSON-Lines-file-due-to-file/m-p/5130363#M4331</link>
    <description>&lt;P&gt;Found it.&amp;nbsp; I was using FORMAT = "JSON".&amp;nbsp; First, it should be single-quotes not double.&amp;nbsp; Second, it's JSONL.&amp;nbsp; So the syntax is OPENROWSET(BULK '/Files/Test1.json', FORMAT = 'JSONL').&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2026 22:13:31 GMT</pubDate>
    <dc:creator>Richtpt</dc:creator>
    <dc:date>2026-03-11T22:13:31Z</dc:date>
    <item>
      <title>Trouble doing SELECT OPENROWSET from JSON Lines file due to file extension</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Trouble-doing-SELECT-OPENROWSET-from-JSON-Lines-file-due-to-file/m-p/5130263#M4330</link>
      <description>&lt;P&gt;I have a bunch of files that are JSON Lines files.&amp;nbsp; I have imported the files into a Lakehouse in the Files section.&amp;nbsp; The files all have a ".json" extension.&amp;nbsp; I'm trying to use the SQL Endpoint to select * from a file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM OPENROWSET(BULK '/Files/Test1.json')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do this, I get&amp;nbsp;&lt;/P&gt;&lt;P&gt;Msg 15853, Level 16, State 20, Line 3&lt;BR /&gt;Invalid or unknown format type 'json'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the extension to ".jsonl" it works fine.&amp;nbsp; Is there a way to make this work with the ".json" extension?&amp;nbsp; I tried adding FORMAT="JSON" but that's not working, which could be me not understanding the syntax correctcly.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 18:38:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Trouble-doing-SELECT-OPENROWSET-from-JSON-Lines-file-due-to-file/m-p/5130263#M4330</guid>
      <dc:creator>Richtpt</dc:creator>
      <dc:date>2026-03-11T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble doing SELECT OPENROWSET from JSON Lines file due to file extension</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Trouble-doing-SELECT-OPENROWSET-from-JSON-Lines-file-due-to-file/m-p/5130363#M4331</link>
      <description>&lt;P&gt;Found it.&amp;nbsp; I was using FORMAT = "JSON".&amp;nbsp; First, it should be single-quotes not double.&amp;nbsp; Second, it's JSONL.&amp;nbsp; So the syntax is OPENROWSET(BULK '/Files/Test1.json', FORMAT = 'JSONL').&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 22:13:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Trouble-doing-SELECT-OPENROWSET-from-JSON-Lines-file-due-to-file/m-p/5130363#M4331</guid>
      <dc:creator>Richtpt</dc:creator>
      <dc:date>2026-03-11T22:13:31Z</dc:date>
    </item>
  </channel>
</rss>

