Logic Apps - Iterate through Blobs on Azure storage

坚强是说给别人听的谎言 提交于 2021-02-11 15:34:57

问题


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"
}

```

回答1:


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.



来源:https://stackoverflow.com/questions/59272503/logic-apps-iterate-through-blobs-on-azure-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!