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