Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Post SQS Message

Prev Next

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 


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

Inputs

PropertyDescriptionData Type
Message TextMessage to post to the Message Queue.                                                               String

Outputs

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


Common Errors

Invalid URI

If the inputted value for the queue name under the Settings section is invalid, the step will cause an error.

To correct this, 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