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 / Split text with "NewLi...
Power Automate
Answered

Split text with "NewLine" Delimeter

(0) ShareShare
ReportReport
Posted on by 34

Hi All,

I am trying to split the below text. but I am not getting the exact output. I am not sure is it because of the file extension. Please help.

Ex:

Employee Details Report
Employee name:Sam     Age:44
Designation:Manager Company:xyz
City:Bangalore     State:Karnataka
Country:India

Emplyee name:Joseph   Age:33
Designation:Salesperson   Company:xyz
City:Chennai
Country:India

AT88_0-1713472400464.png

 

AT88_2-1713461067567.png

AT88_3-1713461104111.png

I wonder why Textlist output is coming like this.

 

  • eetuRobo Profile Picture
    4,607 Super User 2026 Season 2 on at

    Are you sure your files text is actually on different lines and not just one line? It looks like there is just one line since Split text gives you only one list item.
    Is you FileContents variable looking like this when you have extracted the text from a file? (don't mind the questionmark characters). 

    eetuRobo_0-1713461976960.png

     

  • AT88 Profile Picture
    34 on at

    Hi @eetuRobo ,

    Thanks for your response. I think I am facing this issue because of the file extension type. But I am not sure. I am using.TAT and.ebt types of extension files. My fileContents output is like this.

     

    AT88_0-1713472862292.png

     

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AT88 

     

    I don't believe your file extension is causing any issues here. I've successfully created a similar file with the extension .TAT and when using the "Read text from file" action, it works perfectly.

     

    Additionally, you don't need to split your file content. Instead, when reading text from the file, you can store the content as a list (each item being a list item), which will achieve the same outcome for you.

     

     

    Deenuji_0-1713494965885.png

     

    Output:

    Deenuji_1-1713495158112.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • AT88 Profile Picture
    34 on at

    Hi @Deenuji ,

    Thank you for your response. The .TAT file which I am using for automation is having this problem. If I copy the file content and paste it a notepad then it is working fine. But for me "Read text from file" action output is coming like this.

    AT88_0-1713534240974.png

    I need to pause this "file contents" output data into a List for further steps. But got stuck here.

  • Verified answer
    CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AT88 

     

    Could you kindly provide some screenshots demonstrating how you're reading your .TAT file, similar to the example below?

     

    Deenuji_0-1713597814784.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard