Share via

Unexpected Error in Azure Synapse Analytics

Kakehi Shunya (筧 隼弥) 201 Reputation points
2023-01-21T13:06:07.97+00:00

Hi.

I created a pipeline to copy data from Excel to Parquet, but I got unexpected error.

The error message is :

[Copy behavior must be "Merge files" when sink is a file and source is a folder or specifies wildcard file name, wildcard folder path or file filter.]

However, I set both source and sink are a file.

User's image

User's image

It is so weird, and I am very confused.

Can someone please help me??

I look forward to your answer.

Thank you.

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.


1 answer

Sort by: Most helpful
  1. Subashri Vasudevan 11,306 Reputation points Volunteer Moderator
    2023-01-22T08:43:12.82+00:00

    Hi @Kakehi Shunya (筧 隼弥) in your source you have mentioned wildcard folder path and file path. When we use wildcard, it means that, there can be one or more matches corresponding to the wild card mentioned. For example, in the folder path, if you mention raw* there can be many many matches like raw1, raw_final etc. So it expects us to use merge in the sink. In order to avoid this issue, you either need to mention the folder path and file path in the data set itself, not under the source tab. Or else you need to use merge in the copy behaviour.

    Was this answer helpful?

    1 person found this answer helpful.

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.