Post SQS Message
  • 30 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Post SQS Message

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version8.9.0
LocationIntegration > Amazon AWS > SQS

The Post SQS Message step accepts a String input as a message and returns an ID when the step completes. This ID will match the ID that the SQS queue generates.

The queue can also be specified for the step, which is done by expanding the Settings header in the Properties panel and selecting the queue for the QueueName in the drop-down menu or by checking Get Queue from Flow if used in a Message Queue Handler.

Prerequisites 

This step requires the AWS module to be installed before it will be available in the toolbox. 


Properties

Settings

PropertyDescriptionData Type
Queue NameChoose a Message Queue added to the Studio from the drop-down.
Selecting a FIFO SQS queue will reveal two new inputs: Message Deduplication ID and Message Group ID.
String
Get Queue from FlowSetting this to true will allow the Queue Name to be available as an input and be set using Flow Data.Boolean

Inputs

PropertyDescriptionData Type
Message TextMessage to post to the Message Queue.String
Message Group ID
The message group ID is the tag that specifies that a message belongs to a specific message group. * Only available for FIFO SQS QueuesString
Message Depublication ID
The message deduplication ID is the token used for the deduplication of sent messages. * Only available for FIFO SQS Queues
String
Queue NameThe Queue Name that was established while creating the Message Queue. * Only available if Get Queue from Flow is set to true. String

Outputs

PropertyDescriptionData Type
Message IDThe ID of the Message that was posted utilizing this step.String


Common Errors

Invalid URI

The parameters around the Message Queue are invalid and need to be reconfigured.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Post SQS Message 1[PostSqsMessage] in flow [Display Steps]: Invalid URI: The format of the URI could not be determined.
 ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions
 at System.Uri..ctor(String uriString
 at Amazon.SQS.Internal.ProcessRequestHandler.PreInvoke(IExecutionContext executionContext
 at Amazon.SQS.Internal.ProcessRequestHandler.InvokeAsync[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.PipelineHandler.InvokeAsync[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.Marshaller.InvokeAsync[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.PipelineHandler.InvokeAsync[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.CallbackHandler.<>n__0[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext
 at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext
 at Decisions.AmazonSQS.SQSQueueImplementation.PushMessage(String message, String groupId, String deduplicationId
 at Decisions.AmazonSQS.PostSqsMessage.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 Information

Articles:
SQS


Was this article helpful?

What's Next