How to convert Excel file data saved in BLOB to CSV file for each sheet with synapse

NishimuraChinatsu-9854 756 Reputation points
2022-06-09T01:44:33.2+00:00

How to convert Excel file data saved in BLOB to CSV file for each sheet with synapse
Plase let me know how to do it.

Is it created by the notebook activity of the synapse pipeline?
Can macro-enabled excel files be converted to csv with synapse?

Ideally, I want to save to blob (xlsm)-> csv conversion-> data lake storage GEN2

I used to work with local Python, but I would like to move to Azure synapse. I'm studying Azure, but it's a little difficult.

よろしくお願いいたします。

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,559 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
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.
5,373 questions
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,236 Reputation points
    2022-06-09T18:59:24.54+00:00

    Hello @NishimuraChinatsu-9854 and welcome to Microsoft Q&A.

    I see the ask is mainly about how to convert excel (xlsx) in blob storage to csv in Data Lake Gen 2, and some of the related specifics.

    Yes, Synapse can change excel to csv.

    Is it created by the notebook activity of the synapse pipeline?

    Generally, no, but you could do it with notebook activity, it would be more work. There is a Databricks Notebook activity and Synapse Notebook activity. Both are used to run spark, which involves writing code. Probably not what you are looking for. The notebooks can run Pyspark, which is like running python on top of spark.

    You would be better off using Copy Activity, with source dataset Azure Blob > Excel format, and sink dataset Azure Data Lake Gen 2 > Delimited Text format.

    Can macro-enabled excel files be converted to csv with synapse?

    This is a harder question. To be absolutely sure, I will have to make a macro enabled file and try it out. The documentation does not mention macros. I expect the "hard written" data will be transferred fine, but anything calculated at run time by macros will be ignored.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.