Logic Apps-遍历Azure存储上的Blob [英] Logic Apps - Iterate through Blobs on Azure storage

查看:73
本文介绍了Logic Apps-遍历Azure存储上的Blob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有Input和Archive目录的Azure存储帐户.我要:

在导入"文件夹中检查新的XML文件.读取任何文件的内容并验证数据.重命名XML文件并将其移到存档"文件夹.

我不想设置网关,因为我需要检查它的安全性.因此,我设置了一个重复触发来轮询目录.到目前为止,这是我的逻辑应用程序.

这是我得到的输出.

这是完整的错误消息.

 ```{状态":400,"message":指定的资源名称长度不在允许范围内限制.\ r \ nclientRequestId:f7ed6db1-6ee4-43a3-bd3a-796162f3a58c,错误": {"message":指定的资源名称长度不在允许的限制内."},来源":"azureblob-ne.azconn-ne-01.p.azurewebsites.net"}``` 

解决方案

检查blob

I have an Azure storage account with Input and Archive directories. I want to:

Check for new XML files in the Import folder. Read the contents of any files and validate the data. Rename the XML file and move it to the Archive folder.

I don't want to have to set up a Gateway as I would need to check it was secure. Therefore, I have set up a recurrence trigger to poll the directory. This is my logic app so far.

This is the output I get.

Here is the error message in full.

```{
   "status": 400,
 "message": "The specified resource name length is not within the permissible 
limits.\r\nclientRequestId: f7ed6db1-6ee4-43a3-bd3a-796162f3a58c",
"error": {
"message": "The specified resource name length is not within the permissible limits."
},
"source": "azureblob-ne.azconn-ne-01.p.azurewebsites.net"
}

```

解决方案

Check the blob connector reference you will find the problem, the Get blob content action ask the blob id and you pass the whole blob property json, that's why it show the error..

The right way is choose the blob id actually the blob path is acceptable. You could refer to my flow.

这篇关于Logic Apps-遍历Azure存储上的Blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆