Hi
I have a flow that is used every night to check and updates ages in a sharepoint list if needed - it had worked in the past but the last two nights it has been failing.
The exact error is:
Action 'Compose_1' failed: Unable to process template language expressions in action 'Compose_1' inputs at line '0' and column '0': 'The template language function 'sub' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#sub for usage details.'.
The Compose_1 is a function with this code:
formatNumber(sub(outputs('GetAge'),0.5),'0')
The GetAge which is referenced looks like this (field_2 is DOB):
div(div(sub(ticks(variables('Today')),ticks(item()?['field_2'])),864000000000),365.25)
Any ideas on what has caused the issue?