Invalid Metadata exception while trying to set metadata to blob

Deepak N S 1 Reputation point
2022-10-27T11:37:26.737+00:00

I am facing invalid metadata exception while trying to set metadata to a blob. The metadata contains special character like ü as the value which is causing the issue. Is there any work around for this?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,721 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,201 Reputation points
    2022-10-27T23:06:50.67+00:00

    @Deepak N S Thank you for reaching out to Microsoft Q&A. I understand that you are having questions regarding metadata exception while trying to set it for Azure Blob.

    Please note that- Beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. This goes for both Portal and SDK. Please refer to - https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#metadata-names

    There is no workaround for this at the moment. Please let us know if you have any more questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    0 comments No comments