I have a flow that registers leave days.
* one sharepoint list keeps the leave days on the employee record
* one sharepoint list I create a transaction record
-> the flow takes the transaction record and updates the leave column on the employee record.
That mostly works. But then for some reason, every now and again it doesn't.
Whilst everything is exactly the same! (at least as far as I can see).
Mysterious.
here is a screenshot

The Compose action calculates the new leave.
the condition Sick Leave checks if leave does not go under zero
The return from the compose is always in the same format.
And sometimes the Condition Sick leave gives this error:
"Unable to process template language expressions for action 'Condition_Sick_Leave' 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.'."
below a screenshot

As you can see the compose action returns a number. Which is correct.
Then the condition decides it cannot work with this number.
this is the condition code: int(outputs('Compose_SickLeave'))
and again: normally it works with the result from the Compose action.
hope someone knows that this might be.
power automate can be complex, but it should not be mysterious.
thanks in advance
Martijn