Hello everyone,
I have an XLSX Excel file with 30 columns, and the number of rows varies (usually fewer than 4,000 records). I created a simple flow with the following actions:
If I set a fixed range for the "Table range" property in the Create table action, the table is created without any issues. For example:
Sheet1!A1:AD3723
However, this approach isn't useful because the file I receive by email varies in the number of rows.
I tried using the following formula I found online:
=OFFSET(Sheet1!A1,0,0,SUBTOTAL(103,Sheet1!$A:$A),30)
Unfortunately, it doesn’t work and returns the following error in the flow:
"body": {
"status": 400,
"message": "The argument is invalid or missing or has an incorrect format.\r\nclientRequestId: 2efa7406-3979-78o0-ac6f-1beb8b8ce828\r\nserviceRequestId: c4b13ba2-f8b8-4496-88af-8d67005ea64e;3faf92f5-f3dd-4566-8a07-1b76b2386ce7",
"error": {
"message": "The argument is invalid or missing or has an incorrect format."
},
"source": "excelonline-cus.azconn-cus-001.p.azurewebsites.net"
}
Is there a formula or expression I can use that will work?
I would really appreciate your help.
Thank you!
Hi @SudeepGhatakNZ, @SudeepGhatakNZ thank you for your response.
I'm having trouble understanding your instructions. I cannot use the expression length(body('List_rows_present_in_a_table')?['value']) since I don't have the table set up yet - creating the table is precisely what I need to do.
Would you be able to provide some screenshots or more detailed step-by-step instructions? That would help me better understand the process.
I look forward to your response.
Thank you again for your help.
Best regards,
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional