cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
raheelr
Level: Powered On

Azure Blob Copy File - Status 400

Hi Team

I am getting error while trying to copy a blob from one container to another container.

I have successfully added the AzureBlobStorage connector.

Using the CopyFile function (see attached screenshot) I am trying to copy file across.

The error message says invalid character; but I fail to identify where. 

Both Blob container have anonymous Read/Write access enabled. So I doubt its permissions issue.

The expression is in OnClick event of the button.

AzureBlobCopyError.jpg

Thanks in advance.

 

 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Azure Blob Copy File - Status 400

Hi @raheelr ,

The reason why you met this problem is that you used invalid characters in your resource URL.

Please notice:

1)The URI to reference a container or a blob must be unique.

If you attempt to create a container or blob with a name that violates naming rules, the request will fail with status code 400 (Bad Request).

2)Certain characters must be percent-encoded to appear in a URL, using UTF-8 (preferred) or MBCS. This encoding occurs automatically when you use the Azure Storage client libraries. However, there are certain characters that are not valid in URL paths even when encoded. These characters cannot appear in blob or container names. Code points like \uE000, while valid in NTFS filenames, are not valid Unicode characters, so they cannot be used. In addition, some ASCII or Unicode characters, like control characters (0x00 to 0x1F, \u0081, etc.), are also not allowed. For rules governing Unicode strings in HTTP/1.1, see RFC 2616, Section 2.2: Basic Rules and RFC 3987.

 

Anyway, please use valid resource URL in your formula. You could refer this doc to see the rules of naming and referring to containers, blobs, metadata, and snapshots, which could help you check your resource URL's validness:

https://docs.microsoft.com/en-us/rest/api/storageservices/Naming-and-Referencing-Containers--Blobs--...

 

 

Best regards,

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

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Azure Blob Copy File - Status 400

Hi @raheelr ,

The reason why you met this problem is that you used invalid characters in your resource URL.

Please notice:

1)The URI to reference a container or a blob must be unique.

If you attempt to create a container or blob with a name that violates naming rules, the request will fail with status code 400 (Bad Request).

2)Certain characters must be percent-encoded to appear in a URL, using UTF-8 (preferred) or MBCS. This encoding occurs automatically when you use the Azure Storage client libraries. However, there are certain characters that are not valid in URL paths even when encoded. These characters cannot appear in blob or container names. Code points like \uE000, while valid in NTFS filenames, are not valid Unicode characters, so they cannot be used. In addition, some ASCII or Unicode characters, like control characters (0x00 to 0x1F, \u0081, etc.), are also not allowed. For rules governing Unicode strings in HTTP/1.1, see RFC 2616, Section 2.2: Basic Rules and RFC 3987.

 

Anyway, please use valid resource URL in your formula. You could refer this doc to see the rules of naming and referring to containers, blobs, metadata, and snapshots, which could help you check your resource URL's validness:

https://docs.microsoft.com/en-us/rest/api/storageservices/Naming-and-Referencing-Containers--Blobs--...

 

 

Best regards,

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

View solution in original post

raheelr
Level: Powered On

Re: Azure Blob Copy File - Status 400

Thanks @v-yutliu-msft  ; The Source and target path requires just the container name and file name ...not the http url ..

 

raheelr
Level: Powered On

Re: Azure Blob Copy File - Status 400

Thanks @v-yutliu-msft  ; The Source and target path for the function 'CopyFile' requires just the container name and file name ...not the http url ..

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,433)