--- title: "Get String From Active Queue" slug: "get-string-from-active-queue" tags: ["ActiveMQ", "message", "Metadata", "message queue"] updated: 2025-09-02T19:58:34Z published: 2025-09-02T19:58:34Z canonical: "documentation.decisions.com/get-string-from-active-queue" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get String From Active Queue | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 8.8.0 | | **Location** | Integration > ActiveMQ | The Get String From Active Queue step allows a user to get a list of ActiveMQ messages. ## Prerequisites This step requires the [ActiveMQ](https://documentation.decisions.com/docs/activemq) module to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox. Users on v9 will need to create a [Project dependency](https://documentation.decisions.com/docs/project-dependencies)[](https://documentation.decisions.com/docs/project-dependencies). --- ## Properties #### [Settings] | Property | Description | Data Type | | --- | --- | --- | | MessageCount | The number of messages to return. | Int32 | | QueueName | The desired Message Queue to retrieve messages from. | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Messages | List of messages found. | List of String | | Messages with Metadata | List of messages with metadata found. | List of ActiveMQMessageWithMetadata | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-07-31_13h55_58.png) --- ## Common Errors ### Object reference not set to an instance of an object If an ActiveMQ Message queue is not configured correctly, an error will occur. To correct this, ensure that the configuration for the ActiveMQ is correct and that the Message Queue is active. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get String from Active Queue 1[GetStringFromActiveQueue] in flow [Flow 1]: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Decisions.ActiveMessageQueue.ActiveMQUtils.GetAMQPConnection(ActiveMessageQueue messageQueue at Decisions.ActiveMessageQueue.GetStringFromActiveQueue.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` ## Related - [Get Message](/get-message-steps.md) - [Output Flow Message](/output-flow-message.md)