Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Name | Required | Not Available | Enter the name that appears on the script canvas. |
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Destination | Required | Not Available | Select Global Resources.
|
|
Input file | Required | Available | Input the file path of the CSV format file created by [Generate Multi Data File] process.
By pressing the [Browse] button, an file chooser will be activated and a file can be chosen. |
|
Operation Type | Required | Not Available | Select the job operation type.
|
|
Handling of null values | Required | Not Available | Select, in the case that the input data is null for the update target field, either to overwrite the field by null or to skip it.
|
|
Maximum number of input rows | Required | Available | Specify the maximum number of data rows in the input file. If the rows exceed the maximum number, an error occurs. |
|
Item name | Description | Supplement |
---|---|---|
Preview | Display the contents of the file specified by [Input file] by activating a previewer. |
|
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Encoding | Required | Available | Select or input the character encoding of the file to be read.
When input, you can specify encode supported in Java SE Runtime Environment. Refer to "Supported Encodings"(http://docs.oracle.com/javase/7/docs/technotes/guides/intl/encoding.doc.html) for details. |
|
Base64 field input form | Required | Not Available | Specify the input data type of items in Base 64 data type.
|
|
Number of input data fields to be added to the output schema | Required | Not Available | Select the number of input data items to be added to output schema.
|
|
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Large Data Processing | Required | Not Available | Select a Large Data Processing Settings.
|
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Comment | Optional | Not Available | You can write a short description of this adapter. The description will be reflected in the specifications. |
<?xml version="1.0" encoding="UTF-8" ?> <table> <row> <column>result_id</column> <column>result_is_success</column> <column>result_error_status_code</column> <column>result_error_message</column> <column>result_row_number</column> <column>target_object</column> <column>input_value_column_index1</column> : <column>input_value_column_index30</column> </row> <row> : </row> </table>
Element Name | Column Name(Label/API) | Description | Supplement |
---|---|---|---|
row | Repeats as many times as the number of data rows exist in the input file. | ||
column | result_id | Salesforce ID is output. | |
result_is_success | Success Flag is output.
|
||
result_error_status_code | The status code, returned by the Salesforce API, is output. | ||
result_error_message | The message returned by the Salesforce API is output. | ||
result_row_number | Number is output based on the placement of the node within the data given to the input schema. | ||
target_object | The updating target object API name of this record is output. | ||
input_value_column_index(n) | The values of the input data items are set in the order of rows from the beginning. If the number of items is less than the selected value, the remaining schema will be set by null. The schemata of the numbers specified by [Number of input data fields to be added to the output schema] are added. |
Component Variable Name | Description | Supplement |
---|---|---|
record_count | The number of data read is stored. |
|
success_count | The number of data that was successful in the updating processing is stored. |
|
error_count | The number of data that was unsuccessful in the updating processing is stored. |
|
server_url | The end point URL after Login is stored. |
|
session_id | The session Id is stored. |
|
message_category | In the case that an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code | In the case that an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level | In the case that an error occurs, the importance of the message code corresponding to the error is stored. |
|
operation_api_exception_code | The ExceptionCode of the occured error, in a case of API error, is stored. |
|
operation_error_message | If an error occurs, the error message of the occured error is stored. |
|
operation_error_trace | When an error occurs, the trace information of the occured error is stored. |
|
Category | Description | Supplement |
---|---|---|
Specification Requirements | One record of "Account" data and multple records of "Contact" data that are tied to the "Account" data need to be written. If any of data writing fails, it needs to be handled as failure-for-all. |
|
Settings | A file is output by the [Generate Multi Data File] process, in the order of "Account" data and then "Contact" data. An updating is performed by the [Write Multi Data] process, based on the contents of the output file. Specify [Checked] in [AllOrNone Header (allOrNone)] of the global resource property. |
|
Number in the Image | Name | Description | Supplement |
---|---|---|---|
(1) | Data Input Image | This is the data input image, for writing to the "Account". | |
(2) | Data Input Image | This is the data input image, for writing to the Contact.
Here, "Account.AccountCode__c" is specified in the [Relationship definition] |
|
(3) | Settings for Creating Multiple Data File | Each input data (1) and (2) is written to a file in this order by the [Generate Multi Data File] process. Specify "/data/Sample.csv" as [Output File] for both. |
|
(4) | Script Image | This is the script implementation image of this description. | |
(5) | Settings for Writing Multiple Data | An update is performed based on the file with accumulated data by the [Write Multi Data] process . Specify "/data/sample.csv" as [Input file] Specify "3" for [Number of input data fields to be added to output schema]. |
|
(6) | Result Data Writing Mapping Image | This is the mapping image of outputting the result data to a CSV file after writing. Since the number "3" is specified for [Number of input data fields to be added to output schema] in (5), the values of the input data items can be handled up to three items from the beginning as well as the results data. |
|
(7) | Resulting Data Image(With allOrNone) | This is the resulting data image of writing with the setting of [Checked] for [AllOrNone Header(allOrNone)] in the global resource property. If one or more errors occur regarding the data in a Insert call, all records in the same call will be rollbacked. |
|
(8) | Resulting Data Image(Without allOrNone) | This is the resulting data image of writing with the setting of [Not Checked] for [AllOrNone Header(allOrNone)] in the global resource property. Even if one or more errors occur regarding the data in a Insert call, a rollback will not take place and the records updatings become effective. |
Account 1, Account 2, Contact 1, Contact 2, Contact 3, Case 1, Account 3, Account 4, Contact 4 |
File Name | Extention | Encode | Newline Character |
---|---|---|---|
Any | CSV | Any | Auto |
Row Name | ID | Description | Number of Columns | Position |
---|---|---|---|---|
Table Row | * | Specify one object API name. | 1 Column. (excludes the ID column) | Output to either the beginning of the file or after the existing [Data Row]. |
Schema Row | ** | Define a comma-delimited list of Schema API names to write. Define in the following format when updating a read attribute by external ID. "Reference Field Name:Relationship Name:Related Object Name:Foreign Key Field Name" |
Write fields of the target schema. (excludes the ID column) | Output after the [Table Row]. |
Data Row | (empty) | Specify the data of the records to be written as a comma delimitated string. Please ensure the order of the columns to be output matches the field order specified in the [Schema Row]. |
Write fields of the target schema. (excludes the ID column) | Output after the [Schema Row]. Continue to output Data Rows when representing more than one record. |
Number in the Image | Name | Description | Supplement |
---|---|---|---|
(1) | Table Name | Select the table whose structure to be shown. | |
(2) | Table Information | Display the available operations on the selected table. | |
(3) | Length | Display the Number of Digit of item | |
(4) | External ID | Display whether or not the object item is set as an external ID. | |
(5) | Createble | Display whether or not it can be set a value when adding data. | |
(6) | Updatable | Display whether or not it can be set a value when updating data. | |
(7) | Nullable | Display whether or not it can be set NULL when adding or updating data. | |
(8) | Default value | Display whether or not Salesforce automatically set a default value when adding data. | |
(9) | Reference To | Display the referring object name if the item is in reference relationship or master-servant relationship. |
Exception Name | Reason | Resolution |
---|---|---|
ResourceNotFoundException Resource Definition is Not Found. Name:[] |
[Destination] is not specified. | Specify [Destination]. |
ResourceNotFoundException Resource Definition is Not Found. Name:[<Global Resource Name>] |
The resource definition selected in [Destination] cannot be found. | Verify the global resource specified in [Destination] |
java.net.UnknownHostException | This exception occurs when the PROXY server specified in the global resource cannot be found. | Verify the condition of the PROXY server. Or verify [Proxy Host] of the global resource specified in the [Destination]. |
|
A time-out has occurred while connecting to Salesforce. | Verify the network condition and Salesforce server condition. Or check [Connection timeout(sec)] of the global resource specified in the [Destination]. |
|
A time-out has occurred while waiting for a responce from the server after connecting to Salesforce. | Verify the network condition and Salesforce server condition. Or check [Timeout(sec)] of the global resource specified in the [Destination]. |
jp.co.headsol.salesforce.adapter.exception.SalesforceAdapterIllegalArgumentException | Invalid value is set for the property of Salesforce adapter. | Check the error message, and verify the settings. |
com.sforce.soap.partner.fault.LoginFault | Login to Salesforce has failed. | Check the ExceptionCode or error message, and refer to the information about this type of error in Salesforce-related documents etc. |
com.sforce.soap.partner.fault.UnexpectedErrorFault | An unexpected error has occured while processing to Salesforce. | Check the ExceptionCode or error message, and refer to the information about this type of error in Salesforce-related documents etc. |