AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Cannot import queue message in Azure Queue

Open viennamari opened this issue 1 year ago • 4 comments

Preflight Checklist

Storage Explorer Version

1.34.0

Regression From

1.34.0

Architecture

x64

Storage Explorer Build Number

20240532.2

Platform

Windows

OS Version

Windows 10

Bug Description

Cannot parse queue message with double quotes or quoation marks but can be inserted in add new queue message option. image

Steps to Reproduce

  1. Launch Azure Storage Explorer.
  2. Go to Azure Queues.
  3. Click Import button to import csv file
  4. Unable to parse error resulted due to double quotes or quotation marks. image

Actual Experience

Error happened in importing a csv file to insert to Queues. image

Expected Experience

Should accept the csv file as valid and should continue normally with the import.

Additional Context

No response

viennamari avatar Jun 04 '24 08:06 viennamari

@RichardMSFT CSV parsing should be consistent. Can you make sure parsing for queue import functions the same way as table import?

@viennamari Can you provide a sample CSV file for us?

craxal avatar Jun 06 '24 17:06 craxal

sampleimportCSV.csv here is the sample csv I created based on the queue messages I can insert which contains two queue messages seperated by "||". Thanks!

viennamari avatar Jun 07 '24 03:06 viennamari

@viennamari The file contents you sent appears to be XML, not CSV:

image

craxal avatar Jun 07 '24 16:06 craxal

Hello, yes because our queue messages are in xml format but I saved two queue messages separated by "||" in csv file

viennamari avatar Jun 10 '24 01:06 viennamari

@viennamari If I'm understanding correctly, it looks like what you're intending to do is not possible with how import queue message is setup as of today. Currently importing messages into a queue from a .csv file behaves where each row is a message and the value in the first column is the message text. This was done to give room for the future where other columns could specify properties like time to live and visibility timeout if there was a demand for it.

So as it stands, when importing from a .csv file the delimiter string is what separates columns and line breaks are what separates the rows. In the case of the .csv file you shared, because each "XML document" spans multiple lines they will be inserted into the queue as multiple messages, one per line. I don't think this is what you intended, but instead I believe you are trying to insert only two messages separated by the || characters.

For today, you have either the option of having each "XML document" be contained within one line for queue import or continue to use the add message action. If you think that import queue message functionality could be improved, please open a separate issue on GitHub as a feature request

richardMSFT avatar Aug 01 '24 20:08 richardMSFT

Parsing queue messages with quotes will however be fixed in the upcoming release 1.35.0.

richardMSFT avatar Aug 01 '24 20:08 richardMSFT