Azure 逻辑应用程序 - 通过“获取文件内容”从共享点读取大文件(200mb+)

问题描述 投票:0回答:2

使用共享点连接器获取文件内容Logic App中读取大约200mb的文件时出现错误。

运行管道时,面对获取文件内容面临错误:

错误的请求 HTTP 请求失败,因为出现错误:“向缓冲区写入的字节数不能超过配置的最大缓冲区大小:104857600。”。

如何使用 获取文件内容修复具有相同管道架构的运行?

在“设置”->“配置”中更改此参数的值 300mb:

  • 运行时.Backend.HttpOperation.MaxContentSize
  • 运行时.ContentLink.MaximumContentSizeInBytes
  • 运行时.FlowRunActionJob.MaximumActionResultSize
  • Runtime.FlowRunRetryableActionJobCallback.MaximumContentLengthInBytesForPartialContent
azure sharepoint azure-logic-apps
2个回答
0
投票

Azure 逻辑应用程序 - 通过“获取文件内容”从共享点读取大文件(200mb+)

感谢

@Skin
提出同样的观点。

您可以在

Graph API and the HTTP connector
中使用
Logic App
200MB
下载
Share Point
文件。

以下是

Logic App

中的步骤

第 1 步:首先使用以下 http 请求生成访问令牌。

Design:

enter image description here

内容类型:

Content-Type:

application/x-www-form-urlencoded

POST https://login.microsoftonline.com/<tenantid>/oauth2/v2.0/token

身体:

grant_type=client_credentials&client_id=<app_ID>&client_secret=S968Qrg8fhgjgvnpaap4&scope=https://graph.microsoft.com/.default

第2步:

使用以下方法获取上一步的授权。

使用以下查询获取Share Point Site ID

GET https://graph.microsoft.com/v1.0/sites/root:/sites/<sitename>

enter image description here

第三步:

使用以下查询获取Share Point Drive ID

GET https://graph.microsoft.com/v1.0/sites/@{split(body('HTTP_2')['id'],',')[1]}/drives

enter image description here

第四步:

您可以使用下面的查询通过使用上面的响应检索参数来从

Share Point Site
下载文件。

GET https://graph.microsoft.com/v1.0/sites/@{split(body('HTTP_2')['id'],',')[1]}/drives/@{body('HTTP_3')['value'][0]['id']}/root/children/200MB.bin

enter image description here

Output:

enter image description here

据我所知,如果您想从

SharePoint
网站下载大于100Mb的文件,这是您可以使用的唯一方法。


0
投票

即使我将这些属性设置为大于 200mb,我也有类似的问题,我正在使用标准 WS1 层逻辑应用程序,Azure 逻辑应用程序不支持大于 100mb 吗?

© www.soinside.com 2019 - 2024. All rights reserved.