cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jek
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
v-alzhan-msft
Community Support
Community Support

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.

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
March Update

Join Stephen Siciliano and the Power Automate team at MBAS

Make sure you are registered #MSBizAppsSummit #CommunityRocks

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (60,001)