Hello All,
I am using below formula to cut my number string till 2 decimal places.
float(substring(string(),0,add(indexof(string(),'.'),3)))
after inserting dynamic value
substring(string('outputs('Create_item')?['body/Available_Hours']'),0,add(indexof(string('outputs('Create_item')?['body/Available_Hours']'),'.'),3))
but for some records flow is failing with below error
Error: Unable to process template language expressions in action 'Send_an_email_(V2)_2' inputs at line '0' and column '0': 'The template language function 'substring' parameters are out of range: 'start index' and 'length' must be non-negative integers and their sum must be no larger than the length of the string. Please see
my data value is generally like
121.188590785908
103.997703585366 17.190887200542 |