Hi
As per the title, I'm having an issue where I'm trying to convert data from an excel table from a file stored in sharepoint into a CSV file. It's is working, but there is always a blank line at the end of the file;

When I pull this file into another flow to process the data it works fine except for this rogue row, which ultimately causes the flow to have a status of failed.
The end goal of this flow is to populate a journal in D365, so if the file has 10 rows, then the 'apply to each' shows 11. The first 10 all process as expected followed by the failure of this empty 11th row.


I've tried creating the csv file and saving it to sharepoint then pulling that into the flow and also tried avoiding the file creation piece and getting the data from within the flow to process by using compose actions but still get the same issue.
If I open the csv file and select all, copy and paste into a compose statement then delete the blank line the output works as expected.
Here's the failure screen in the processing flow, you can see it's looping through 127 line, but there should only have been 126 - there are no failures other than that empty line, the previous 126 lines are processed and appear in D365 F&O.

Thanks for reading and hopefully someone can point me in the direction of how to solve this conundrum.