abort-record
The abort-record Instruction stops processing of the current Record and outputs a message in the log. Use with the conditional Instructions to prevent data being imported if conditions are met.
action |
"abort-record" |
message |
The message to output in the error log. |
See also log-error, which can be used to output informational errors in the log without preventing the Record from being imported.
Example
{
"action": "if-exists",
"source": "researchers",
// use 'else' for "if doesn't exist" condition
"else": [
{
"action": "abort-record",
"message": "Researchers information not found"
}
]
}