Send Message

Operation Name

Send Message

Function Overview

Sends message from Amazon SQS.

Data Model

Input data is Table Model type, and output data is XML type.
Refer to Schema for input/output schema.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of variables Description Remarks
Name Required Not Available Enter the name to show on the script canvas.  
Input data Required Not Available Select a component on the script canvas.  
Required settings
Item name Required/Optional Use of Variables Description Remarks
Destination Required Not Available Select a global resource.
  • [Add]:
    Adds a new global resource.
  • [Edit list]:
    Enables to edit the global resource settings in the "Edit resource list".
 
Queue name Required Available Specify the targeted queue of receiving message.
  • Directly enter, or select from the list.
 
Comment
Item name Required/Optional Use of Variables Description Remarks
Comment Optional Not Available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

<?xml version="1.0"?>
<table>
  <row>
    <column>message_body</column>
  </row>
  <row>
    :
  </row>
</table>
Column name Description Remarks
message_body Inputs sending message. Sends one SendMessage request per element.
Maximum length of message depends on the setting of each queue.

Output Schema

<?xml version="1.0"?>
<message_results>
  <message_result md5_message_attributes="" md5_message_body="" message_id="" status="" >
  </message_result>
</message_results>
Element name Attribute name Description Remarks
message_results -    
message_result - Appears accordingly to the sent message.  
md5_message_attributes Element of MD5 encoded message attribute.
  • Value of "MD5OfMessageAttributes" included in the response from Amazon SQS.
md5_message_body Value of MD5 encoded message body.
  • Value of "MD5OfMessageBody" included in the response from Amazon SQS.
message_id ID given to the sent message.
  • Value of "MessageId" included in the response from Amazon SQS.
status Result of sent message.
  • SUCCESS:Success
  • INVALID_MESSAGE:Fail(False message)
  • INVALID_PARAMETER:Fail(False parameter)
 

Loading Schema on Mapper

Schema is loaded automatically.
For details, refer to "Edit Schema".

Mass Data Processing

Mass data processing is not supported.

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available Component Variables

Component variable name Description Remarks
count Stores the number of sent message.
  • Default value is null.
error_count Stores the number that failed to sent message.
  • Default value is null.
message_category Stores the category of message code corresponding to the occured error.
  • Default value is null.
message_code Stores the code of message code corresponding to the occured error.
  • Default value is null.
message_level Stores the severity of message code corresponding to the occured error.
  • Default value is null.
error_type Returns the error type when error occurred.
  • Default value is null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on the DataSpider Servista version.
error_message Returns the error message when error occurred.
  • Default value is null.
  • The message may vary depending on the DataSpider Servista version.
error_trace Returns the trace information when error occurred.
  • Default value is null.
  • The message may vary depending on the DataSpider Servista version or the client application used.

Specification Limits

Main Exceptions

Exception name Cause Solution
ResourceNotFoundException
Resource definition could not be found.Name:[]
[Destination] is not specified. Specify [Destination].
ResourceNotFoundException
Resource definition could not be found.Name:[<Global Resource Name>]
Resource definition selected in [Destination] is not found. Check the global resource specified in [Destination].
The specified queue does not exist for this wsdl version. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.NonExistentQueue; Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX) Queue that does not exist in [Queue name] is specified. Check the setting of [Region] in the global resource specified in [Queue name] or [Destination].
The security token included in the request is invalid. (Service: AmazonSQS; Status Code: 403; Error Code: InvalidClientTokenId; Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX) [Access Key ID] of the global resource specified in [Destination] includes failure. Check the setting of global resource specified in [Destination].
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. [Secret Access Key] of the global resource specified in [Destination] includes failure. Check the setting of global resource specified in [Destination].

Notes