cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

'Create_blob' failed | create Blob in BlobStorage via Flow

Hi,

 

I am trying to load images from SharePoint to an azure blob container via MS Flow. Since recently I start getting errors for some images.

 

Setup:

SharePoint with a folder structure of:

workorder/workorder-before/img.jpg

 

Blob Storage with a simulated folder structure:

task/name/workorder/workorder-before/img-with-a-combined-name.jpg

 

The Flow which executes the transfer looks like this:

image.png

 

This usually works, but for the following test path:

 

 

 

A Test/Test Location/AUF07539/AUF07539-Nachher/LonglonglonglongLonglonglonglongLonglonglonglongLonglonglonglongLonglonglonglongLonglonglonglongLonglonglonglong.jpg

 

 

 

I recieve the following error:

 

Action 'Create_blob' failed

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

 

 

 

 

Surprisingly to me, I can upload the blob without problem if I trigger it manually:

image.png

 

My first suspicion was the length of the blob name, but when I create the blob manually I can choose an arbitrary length and it works. (the max length supported by azure is 1024, I believe)

 

So now I assume it has something to do with 'Apply to each'. But I simply cannot find any hints on what the problem might be.

 

I would be grateful for any insights.

 

 

 

Best regards

Jek

 

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: 'Create_blob' failed | create Blob in BlobStorage via Flow

Hi @Jek ,

 

Please take a try to add a file extension to the file name in the Set variable action to see if the issue still exists.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper I
Helper I

Re: 'Create_blob' failed | create Blob in BlobStorage via Flow

Hi, @v-alzhan-msft 

Thank you for the response!

 

The variable "Name" at the end already contains the file extension.

 

image.png

 

I am quite sure the problem has to do with the "apply to each" step.

 

The strange thing is that the lenght of the path name seems to be the deciding factor wether it works or not. From my research path names below 182 characters work, and every thing above that doesn't.

This seems like an arbitrary number for a maximum amount of characters.

 

Best regards

Jek

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (5,449)