Azure Synapse - SQL DW Copy Command doesn't support Source dataset type as 'JsonFormatV2'?

Jacob Wadowski 1 Reputation point
2022-08-08T19:10:08.477+00:00

Receiving the following error when attempting to copy JSON files to a SQL DB (dedicated pool) using the copy command in a copy data activity. Also ran into the issue when using an Azure Blob Storage linked service for the source dataset.

Source dataset: Azure Data Lake Storage Gen2
Sink dataset: Azure Synapse dedicated SQL pool

Error details:

{
"errorCode": "2200",
"message": "ErrorCode=UserErrorSqlDWCopyCommandError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=SQL DW Copy Command doesn't support Source dataset type as 'JsonFormatV2',Source=Microsoft.DataTransfer.ClientLibrary,'",
"failureType": "UserError",
"target": "<pipeline_name>",
"details": []
}

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,874 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,594 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AnnuKumari-MSFT 32,821 Reputation points Microsoft Employee
    2022-08-09T08:23:39.277+00:00

    Hi @Jacob Wadowski ,

    Welcome to Microsoft Q&A platform and thanks for posting your question.

    It seems you are trying to copy the data from JSON file loaded into ADLS gen2 to Dedicated SQL pool using Synapse pipelines. However, you are receiving the above mentioned error. Please let me know if my understanding is incorrect.

    I tried to repro your case but didn't find any issue loading JSON data into DedSQLPool. Could you please share your sample JSON data so that I can validate why it is being treated as JSONFormatV2 . Thanks in advance for your efforts.


  2. Pedro Paulo Vezza Campos 1 Reputation point Microsoft Employee
    2022-09-04T13:10:03.947+00:00

    Other folks may correct me but the only formats supported for copy into Dedicated SQL pool are CSV, Parquet and ORC.

    In your case, you could change your pipeline to first translate your JSON data to Parquet and then import the Parquet data into your SQL DB. Like so:

    Copy pipeline from JSON to Parquet to DW

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.