Why is the Azure Blob MD5 Checksum not generated automatically using Logic Apps?

Viewed 316

In Logic Apps I've retrieved a CSV file from SharePoint using "Get file content" and used the "Create block Blob V2", but no MD5-Content is created. When I update the Blob manually the MD5 does get created. Any idea's why the MD5 is not generated when retrieving a file from SharePoint and uploading it to the Blob?

Create Block Blob (V2) Blob content:

{
  "$content-type": "application/octet-stream",
  "$content": "QTtCO0M7RDtFDQoxOzI7Mzs0OzU="
}

Create Block Blob (V2) Output:

{
  "Id": "JTJmdGVzdGNvbnRhaW5lciUyZnRlc3RmaWxlMi5jc3Y=",
  "Name": "testfile2.csv",
  "DisplayName": "testfile2.csv",
  "Path": "/testcontainer/testfile2.csv",
  "LastModified": "2021-07-20T18:45:06Z",
  "Size": 20,
  "MediaType": "text/csv",
  "IsFolder": false,
  "ETag": "\"0x8D94BAE7E056750\"",
  "FileLocator": "JTJmdGVzdGNvbnRhaW5lciUyZnRlc3RmaWxlMi5jc3Y=",
  "LastModifiedBy": null
}

enter image description here

1 Answers

This is how it worked for me, I've added base64 Dynamic Expression using compose between Create file Content and Create Block blob (V2) steps doing this I could able to generate Content-MD5 header value for the blob.

Here is the screenshot of my Logic App. enter image description here

and here is the result enter image description here

Related