How to fix error Failed to import source schema. Sequence contains no matching element in Azure Data Factory
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 2
Image 3