web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Substring error message
Power Automate
Unanswered

Substring error message

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have exported and imported a flow, nothing has changed, but I am now getting the following error in one of the Expressions in the flow and I cannot work out why.

 

InvalidTemplate. 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.https://aka.ms/logicexpressions#substring

 

I have looked at the old flow and the information is exactly the same.  I would be grateful for any advice!

 

Many thanks

Maggie

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,767 Most Valuable Professional on at

    Hi @Maggiembd,

     

    Like the link in the error already mentions. It is worth double checking what you are using as the text, start index and length.

    substring('<text>', <startIndex>, <length>)

     

    Can you share your specific substring expression, what are you using in your startIndex parameter?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard