@Alivia Banerjee Welcome to Microsoft Q&A platform and thanks for posting your question.
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others "I'll repost your solution in case you'd like to accept the answer.
Ask: I am trying to read an excel file from ADLS location with data flow. My data flow have some fancy transformation to change the header format. When I am using a small test excel file of 100 Kb I am able to load data properly to sync. But when my file size is 8MB I am not able to read the source in dataflow. It is giving the below error.
Error:
at Source 'ListenSource': empty String
What is the issue behind this?
Solution: The issue is with empty strings as the file has 2 header row the first one having null for many columns.
Though with small size of the same structure Dataflow was able to read and process properly but when the size increases it starts giving this error. As a workaround I have saved the excel into csv using a copy activity in prior stage. I used the range option as A2 to ignore the first header for the main data part. I used another copy activity to get the first header from the column where we do not have any further null values as for these few columns I needed the first header as actual header.
and now the dataflow combines the two csv and produces the data in required format.It is not having any issue reading the same data.
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.