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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The length of substrin...
Power Automate
Unanswered

The length of substring can't be longer than '5' which is the length of the source string.

(1) ShareShare
ReportReport
Posted on by

Keep getting this error and do not know how to fix:

Goal is to find the values to the right of X-User-ID:

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    I have made a video tutorial about this. Please have a look and comment.

     

    https://youtu.be/U8LnANTHNgs

     

    Thanks

  • grantjenkins Profile Picture
    11,063 Moderator on at

    @Anonymous Are you able to show the output you get from your Html to text action? It's difficult to know exactly what is required unless we see that output as it sometimes keeps the data on a single line, and splits to new line in other cases.

  • Community Power Platform Member Profile Picture
    on at

    Amazing work!!! You blow my mind with the ease in which you put this automation together 🤯

    Thanks so much for all of your help. Truly above and beyond anything I imagined in terms of a solution ✔️ 

  • Community Power Platform Member Profile Picture
    on at

    Thanks for ask, the problem was solved last night by @abm 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    Thanks so much for the lovely comments.

     

  • grantjenkins Profile Picture
    11,063 Moderator on at

    If you're interested - this is how I would have done it, assuming the data was on the same line.

     

    Based on the following email body.

    grantjenkins_1-1675254343026.png

     

    Full flow below.

    grantjenkins_0-1675254312075.png

     

    Expression used in the Compose is below that would extract out your data.

    trim(first(split(last(split(outputs('Html_to_text')?['body'], 'X-User-ID:')), decodeUriComponent('%0A'))))

     

    Output of the flow run.

    grantjenkins_2-1675254404808.png

     

  • Community Power Platform Member Profile Picture
    on at

    Thank you so much for your reply.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard