Copy data from MySQL database to Synapse Serverless pool Error

SoonJoo@Genting 241 Reputation points
2021-11-12T04:24:10.52+00:00

Hi all,

I am trying to copy data from MySQL server to Azure Synapse Serverless Pool, I've set up the mapping of the tables but I'm getting the following error when I try to execute the pipeline:

{
"errorCode": "2200",
"message": "ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'Incorrect syntax near 'HEAP'.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Incorrect syntax near 'HEAP'.,Source=.Net SqlClient Data Provider,SqlErrorNumber=102,Class=15,ErrorCode=-2146232060,State=1,Errors=[{Class=15,Number=102,State=1,Message=Incorrect syntax near 'HEAP'.,},],'",
"failureType": "UserError",
"target": "Copy_npk",
"details": []
}

May I know what is the problem? Or anything I've missed out?

Thanks!

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,917 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,086 Reputation points
    2021-11-12T20:37:13.157+00:00

    Hello @SoonJoo@Genting and welcome to Microsoft Q&A.

    By any chance, is one of your columns or tables named "HEAP"? I would imagine getting this error message if "HEAP" was a reserved keyword like "SELECT". In such a case, you need merely escape or quote the name like "[HEAP]". FYI, I'm not certain whether "HEAP" is part of MySQL language or not.


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.