Azure Logic App Create Blob gives Http 404 Object reference not set to an instance of an object

时间:2016-08-31 17:32:21

标签: azure azure-storage-blobs azure-logic-apps

I'm having serious problems trying to create a blob file in an existing storage account/container.

To even narrow down the problem I forced the content of the blob to a fixed string (I have another sample where it works with a fixed string). I can't see what could be wrong with my connection since the access policy is "Container" (open doors for everyone and everything) and i'm pretty sure I'm using the right key (already tried both keys azure provides).

I even tested using a c# console application and the Microsoft Azure Storage Explorer and both worked.

Simple schematic of my logic app

  1. *When an HTTP request is received
  2. *Decode AS2 message
  3. *Check MDN Expected [if yes go to 4 else 6]
  4. *Check MDN Type [if yes go to 5 else 6]
  5. *Response
  6. Response
  7. *Create File [end logic app]
  8. Response [end logic app]

NOTE: the steps with are the ones that get run, others are skipped

Logic App Create File Blob

Azure Connection used for the blob container

Storage Account of the container

Container Access Policy

Error

1 个答案:

答案 0 :(得分:3)

blob名称不能包含'<' chars请使用不带特殊字符(大于,小于)的文件名。


你可以使用这个

  

@substring('blobname with<>',1,sub(length('blobname with<>'),2))

或者只是使用guid函数获取唯一的文件名,内容可以是AS2MessageId

  

@guid()

来自LogicApp WDL的功能来实现这一目标。