How to fix error Failed to import source schema. Sequence contains no matching element in Azure Data Factory

Kaz 0 Reputation points
2024-02-22T09:07:46.86+00:00

Hi everyone,

I encountered an error when importing schemas in Copy Activity in Azure Data Factory. I am trying to get the converted value from Salesforce and load it into Azure SQL Database using Copy Activity. I have done this many times before, but after updating to the new connector for Copy Activity, which supports OAuth authentication on Bulk API 2.0 for both source and sink, I got the error Failed to import source schema. Sequence contains no matching element. I tried calling the query using Bulk API 2.0 via Postman, and the Postman returned the result I wanted. I believe there may be a bug in the update. Has anyone else encountered this issue and solved it? Any help would be appreciated!

Here are the steps I followed: I put this query SELECT convertCurrency(Amount) Amount_Converted From Opportunity at the Source tab (see Image 1).

At the Sink tab (see Image 2), I created a table named Opportunity with a column Amount_Converted.

At the Mapping tab (see Image 3), I clicked the button Import Schemas and received the error Failed to import source schema. Sequence contains no matching element. Image 1
image 1 Image 2 User's image

Image 3 User's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

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.