Skip to main content
July 16, 2025
Question

Expression Rule Error invalid index: Cannot index property 'status' of type String into type list) (Data Outputs)

  • July 16, 2025
  • 4 replies
  • 0 views

Hi,

Facing below error while executing the Expression rule -

Expression evaluation error in rule '<Rule Name>' (called by rule '<Rule Name>') at function 'reduce' [line 10]invalid index: Cannot index property 'status' of type String into type list) (Data Outputs)

The expression rule code is 

cast(
typeof(ri!cdt),
reduce(
a!update(data: _, index: _, value: _),
ri!cdt,
merge(ri!fields, ri!newValues)
)
)

Please help what is missing.

Thanks in advance

    4 replies

    shubhama926776
    July 16, 2025

    Could you share  what exactly you want to achieve it?

    stefanhelzle0001
    July 16, 2025

    This means that there is no field called "status" in the provided list value. Could it be that you pass a list of CDTs into that expression, instead of a single CDT item?

    harshas2775
    July 16, 2025

    Can you check the output of this expression and confirm if the fields from this expression's output are available in the cdt

    merge(ri!fields, ri!newValues)
    July 16, 2025

    sure checking