0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

The variable action '変数を初期化する' of type 'InitializeVariable' cannot be nested in an action of type '条件(品番がNUllかどうか)'.' で失敗しました。

Last updated at Posted at 2025-01-09

変数を初期化するがハンドでレコードを作られた場合にNullになっていて、たまにエラーになります。
そこで、分岐でnullなら処理をしないようにしたいと思いました。

しかし、保存するとエラーになりますね。

image.png

エラーメッセージで探したら同じような内容が出てくるけど、読んでも回避策は理解できませんね。
要は、できませんってこと?相変わらず使えないですね。

回避策

結局IFの分岐の中では変数の初期化は使えなかったので、変数の初期化の中でIFを使いました。

image.png

変数を初期化するところの数式

IF(empty(triggerOutputs()?['body/OData__x54c1__x756a_']),'_',trim(triggerOutputs()?['body/OData__x54c1__x756a_']))

image.png

また、分岐ではNullの時に _ にしたので、 _の時に後続処理が走らないようにしました。

image.png

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?