Azure Data Factory: Copy Data Activity: "Schema import failed: Please select a table"

Bhargav 10 Reputation points
2024-06-22T10:16:15.37+00:00

Hello!

I am pretty new to Azure Data Factory and trying to build my first data pipeline.
So far, I have managed to install an integration run time in my PC and established a connection to the on prem SQL server. I have tested the connection and it says successful.
In the copy table activity, I could see all the tables in the database and after selecting a table and clicking ok, it throws an error saying that

"Schema import failed: Please select a table".
I am stuck here. What possibily could have gone wrong here and how can I address this error?
User's image

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,203 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,018 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Smaran Thoomu 12,100 Reputation points Microsoft Vendor
    2024-06-24T04:42:59.4133333+00:00

    Hi @Bhargav
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .
    Ask: I am pretty new to Azure Data Factory and trying to build my first data pipeline. So far, I have managed to install an integration run time in my PC and established a connection to the on prem SQL server. I have tested the connection and it says successful. In the copy table activity, I could see all the tables in the database and after selecting a table and clicking ok, it throws an error saying that

    "Schema import failed: Please select a table". I am stuck here. What possibily could have gone wrong here and how can I address this error? User's image

    Solution: This is a bit strange but I have tried selecting 'None' radio button in import schema and click OK and then go to the source menu in the copy data activity, click 'open' and then it gave me the option to select table. For some reason, selecting table worked here seamlessly. I have checked this by clicking on 'preview data'. It has now imported the Schema of the table as well.
    I will leave this thread open to see if any one can shed some light on why this error occured. Thank you.

    User's image

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.

  2. Arabaj Shaikhh 0 Reputation points
    2024-06-28T22:24:33.49+00:00

    1)I will suggest you to select "none" option for "import schema" and create Azure SQL dataset first in below way.

    Screenshot 2024-06-29 034553

    1. then go to your created dataset and select the table in below way.Screenshot 2024-06-29 035045

    This should help.

    0 comments No comments