Skip to content

Exception functions

Every function in this family, with its signature and examples. Each example runs as a test of the language. See Language basics for how calls, types, and operators work.

raiseException

Records an exception for the current row and keeps the row; field pins the ticket's column and key (text or number; an empty key is the blank text "") its identity across runs.

raiseException()
raiseException(field)
raiseException(field, key)

Operation formulas only.

  • if(prop("owner").empty(), raiseException().setProp("message", "Owner is missing").setProp("severityLevel", 3)): Rows without an owner raise a level 3 exception and stay in the output
  • raiseException("price", concat(prop("owner"), prop("ISIN"))).setProp("type", "Pricing"): One Pricing ticket on the price column per owner and ISIN

setProp

On an exception, sets an exception field: "message", "severityLevel" (alias "severity", an integer 1 through 5), "type", or any other Exception Management field (status, assignee, custom properties) as text.

raiseException().setProp(name, value)

Also callable as receiver.setProp(…), with the receiver as the first argument. Operation formulas only.

raiseException()
  .setProp("message", "Owner is missing")
  .setProp("severity", 3)
  .setProp("type", "Data quality")
  .setProp("status", "investigating")

Result: An exception with message "Owner is missing", severity level 3, type "Data quality" and status investigating