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 / Parameter Length Excee...
Power Automate
Answered

Parameter Length Exceeded 5000 Characters

(0) ShareShare
ReportReport
Posted on by 82

Hi, 

I have an automate flow that uses a custom Text Classification Model. The flow triggered when new email arrives, the flow will convert email body from HTML to Text. Then, AI Builder will be used to analyze the converted text and provide the classification accordingly. 

Question:  I have encountered the issue of flow interrupted when Text exceeded 5000 characters limit. Hence, I try to use substring to only read first 5000 characters, but it failed again when my text has less than 5000 characters. This was the syntax i used. 

 

substring(outputs('Compose_10'),0,5000)

 

Is there any other formula I could use to limit the flow to only read the first 5000 or less characters and not interrupting the flow? 

 

Thank you. 

Categories:
I have the same question (0)
  • Verified answer
    plarrue Profile Picture
    Microsoft Employee on at

    Hi @Xinlin ,

     

    Did you also try with a take instead of Substring ?


    take.png

     

    For example in this flow I want to use the first 255 characters, so I am using this expression for the text in input
    @{take(triggerBody()['text'],255)}

     

    Hope it helps!

  • Xinlin Profile Picture
    82 on at

    Hi @plarrue, thanks a lot for your input! Tried out your solution and it is exactly what I need at the moment. Thank you! 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard