I am getting the below error in the flow was setup some time ago and just now started getting this error, however was working fine before.
The 'start index' for function 'substring' must be equal to or greater than zero and must be less than '0' which is the length of the string.
If someone please help me on this would be appreciated
Hi @asaleemi
Based on the error message, there is something wrong with your substring function.
The syntax of the substring function is:
substring('<text>', <startIndex>, <length>)
where the startIndex should be equal or greater than 0.
Here is the doc of showing substring examples for your reference:
Power Automate Substring Function Explained By Examples (zeitgeistcode.com)
Also, could you please share how you populate the initialize variable action if possible?
Thank you.
Best regards,
Sylvia
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional