Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 08:51 AM
    I'm trying to populate a System Queue (in the Control Center) with new items but can't get it to work. Not sure I use the correct input variable type for the Enqueue? Error message sais "Cannot use MessageQueueVariant if isserver is disabled" - what does that mean?

    Current situation:
    • This is the first time we are trying this in the current setup
    • We are using the SaaS solution located at https://eu1app.wdgautomation.com
    • My Studio is licensed and currently connected to the above instance (at least I can run scripts from the Studio so I guess it's correctly connected)
    • I have added a new Queue of type "System Queue Provider" in the Control Center named "TestQueue"

    My testscript:
    defVar --name connQueueServer --type QueueConnection
    defVar --name queueTest --type MessageQueue
    defVar --name jsonTest --type String --value "{\"var1\":\"value1\"}"
    defVar --name test1 --type QueueMessage
    connectSystemMQ connQueueServer=value
    getQueue --connection ${connQueueServer} --name TestQueue queueTest=value
    enqueue --collection "${queueTest}" --value "${test1}"

    Error message:
    System.InvalidOperationException: Cannot use MessageQueueVariant if isserver is disabled
    at WDG.Automation.Base.CollectionBaseAddQueueCommand.Execute(AutomationContext context)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ErrorHandler.lUFtgfS6B3UXYO8FnHA(Object )
    at WDG.Automation.Language.ErrorHandler.mGnpEI0m8x(Exception )
    at WDG.Automation.Language.ErrorHandler.HandleExecutionExceptionIfNeeded(Exception exception, IAutomationCommand command)
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.BjWVfHiEeDw1YyIIoxS(Object , Object , Object )
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()

    ------------------------------
    David Fredriksson
    ------------------------------


  • 2.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 09:00 AM
    Hi Anders!

    Does getting the QueueConnection and Queue work? The commands should output boolean to inspect that.

    ------------------------------
    Jukka Juselius
    Senior Solution Architect - IBM EMEA
    IBM RPA Program Lead for EMEA
    IBM Technology - Business Automation
    ------------------------------



  • 3.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 09:09 AM
    Hi Jukka!

    Yes, I added log activities after the connect and the get queue now and they both return True.

    //David

    ------------------------------
    David Fredriksson
    ------------------------------



  • 4.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 09:47 AM
    Hi again David!

    Since you're trying to use a queue hosted in System QM, you also need to enable the "Queue Provider" option in Enqueue command.

    ------------------------------
    Jukka Juselius
    Senior Solution Architect - IBM EMEA
    IBM RPA Program Lead for EMEA
    IBM Technology - Business Automation
    ------------------------------



  • 5.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 10:01 AM
    Ok, one step further. Thanks!

    Now it complains on my input which is supposed to be of type "Queue Message". I have created the variable but don't know how to assign values to it?

    ------------------------------
    David Fredriksson
    ------------------------------



  • 6.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 10:19 AM
    Hi again,

    looking at your script you posted earlier, you're trying to use variable type QueueMessage (test1) for enqueuing. Just use plain text variable.

    ------------------------------
    Jukka Juselius
    Senior Solution Architect - IBM EMEA
    IBM RPA Program Lead for EMEA
    IBM Technology - Business Automation
    ------------------------------



  • 7.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/04/22 10:49 AM
    Yes, it works now! Thanks alot! :)

    Can we see the queue items anywhere in the Control Panel? Or in a log somewhere?

    ------------------------------
    David Fredriksson
    ------------------------------



  • 8.  RE: Issues when trying out a System Queue and Enqeue feature

    Posted 02/10/22 06:35 AM
    If you use the Process feature, you can specify queues, and all the items you add to those queues will be shown in the Instances panel and Control panel.

    ------------------------------
    Joba Diniz
    Product Manager
    IBM
    ------------------------------