I have a flow that reads a tab delimited text file and writes data to an online Excel spreadsheet. It reads all of the rows but then fails after the last row. The tab delimiter, newline character, and an array for each data row are initialized.
The text file has headers. Each data row contains tabs and ends with the return character. The array value is set as follows:
skip(split(body('Get_file_content_using_paht'),variables('CarriageReturn')),1)
In the apply to each routine, the variable that splits the data into columns is set as follows:
split(items('apply_to_each_-_data_rows'),variables('TabDelimit'))
ISSUE: The return character at the end of each row is being included in the last column's value. This is not desired but I can live with this since the data in inserted into the online spreadsheet as expected. However, the flow rails after the last row is processed. It does not recognize when it's reached the end of the file.
How can I get flow know when it's reached the end of the text file. Please advise.
Thanks,
ARobinson15