You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Messages are "large" based on the service handling those messages. The exact size limit on large messages differs across Azure Logic Apps and connectors. Both Azure Logic Apps and connectors can't directly consume large messages, which must be chunked. For the Azure Logic Apps message size limit, see [Azure Logic Apps limits and configuration](../logic-apps/logic-apps-limits-and-config.md).
32
+
For each connector's message size limit, see the [connector's reference documentation](/connectors/connector-reference/connector-reference-logicapps-connectors).
38
33
39
-
### Chunked message handling for Logic Apps
34
+
### Chunked message handling for Azure Logic Apps
40
35
41
-
Logic Apps can't directly use outputs from chunked
36
+
Azure Logic Apps can't directly use outputs from chunked
42
37
messages that are larger than the message size limit.
43
38
Only actions that support chunking can access the message content in these outputs.
44
39
So, an action that handles large messages must meet *either* these criteria:
@@ -51,17 +46,16 @@ To enable chunking, see [Set up chunking support](#set-up-chunking).
51
46
52
47
### Chunked message handling for connectors
53
48
54
-
Services that communicate with Logic Apps can have their own message size limits.
55
-
These limits are often smaller than the Logic Apps limit. For example, assuming that
49
+
Services that communicate with Azure Logic Apps can have their own message size limits.
50
+
These limits are often smaller than the Azure Logic Apps limit. For example, assuming that
56
51
a connector supports chunking, a connector might consider a 30-MB message as large,
57
-
while Logic Apps does not. To comply with this connector's limit,
58
-
Logic Apps splits any message larger than 30 MB into smaller chunks.
52
+
while Azure Logic Apps does not. To comply with this connector's limit, Azure Logic Apps splits any message larger than 30 MB into smaller chunks.
59
53
60
54
For connectors that support chunking, the underlying chunking protocol is invisible to end users.
61
55
However, not all connectors support chunking, so these connectors generate runtime
62
56
errors when incoming messages exceed the connectors' size limits.
63
57
64
-
For actions that support and are enabled for chunking, you can't use trigger bodies, variables, and expressions such as `@triggerBody()?['Content']` because using any of these inputs prevents the chunking operation from happening. Instead, use the [**Compose** action](../logic-apps/logic-apps-perform-data-operations.md#compose-action). Specifically, you must create a `body` field by using the **Compose** action to store the data output from the trigger body, variable, expression, and so on, for example:
58
+
For actions that support and are enabled for chunking, you can't use trigger bodies, variables, and expressions such as **`triggerBody()?['Content']`** because using any of these inputs prevents the chunking operation from happening. Instead, use the [**Compose** action](../logic-apps/logic-apps-perform-data-operations.md#compose-action). Specifically, you must create a **`body`** field by using the **Compose** action to store the data output from the trigger body, variable, expression, and so on, for example:
65
59
66
60
```json
67
61
"Compose": {
@@ -76,7 +70,8 @@ For actions that support and are enabled for chunking, you can't use trigger bod
76
70
"type": "Compose"
77
71
},
78
72
```
79
-
Then, to reference the data, in the chunking action, use `@body('Compose')` .
73
+
74
+
To reference the data, in the chunking action, use the expression **`body('Compose')`**, for example:
80
75
81
76
```json
82
77
"Create_file": {
@@ -118,17 +113,17 @@ Then, to reference the data, in the chunking action, use `@body('Compose')` .
118
113
119
114
In generic HTTP scenarios, you can split up large content downloads and uploads over HTTP,
120
115
so that your logic app and an endpoint can exchange large messages. However,
121
-
you must chunk messages in the way that Logic Apps expects.
116
+
you must chunk messages in the way that Azure Logic Apps expects.
122
117
123
118
If an endpoint has enabled chunking for downloads or uploads,
124
119
the HTTP actions in your logic app automatically chunk large messages. Otherwise,
125
120
you must set up chunking support on the endpoint. If you don't own or control
126
121
the endpoint or connector, you might not have the option to set up chunking.
127
122
128
123
Also, if an HTTP action doesn't already enable chunking,
129
-
you must also set up chunking in the action's `runTimeConfiguration` property.
124
+
you must also set up chunking in the action's **`runTimeConfiguration`** property.
130
125
You can set this property inside the action, either directly in the code view
131
-
editor as described later, or in the Logic Apps Designer as described here:
126
+
editor as described later, or in the workflow designer as described here:
132
127
133
128
1. In the HTTP action's upper-right corner,
134
129
choose the ellipsis button (**...**),
@@ -155,7 +150,7 @@ or *chunked downloads*. When your logic app sends an HTTP GET
155
150
request to an endpoint for downloading content,
156
151
and the endpoint responds with a "206" status code,
157
152
the response contains chunked content.
158
-
Logic Apps can't control whether an endpoint supports partial requests.
153
+
Azure Logic Apps can't control whether an endpoint supports partial requests.
159
154
However, when your logic app gets the first "206" response,
160
155
your logic app automatically sends multiple requests to download all the content.
161
156
@@ -166,18 +161,18 @@ That way, if the endpoint supports chunked downloads but
166
161
doesn't send chunked content, you can *suggest*
167
162
this option by setting the `Range` header in your HTTP GET request.
168
163
169
-
These steps describe the detailed process Logic Apps uses for
170
-
downloading chunked content from an endpoint to your logic app:
164
+
These steps describe the detailed process that Azure Logic Apps uses for
165
+
downloading chunked content from an endpoint to your workflow:
171
166
172
-
1. Your logic app sends an HTTP GET request to the endpoint.
167
+
1. Your workflow sends an HTTP GET request to the endpoint.
173
168
174
169
The request header can optionally include a `Range` field that
175
170
describes a byte range for requesting content chunks.
176
171
177
172
2. The endpoint responds with the "206" status code and an HTTP message body.
178
173
179
174
Details about the content in this chunk appear in the response's `Content-Range` header,
180
-
including information that helps Logic Apps determine the start and end for the chunk,
175
+
including information that helps Azure Logic Apps determine the start and end for the chunk,
181
176
plus the total size of the entire content before chunking.
182
177
183
178
3. Your logic app automatically sends follow-up HTTP GET requests.
@@ -218,45 +213,41 @@ Your logic app can then send an initial POST or PUT message to the target endpoi
218
213
After the endpoint responds with a suggested chunk size, your logic app follows
219
214
up by sending HTTP PATCH requests that contain the content chunks.
220
215
221
-
The following steps describe the detailed process Logic Apps uses for uploading
216
+
The following steps describe the detailed process that Azure Logic Apps uses for uploading
222
217
chunked content from your logic app to an endpoint:
223
218
224
-
1. Your logic app sends an initial HTTP POST or PUT request with an empty message body. The request header, includes the following information about the content that your logic app wants to upload in chunks:
219
+
1. Your workflow sends an initial HTTP POST or PUT request with an empty message body. The request header, includes the following information about the content that your logic app wants to upload in chunks:
225
220
226
-
|Logic Apps request header field | Value | Type | Description |
|**Location**| String | Yes | The URL location where to send the HTTP PATCH messages |
237
231
|**x-ms-chunk-size**| Integer | No | The suggested chunk size in bytes |
238
-
||||
239
232
240
-
1. Your logic app creates and sends follow-up HTTP PATCH messages - each with the following information:
233
+
1. Your workflow creates and sends follow-up HTTP PATCH messages - each with the following information:
241
234
242
235
* A content chunk based on **x-ms-chunk-size** or some internally calculated size until all the content totaling **x-ms-content-length** is sequentially uploaded
243
236
244
237
* The following header information about the content chunk sent in each PATCH message:
245
238
246
-
|Logic Apps request header field | Value | Type | Description |
|**Content-Range**| <*range*> | String | The byte range for the current content chunk, including the starting value, ending value, and the total content size, for example: "bytes=0-1023/10100" |
249
242
|**Content-Type**| <*content-type*> | String | The type of chunked content |
250
243
|**Content-Length**| <*content-length*> | String | The length of size in bytes of the current chunk |
251
-
|||||
252
244
253
245
1. After each PATCH request, the endpoint confirms the receipt for each chunk by responding with the "200" status code and the following response headers:
254
246
255
247
| Endpoint response header field | Type | Required | Description |
|**Range**| String | Yes | The byte range for content that has been received by the endpoint, for example: "bytes=0-1023" |
258
250
|**x-ms-chunk-size**| Integer | No | The suggested chunk size in bytes |
259
-
||||
260
251
261
252
For example, this action definition shows an HTTP POST request for uploading chunked content to an endpoint. In the action's `runTimeConfiguration` property,
262
253
the `contentTransfer` property sets `transferMode` to `chunked`:
0 commit comments