本文へスキップ

Send Action Errors to a Channel

When an action returns an error, you can send the error details to another channel. This allows you to run error-handling actions or consolidate results...

コピー/保存

このページはまだ日本語では利用できません。現在は英語版を表示しています。ブラウザの翻訳機能をご利用ください。

ブラウザで翻訳する
  • Chrome / Edge: アドレスバーの翻訳アイコン、またはページを右クリックして「日本語に翻訳」を選択してください。
  • Safari: アドレスバーの「aA」メニューから「翻訳」を選択してください。

翻訳メニューが表示されない場合は、ブラウザ設定で翻訳機能が有効になっているか確認してください。

英語版を見る

Send Action Errors to a Channel

When an action returns an error, you can send the error details to another channel. This allows you to run error-handling actions or consolidate results from multiple actions.

If you do not configure error output for an action, processing from that action stops when an error occurs.

Configure Error Output

  1. Open the Studio tab of the Flux App in Soracom Flux Studio.

    For more details, see Open a Flux App.

  2. Open the action for which you want to configure error output.

  3. Error Output: Enable Republish the action error to another channel.

  4. Specify the destination channel:

    • Create a new channel: Enter a name in Channel Name.

    • Select an existing channel: Choose the channel from the dropdown list.

    Error Output settings for an action
  5. Click Update.

    An error output channel is added to the action.

Advanced Settings

Under Error Output > Advanced settings, you can transform the data before sending it to another channel. For details on behavior shared with action output settings, see Advanced Action Output Settings.

Enable Transform data and configure the following fields:

FieldDescription
Content-TypeSpecify the Content-Type of the data to be sent to another channel.
ContentConfigure the transformation content. The transformed result is treated as the error output. Use ${payload.xxx} to reference the input to the action. Use ${error.xxx} to reference the error details.

Example: Send both the action input (${payload}) and the error details (${error}) together.

{
  "payload": "${payload}",
  "error": "${error}"
}

In error output, ${result} is null.

You can extract or compute intermediate data during the Flux App execution. For details on supported expressions, see Use Expressions in Actions.

検索 Escで閉じる / Enterで検索結果