Sitemap

Amicuk Programming Answers

Is there any way to configure storage queue message encoding for Web Job's QueueTrigger?

-0001-11-30   Views:2

Advertisement

We have a web job that listens to Azure storage queue via QueueTrigger. The queue messages are not encoded when they are added to the queue: CloudStorageAccount account = CloudStorageAccount.Parse("..."); CloudQueueClient client = account.Create

We have a web job that listens to Azure storage queue via QueueTrigger. The queue messages are not encoded when they are added to the queue:
CloudStorageAccount account = CloudStorageAccount.Parse("...");
CloudQueueClient client = account.CreateCloudQueueClient();
CloudQueue queue = client.GetQueueReference("test1");
queue.EncodeMessage = false;
queue.AddMessage(new CloudQueueMessage("hello world"));
And in the web job, we use the below method to listen to the queue.
public static Task ProcessQueueMessageAsync([QueueTrigger("test1")]string message)
And the web job crashes when it gets a message, with the below output. Unfortunately we cannot control the encode setting of the coming messages. So, our question is, is there any way to configure queue message encoding for Web Job's QueueTrigger?
Thank you for any help and/or suggestion.
Found the following functions:
WebJobTest1.Functions.ProcessQueueMessageAsync
Job host started
Unhandled Exception: System.FormatException: Invalid length for a Base-64 char array or string.
at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
at Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage.get_AsString()
at Microsoft.Azure.WebJobs.Host.Storage.Queue.StorageQueueMessage.get_AsString()
at Microsoft.Azure.WebJobs.Host.Queues.StorageQueueMessageExtensions.TryGetAsString(IStorageQueueMessage message)
at Microsoft.Azure.WebJobs.Host.Queues.QueueCausalityManager.GetOwner(IStorageQueueMessage msg)
at Microsoft.Azure.WebJobs.Host.Queues.Listeners.QueueTriggerExecutor.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Queues.Listeners.QueueListener.<ProcessMessageAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.WebJobs.Host.Timers.BackgroundExceptionDispatcher.<>c__DisplayClass1.<Throw>b__0()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Press any key to continue . . .

The replay answer
Advertisement
Hi,
Thanks for posting here.
I am not too sure if the storage queue messages can be encoded before the webjob listens to it.
I am currently researching to gather more information with regards to your request.
I shall revert back to you with an update at the earliest.
Sincerely appreciate your patience.
Regards,
Shirisha Paderu

Go to See the other 5 answers

Is there any way to configure storage queue message encoding for Web Job's QueueTrigger?

Category:DefaultRelease time:-0001-11-30Views:130

We have a web job that listens to Azure storage queue via QueueTrigger. The queue messages are not encoded when they are added to the queue: CloudStorageAccount account = CloudStorageAccount.Parse("..."); CloudQueueClient client = account.Create[More]

How do I improve performance while doing pull, push and delete from Azure Storage Queue

Category:DefaultRelease time:2015-10-11Views:130

        Hi, I am working on a distributed application with Azure Storage Queue for message queuing. queue will be used by multiple clients across the clock and thus it is expected that it would be heavily loaded most on the time in usage. business ca[More]

How to configure JMS queue on OC4J server. Development in JDeveloper 10G

Category:DefaultRelease time:2015-10-11Views:130

Hi there, I have to configure a JMS for an Asynchronous process in my Application which will be running in Oracle 10G Application Server. Development Environment is Oracle JDeveloper 10G. I am facing a problem on how to configure JMS queue. Steps Fol[More]

How to configure Custom Queues in B2B

Category:DefaultRelease time:-0001-11-30Views:130

Hi B2B Gurus, Could any one tell us how to configure coustom queues in B2B 1. I created a AQ's in B2B database using scripts , could any one tell us how to configure these in B2B. Please elobrate step by step 2.In 10 G , document protocol parametrs w[More]

Windows 2003 Standard Edition (Cluster Configuration Storage page)

Category:DefaultRelease time:-0001-11-30Views:130

I am trying to install RAC R2 on windows Server 2003 (Standard Edition). I am using FireWire 800 SIIG to connect to Maxtor OneTouch III External HDD. When installing cluster Services, i do not see the Cluster Storage Devices. When i go to Computer Ma[More]

Configuration for Queue Prioritization for EOIO Queues

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Please can anybody help me in configuring the queue prioritization for EOIO Queues. Regards Srinivashi, Check these help.. Eo/EOIO?BE - Queue - ? - /people/sap.india5/blog/2006/01/03/xi-asynchronous-message-processing-understanding-xi-queues-part[More]

Issue on configuring WTC queue Bridge

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, Currently I'm trying to configure a Queue Bridge from a JMS queue to a Tuxedo Queue and I'm experiencing some problems. The situation right now is the following: 1- I've sucesfully created the JMS source Queue under the JMS section of my WebL[More]

In OAM1 -- Storage Queue says MISSING

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, In   OAM1 transaction when i click on " STORAGE QUEUE" under Asyn requets says "missing"  - >  Queue CARA does not exist When we click on "DISPLAY ORIGINALS" on sales order we are getting the following error: HTTP[More]

No shared disks visible in the Cluster Configuration Storage dialog

Category:DefaultRelease time:-0001-11-30Views:130

When installing the Oracle 10g clusterware the "Cluster Configuration Storage" dialog shows no shared disks. We are using: Windows 2003 Server HP Eva 4400Hello, all disks in cluster are visible from all nodes (2 of them). We tested it with unpar[More]

No partitions avalilable on Page Cluster configuration storage

Category:DefaultRelease time:-0001-11-30Views:130

hello all, I am trying to install RAC R2 on windows Server 2003 (Standard Edition) with 2 nodes. When installing Clusterware. I can't see all the partitions of the raw device but When i go to Computer Management, i see all of them. One "Cluster Confi[More]

ALL QUEUE messages are in memory? = OutOfMemoryError

Category:DefaultRelease time:2015-10-11Views:130

I have very large queue about which contains messages about 1GB in size and above. Can I configure Sun Java System Message Queue to swap incomming messages to disk if system has already NO FREE MEMORY. I use "-Xmx600m -Xms400m" and when I still[More]

Hot
Hello All, We are using to  SD_SALESDOCUMENT_CREATE function module to create sales order it is working fine for single material. When we try to create sales order with multiple matearials we ended up with the following errors SALES_HEADER_IN has bee [More]
Hi guys. I have an HP desktop and a Dell SR2320L Monitor. It was working fine until a few months back. I was out of town, came back last week and now every time I start my PC it just stays there "Entering Power Save Mode". I tried almost everyth [More]
Hi Guys,                In my selection screen i have given parameters: date like sy-datum default sy-datum. I have added + 1 after sy-datum. But i am not getting tommorows date. So can I display current date = current day + 1 Day in selection screen [More]
Post Author: msegura CA Forum: Migration to XI R2 Hi I migrated one system from CR10 to BOEXI R2, and all finishes successfully. But at the end, I need to update the objects from the last version to the newer, especially CR10 reports. The wizard find [More]
In Flash CC. It seems as though it's offset too far as it does not pick up the corre t color. Ive seen some talk of this here but for Mac. There seems to be nothing about Windows 8. How do I fix this? Without an eyedropper tool my Flash CC is relativ [More]
I downloaded Firefox 8.0 and later 8.01. When the upgrade is launched it unpacks and then gets ready to install and I'm prompted to select a user or administrator. No matter which I select when click on install the prompt disappears and that's the en [More]
I assumed that Sata 2 being mainstream for so long, this new laptop of mine would have it. I want to buy one of the nicer SSD for this unit, but I can NOT confirm anywhere that it will run up to 300 megs. If it's Sata 1 then I wouldn't be getting muc [More]
Hi my name is Said and I work in the National Institute of Industrial Technology of Argentina, in a calibration lab. We have a Wavetek 9100 Calibrator, Agilent 34401A Digital Multimeter and a NI GPIB IEEE-488-2 board. I have a problem with the Calibr [More]
Hi, I am using a DB control in one of my workflows. I wanted to know if the DBControl will close/release the connections(return the connections to the pool), once its work is done... i could not find that explicitly mentioned in the help materials... [More]
Hi experts, When creating customer master, how to default order block to customers? For e.g., when saving a new customer, order block is set in customer master automatcally. Pls help. Thx.Dear Cathy, I dont think as per standard you can default the o [More]