Azure Storage Explorer not recognizing PartitionKey in CSV file

2022-06-28T12:18:41.153+00:00

For reasons I am unable to figure out, Azure Storage explorer refuses to recognize the PartitionKey column in the CSV that I imported and treats it as a separate column:

215726-image.png

Any help on why this is happening and how to fix it would be greatly appreciated.

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
231 questions
{count} votes

Accepted answer
  1. Sumarigo-MSFT 43,801 Reputation points Microsoft Employee
    2022-07-01T10:37:30.17+00:00

    @Prithviraj Renjella Rajendra Prasad ,We’ve seen this problem before, and it’s likely due to the format of the file. Did you create this file using Excel? If so, did you save it as “CSV UTF-8”? Try saving the file as “CSV” (without the UTF-8 part).

    The reason for this issue is because CSV UTF-8 places a byte order mark (BOM) at the beginning of the file. Storage Explorer is reading these bytes and mistaking them as part of the partition key column name. That’s why “PartitionKey” is appearing as a custom column. All you have to do is remove the BOM (by saving as a different format).

    We have already merged changes in the code to address this issue. In future versions, you will not have to check for or remove the BOM.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful