Hi everyone,
I'm working on a Power Automate flow where I need to add two integer values from trigger outputs and increment one of them by 1. However, I'm encountering an error, and I can't seem to figure out what's wrong. The error message I'm getting is:
InvalidTemplate
Unable to process template language expressions in action 'Initialize_variable_2' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

Here's the expression I'm using:
add(int(triggerOutputs()?['body/CARCount/Value']),add(int(triggerOutputs()?['body/OFICount/Value']),1))
I have tried adding coalesce to handle potential null values, but I still encounter the same issue:
add(coalesce(int(triggerOutputs()?['body/CARCount/Value']), 0),add(coalesce(int(triggerOutputs()?['body/OFICount/Value']), 0), 1))
The view of the whole flow:
(attached below as it shown bad resolution)
Hence, I would like to hear your opinion in this matter. Thank you!