Share via

Synapse Copy Activity error: CREATE TABLE dbo is not supported

Mateo Estrada Bazan 86 Reputation points
2023-01-09T14:35:45.523+00:00

Hello everybody!
I am having trouble using the Table Option named Auto Create Table on a Copy Data activity.
The source I use is a REST API which can be requested correctly, and actually data can be previewed normally.
However, even though I count with every permission available (including blob storage contributor), the following message is received after Debug given the settings of Sink section of Copy Data:

{
"errorCode": "2200",
"message": "ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'CREATE TABLE dbo is not supported.',Source=,''Type=System.Data.SqlClient.SqlException,Message=CREATE TABLE dbo is not supported.,Source=.Net SqlClient Data Provider,SqlErrorNumber=15868,Class=16,ErrorCode=-2146232060,State=5,Errors=[{Class=16,Number=15868,State=5,Message=CREATE TABLE dbo is not supported.,},],'",
"failureType": "UserError",
"target": "From API to Data Lake",
"details": []
}

Below I attach screenshots of the Copy Data settings. I use Azure SQL Database as our Sink dataset, and the same for Linked Service. Even though we create a table beforehand, the process does not work. Given that I wish to use the Serverless SQL pool, are there any suggestions or alternatives for this pipeline to work properly?

277474-screenshot-from-2023-01-09-11-23-09.png

277505-screenshot-from-2023-01-09-11-23-49.png

Thanks in advance for your time!

Azure SQL Database
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.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

2 answers

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,636 Reputation points Microsoft Employee Moderator
    2023-01-10T08:30:49.043+00:00

    Hi @Mateo Estrada Bazan ,

    Thank you for posting query in Microsoft Q&A Platform.

    If you are using Azure SQL database here, then may be dbo schema is missing in your database and resulting in this error. Kindly validate same. If you are using server less SQL pool, then its not possible to create tables there. You can have external tables in server less SQL pools.

    External tables actually don't store data themself, them actually query underlying file from storage. So you can consider storing your API data as file on ADLS storage and have external table on top of it.

    Kindly check below to understand about serverless sql pool and external tables. [Server less SQL Pool Overview in Azure Synapse Analytics][1] [External Tables with Synapse SQL in Azure Synapse Analytics][2]

    Hope this helps. Please let me know if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.

    Was this answer helpful?

    1 person found this answer helpful.

  2. hijesh vl 16 Reputation points
    2023-01-09T15:31:22.787+00:00

    hi,

    I could be a permission issue. 3 things you might need to check

    1. make sure there are no extra spaces after the 'dbo'
    2. check if a table of the same name already exists.
    3. Check if the user you have used to create the linked service has sufficient permissions to create a table in dbo schema.

    Thanks
    Hijesh

    Was this answer helpful?

    0 comments No comments

Your answer

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