I have a flow where the following is taking place
- Query an SQL Database and retrieve a dataset with 21780 records
- Parse the ResultSets.Table records over to JSON
- Using HTTP connector perform POST to an Excel worksheet
- This has worked in the past but recently we went over 20K rows now the flow fails with a Redirect error.
- The raw outputs are below
{
"statusCode": 302,
"headers": {
"Strict-Transport-Security": "max-age=31536000",
"request-id": "8b125471-c9fd-4770-b2e4-",
"client-request-id": "8b125471-c9fd-4770-b2e4-",
"x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"East US\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"BY1PEPF00002543\"}}",
"Cache-Control": "private",
"Date": "Wed, 16 Aug 2023 23:41:41 GMT",
"Location": "/error/error.html?aspxerrorpath=/x/_layouts/xlrestinternal.aspx",
"Content-Length": "0"
}
}
- If we update the SQL in step one with SELECT TOP 20000 the HTTP POST does not fail.
- We tried Enabling Pagination. Set a Threshold value, Allow chunking with no success.
- We also tried the
Apply to each
with anAdd a row into table
- which works but takes Hours to process the data; not to mention the cost we are incurring per execution.
I suppose HTTP is the wrong connector to get this data over to an Excel document - What connector should we use to move such datasets over?