azure - SharePoint 在线文件同步到 Azure Blob 存储,逻辑应用程序收到 .mp4 文件错误

标签 azure sharepoint azure-blob-storage azure-logic-apps azure-container-apps

我创建了一个 Azure 逻辑应用程序,用于复制 Azure Blob 存储中的文件结构。它工作正常,直到我在 SharePoint 中的文件夹下添加文件夹和文件。当我尝试通过“获取文件内容”读取内容时,收到错误“BadRequest”,并在输出正文中得到

状态:400 消息:路由不匹配\r\nclientRequestID

此错误是因为文件夹路径还是因为文件夹中的音频文件?

第二个问题 - 如何在逻辑应用中实现递归功能,以便如果其文件夹位于该文件夹内,则读取所有文件并将它们存储在 blob 容器中的同一层次结构中?

enter image description here

最佳答案

您收到此错误是因为文件夹路径,我假设您正在尝试根据其路径复制 blob,因此您会收到该错误。

Second issue - How can recursive functionality be achieved in the logic app, so that if its folder is within the folder then its read all the files and store them in the same hierarchy in the blob container?

您可以使用 for-each 循环来列出子文件夹中存在的所有文件。下面是我的逻辑应用程序,我尝试根据 SharePoint 中存在的层次结构创建文件夹。

enter image description here

下面是提取不包含文件名的文件夹以在 blob 存储中创建子文件夹中的表达式

slice(outputs('Path_of_subfolder'),0,lastIndexOf(outputs('Path_of_subfolder'),'/'))

下面是子文件夹路径中的表达式

@{items('For_each_3')?['{FullPath}']}

关于azure - SharePoint 在线文件同步到 Azure Blob 存储,逻辑应用程序收到 .mp4 文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72296948/

相关文章:

c# - 将来自客户端的图像保存在 Azure 存储中

c# - 有没有动态网络服务引用?

javascript - SharePoint 和 JavaScript - "Open with Explorer"问题

azure - 在ARM模板中动态检索azure存储帐户 key

c# - 以编程方式获取 Azure 存储帐户属性

javascript - 类上的 css 取决于包含的内容

python - AZURE 函数从 AZURE BLOB 读取 XLSX

c# - Azure 存储 CDN 连接字符串

azure - 使用 Azure Functions(无需流分析)将数据从 Azure IoTHub 存储到 SQL 数据库中

azure - 将文件复制到 Blob 存储时出错 - Azure