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 / Extra characters in te...
Power Automate
Unanswered

Extra characters in terminal session get text response

(0) ShareShare
ReportReport
Posted on by 10

I'm using Get Text from a Terminal Session. In some cases the value returned has extra characters at the end of the text string. This behavior does not occur all the time. In my last test run of 88 records only 3 returned the extra characters. The rest returned as expected. Does anyone have any suggestions?

 

sschoenherr_2-1698083648020.png

 

sschoenherr_0-1698083481313.png

 

Expected Result: First 4 characters not valid

Actual Result: See below

 

sschoenherr_1-1698083481322.png

 

 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sschoenherr 

     

    was there an extra text in terminal window by which it has extracted the details ?

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • sschoenherr Profile Picture
    10 on at

    There was no extra text at the end. I was able to generate another similar outcome so you can see the terminal window vs. the returned text. This one again has a couple extra characters in the returned variable.

     

    sschoenherr_0-1698090778006.png

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sschoenherr 

     

    You can remove those by replacing all with '' using regex pattern like below:

    Nived_Nambiar_0-1698127124926.png

     

    Where %TerminalText% is the variable which is extracted from mainframe screen 

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • sschoenherr Profile Picture
    10 on at

    Thank you, that seems to work for most cases. Sometimes, however, regular characters appear in the extra characters at the end of the original extracted string. After the RegEx replacement test today I was getting "...OF CODE TABLE filep" with an extra "p" after the word file. Is there a way around this? I'm thinking it might not always be one character left at the end since what is picked up as extra characters seems to vary.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sschoenherr 

     

    Ok let's give a try in another way, just tell what are the corrdinates when the cursor is at "e" character of file which is at the end :)?

    Nived_Nambiar_0-1698248958536.png

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • sschoenherr Profile Picture
    10 on at

    The coordinates for "e" are 24/077.

    sschoenherr_0-1698252563644.png

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sschoenherr 

     

    for Duplicate's D what is the coordindate, is it 24/001 ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • sschoenherr Profile Picture
    10 on at

    The "D" coordinate is 24/002. I ran a few more records and got a couple different messages in AS400. They always start at 24/002, but the ending coordinate varies depending on the message.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @sschoenherr 

     

    If you can take maximum column in mainframe screen , take the difference b/w start and end column at same row and consider it as text length and then pass it as text length parameter like below

    Nived_Nambiar_0-1698334906702.png

     

    I am not sure whether that would work, but it is worth giving try that way 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard