Write Document
Operation name
Write Document
Function overview
Writes input data to Microsoft Azure Cosmos DB collection.
Data model
The data model of this component is table model type.
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used 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 connection resource.
|
|
Collection |
Required |
Available |
Select or enter a collection name to be read. |
|
Update when id value matches |
Optional |
Not available |
Select whether or not to overwrite with input data when there's a document in the collection with the same id value as that of the input data. |
|
Schema definition |
Required |
- |
Specify item list for the collection specified in Collection. Added rows will be the target items to write. Each target item can be operated with the following buttons:
|
|
Schema definition/Item name |
Required |
Available |
Enter an item name of the collection specified in Collection. |
|
Schema definition/Type |
Required |
Not available |
Select the type of Item name. |
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Update collection list |
Get collections from the specified destination and set them in Collection. |
|
Update schema definition |
Get type information from the document registered in the specified collection and set it to Schema definition. |
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Input schema
The number of columns varies depending on the Attribute list settings.
For schema structure, refer to Table model type .
Output schema
None.
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing isn't supported.
Parallel Stream Processing
PSP is supported.
For details on PSP, refer to Parallel Stream Processing.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of added or updated documents (insert_count + update_count) is stored. |
|
insert_count |
The number of added documents is stored. |
|
update_count |
The number of updated documents is stored. |
|
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|
Notes
-
The specifications are subject to change without any prior notification depending on the changes in Azure Cosmos DB specifications.