I have SQL table with Attachment data in varbinary. I want to export it to binary file in ADLS. But getting error "Source must be binary when sink is binary dataset"

Yogesh Nikam 1 Reputation point
2022-12-09T07:37:42.597+00:00

Please suggest alternate solution if someone has done before.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2022-12-12T08:53:26.643+00:00

    Hi @Yogesh Nikam ,

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

    Above error will come, when you source dataset format is not binary but sink dataset format is binary.

    In your case, your source data is SQL table, so might have used SQL dataset which is pointing to your table. Hence, you cannot use binary format as sink dataset type. Kindly use different format type depending on type of file(csv, parquet etc..,)

    Below are file format types you can choose. except binary in this case.
    269552-image.png
    Please note, in above if you want to generate file with extension .txt then inside dataset filename filed explicitly use file name .txt

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

    ---------------

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


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.