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

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 . . .

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

Similar Messages

  • My iphone screen has broke and i cant see anything but i can still hear my messages coming through, is there any way i can read those messages online?

    Please help, my iphone screen was repaired with a faulty screen and my screen has went sheet white with all coloured lines so i cannot see anything on the screen at all. My phone is still on and i can still hear all my messages coming through, is there any way i can read those messages before dumping the phone?

    Only if:
    1. It's iMessages
    2. You have a newer Mac and iMessage is configured
    3. You use the same Apple ID

  • My wife and I share an iTunes account. Is there any way to set up a seperate one for her to sync her phone contacts, iCloud and music to without having to purchase all her music again and then share going forward?

    My wife and I share an iTunes account. Is there any way to set up a seperate one for her to sync her phone contacts, iCloud and music to without having to purchase all her music again and then share going forward?
    It would be so much easier having seperate accounts but we have hundreds of her purchased songs on my account and she would need to be able to access these from her account. Possible?
    Also, if we bought a song in future we would want to be able to both have access to it.
    Alternatively, what is the easy way to sync two distinctly different contact lists to one iTunes account?
    Thank you in advance.

    FYI: iTunes account (used to make purchases) is not the same as iTunes library (iTunes on your computer with music, movies, etc.).
    ecbclb wrote:
    Will we have to create a seperate account for her, or can we all have the same one?
    You can but you will not be able to limit what she syncs.
    I would like to avoid 'checking' and 'unchecking' individual songs every time one of us tries to synch our ipods to the library.
    I don't recommend using (only) the checkmarks to select what to sync.
    Each of you can create your own playlists then sync only those playlists.
    Then add/delete from your own playlists to change iPod content.
    The only time I uncheck items is if I rarely/never want to sync them to anything, such as Christmas music or old audiobooks.
    I suggest you each have your own computer login account. Then everyone has their own contacts, calendars, and everything else.
    You and your husband can share an iTunes library and let your daughter have her own.

  • I have read up on all about crashes and i cant even open it in safe mode :( i have tried deleting it and reinstalling it but the problem still persists. What would you suggest i do and is there any way i canget hold of firefox 6 for mac?

    i have read up on all about crashes and i cant even open it in safe mode :( i have tried deleting it and reinstalling it but the problem still persists. What would you suggest i do and is there any way i canget hold of firefox 6 for mac?

    Does the regular Firefox 8 release version work or does the version crash as well?
    *Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Is there any way to LOCK/save text messages?

    Is there any way to LOCK/save text messages?

    Not really, except with third-party apps:
    https://discussions.apple.com/message/15205763#15205763
    https://discussions.apple.com/message/5537905#5537905

  • Hi! Is there any way I can save my messages in Imessage?

    Hi! Is there any way I can save my messages in Imessage aside from taking screenshots of it?

    Shaun,
    Recently I got an iPhone 5 and when I activated it, I lost all of my voicemails from my previouse phone.  With Verizon (I'm not sure about other carrier's), they were able to provide me with a phone number where I could access my old messages.  I then used a website www.SaveMyVM.com to make permanemnt MP3 backups of them.
    I believe the messages only remain on Verizon's system for a few days after activating a new phone, so time I would give them a call as soon as possible.
    Hope this helps,
    Jaimie

  • Is there any way to download the Adobe Application Manager for Mac 10.5.8?

    I just subscribed to the monthly inDesign plan and was unaware I had to upgrade my system. Is there any way to download the Adobe Application Manager for Mac 10.5.8?

    LisaK78 wrote:
    I am trying to upgrade to Snow Leopard but I cannot figure out how to do it online. Do I actually need to purchase the disc and install it that way? Is there no way to download the update?
    See:
    Software update, upgrade--what's the difference?
    http://support.apple.com/kb/HT1444

  • I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    No.  Are you saving the project as a disk image rather than burning directly to disk from iDVD?  If not then that's what I suggest you do.  That will separate the encoding process from the burn process to save time and disks if the encoding is bad.  It also lets you burn a second or third disk without having to encode again.
    OT

  • I want to change my country so i can be able to use my imessage but i still have a balance of $.98 on my itunes. Is there any way to change it or an apps for my remaining balanced? Your answer will help a lot! Thank you! :-)

    I want to change my country so i can be able to use my imessage but i still have a balance of $.98 on my itunes. Is there any way to change it or an apps for my remaining balanced? Your answer will help a lot! Thank you! :-)

    Click here and ask the iTunes Store staff to zero your account balance.
    (98475)

  • Is there any way to set global language as english for users  in portal

    Hi,
    Is there any way to set global language as english for all the users  in portal (for all the screens,applications etc) irrespective of browser settings,language in jco,user settings in backend .
    the reason why i am asking is we are implementing global implementation project and for some users in switzerland because of their browser is not english they are getting language other than english.we dont want to ask each user to change their browser language.we just want to force the portal to display content only in english
    Thanks
    Bala Duvvuri

    Hi ,
    You can add property  'request.mandatorylanguage=<your_language>'
    and property  'request.mandatorycountry'
    on file 'prtDefault.properties' located in :
    ..server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\system\properties\prtDefault.properties
    Then restart the server.
    See :
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/938297a5061d69e10000000a1553f6/frameset.htm
    Regards,
    Gilad

  • Is there any way to use the bundled PHP compiler without web sharing on?

    Is there any way to use the bundled PHP compiler without Web Sharing on? Is there a way to make sure Web Sharing only allows local access so others on the network cannot access it? Any other easy way to get a PHP compiler on a Mac? I currently run Mac OS X 10.7.4. Any other security issues that might pop up from leaving Web Sharing on? Basically I just want a local PHP compiler so I can do some coding.

    You can use another router as an 'extender' (I know that this will work seemlessly with AirPort Extemes and AirPort Express's - you'll have to check with your router manufacturer to determine what they recommend for range extenders).
    You may also want to take a look at this link - http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html - it may offer some tips.
    Clinton

  • Is there any way to click the System Message Box button  through code?

    Hi,
    Is there any way to click the System Message Box button through code?
    Is there any way to restrict the System Message Box ?
    The requirement is, i need to open the MRP Wizard form in MRP.it s run automatically.after completion of the wizard is there finish button.after clicking of the finish button, there have a system message. i want to click on "Yes" button through coding.
    when system message box open.my code is stopped.if i press yes code is running.   
    Thanks in advance.

    Thanks for replay
    bellow given the code
    i am using, when i call the finishMrp function its going to take the itemId from XML and click to the finish button.
    There have a system message .when system message fair my debugging stopped. Please give me any idea.
    Public Function Execuate() As Boolean
    Dim strSQL As String
      Dim objRS As SAPbobsCOM.Recordset
        Dim intLoop As Integer
        Dim objForm As SAPbouiCOM.Form
        objForm = objAddOnCentral.objApplication.Forms.ActiveForm
        objRS = objAddOnCentral.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
        strSQL = "SELECT U_MRPCode From [@ACSYMRPLIST]"
        objRS.DoQuery(strSQL)
        If objRS.EoF Then
        Throw New Exception("No MRP Scenario Scheudled")
        Return False
        End If
    For intLoop = 1 To objRS.RecordCount
                objForm.Freeze(True)
                If intLoop = 1 Then
                initializeMRPRun()
                System.Windows.Forms.Application.DoEvents()
                Else
                reinitialize()
                System.Windows.Forms.Application.DoEvents()
                End If
                MRPRun(objRS.Fields.Item("U_MRPCode").Value)
                System.Windows.Forms.Application.DoEvents()
                objForm.Freeze(False)
                objRS.MoveNext()
            Nex
            finishMRPRun()
            Return True
        End Function
       Private Sub finishMRPRun()
            Dim strResource As String
            Dim objXML As New XmlDocument
            Dim objXMLNode As XmlNode
            Dim objXMLNodeList As XmlNodeList
            strResource = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name & "." & "AutoStart.xml"
            objXML.Load(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(strResource))
            objXMLNodeList = objXML.SelectNodes("/AutoMRPScript/FinishMRP/Instruction")
            For Each objXMLNode In objXMLNodeList 'objXML.ChildNodes.Item(1).ChildNodes
                Select Case objXMLNode.Attributes("OPType").Value
                    Case "2"
                        systemMessageactiveFormButton(objXMLNode)
                End Select
            Next
        End Sub
    Private Sub systemMessageactiveFormButton(ByVal Instruction As XmlNode)
            Dim objForm As SAPbouiCOM.Form
            objForm = objAddOnCentral.objApplication.Forms.ActiveForm
            objForm.Items.Item(Instruction.Attributes("ItemID").Value).Click()
        End Sub
    Edited by: Badulla Sk on Dec 31, 2009 11:24 AM
    Edited by: Badulla Sk on Dec 31, 2009 11:25 AM

  • Is there any way to not use the plugin container for firefox?

    Is there any way to not use the plugin container for firefox? Ever since I updated, my firefox browser has been crashing almost every day and it always says that the plugin container crashed, but the rest of firefox freezes up as well, so I am forced to end the process itself.

    See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
    You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
    dom.ipc.plugins.enabled (currently false by default in Firefox 3.6.6)
    dom.ipc.plugins.enabled.npswf32.dll (Flash)
    dom.ipc.plugins.enabled.npctrl.dll (Silverlight)
    dom.ipc.plugins.enabled.npqtplugin.dll (QuickTime)

  • Is there any way that a normal SMS message (i.e. A green message) can be sent through to an iPad? I have linked my iPad to my phone but I don't want certain messages getting through. If I turn my imessenger off, does this mean these won't go to my ipad?

    Is there any way that a normal SMS message (i.e. A green message) can be sent through to an iPad? I have linked my iPad to my phone but I don't want certain messages getting through. If I turn my imessenger off, does this mean these won't go to my ipad?

    SMS is a voice cell service and since the iPad does not have voice cell circuitry, it does not natively support SMS or MMS. There are third-party apps in the iTunes Store that purport to send SMS, but I have no personal experience with any of them.
    If I turn my imessenger off, does this mean these won't go to my ipad?
    If you disable Messages in the Restrictions on the iPad, then it will not be able to send nor receive messages. Or you can change the email address used for Messages on either the iPad or the iPhone. The iPad will then only receive messages sent via that address.
    For more information, see:
    http://support.apple.com/kb/HT3529
    Regards.

  • Is there any way I may set low resources priority for a specific job or even all SQL jobs?

    Is there any way I may set low resources priority for a specific job or even all SQL jobs? 
    Our database is quite big and everything works OK and very fast, except SQL jobs which are used mainly for maintenance purposes.
    I have one specific job which runs for 2 minutes and takes a lot of resources which may affect execution of other stored procedure which should be executed fast.The worst part is that this job has to be executed during the most active working hours. It does
    not matter for me how long will it take to execute this job. I just do not want it to use so much resources.
    Also I noticed when SQL backup job (takes about 4 minute) is scheduled it also takes a lot of resources and sometimes because of that I am receiving "login timeout" error on my web site.

     depending on you sql server version and edition, you can use resource governor and limit the cpu and memory.
    in most typical cases , you can use the session user name and times and classify the how much cpu and memory they can use. refer : https://msdn.microsoft.com/en-us/library/cc645892.aspx
    but in your case, the problem seems to be with the maintenance jobs which could run as sql server service account.
    also, if the backup are third party tool backup, you can specify the priority level and other options etc to make it less priority.
    it is possible to do that even with native backups such as specifying the limiting buffercount, max transfer size, if the server is memory pressured. sometimes, stripping the backups to multiple sets across different devices, could help as well. even though
    stripping the backups can introduce another complexity.
    may be you need to rethink you back up\recovery strategy.
    Hope it Helps!!

Maybe you are looking for