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 / Import tab separated f...
Power Automate
Answered

Import tab separated file into instant flow (manually trigger a flow)

(0) ShareShare
ReportReport
Posted on by 64

Hi,

 

I imported a tab-separated file into an instant flow. However, instead of the text, I am seeing a string of gibberish characters. How can I do to get the actual text as seen in the file?

 

JLKM_0-1654595613362.png

 

Thanks in advance!

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JLKM ,

     

    You could use base64toString function.

    vxiaochenmsft_0-1654758658581.png

     

    Best Regards,

    Wearsky

  • Josephkm_lim Profile Picture
    64 on at

    HI Wearsky

     

    Unfortunately, this didn't work.

     

    Now I wonder if it has something to do with the file encoding. I just noticed that my file (when opened with Notepad) is of UTF-16 instead of UTF-8?

    JLKM_0-1654825865679.png

     

    Would you know anything about this?

     

    Thanks a mil!

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JLKM ,

     

    Yes, the root cause is the utf-16.

    At my knowldege , powerautomate cannot process utf-16 files.

     

    Best Regards,

    Wearsky

  • Josephkm_lim Profile Picture
    64 on at

    Hi Wearsky

     

    Do you know if there is any way or function to decode?

    After using decodeBase64(), I got another set of gibberish like this:

    JLKM_0-1654828258601.png

     

    Is it possible to decode this?

     

    Thank you

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JLKM ,

     

    As far as I know, power automate can display Utf-8 encoded strings. So when your text file is in utf-16 encoded format, it will parse it incorrectly, i.e. garbled.

    Maybe some 3rd party connectors or apis support utf-16.

     

    Best Regards,

    Wearsky

  • Verified answer
    Josephkm_lim Profile Picture
    64 on at

    Hi Wearsky

     

    Found this thread: https://powerusers.microsoft.com/t5/Building-Flows/Parse-CSV-error/td-p/1315339

     

    So, I tried Sharepoint 'Create file' action with the triggerBody()?['file']?['contentBytes'] and a different file name and a .txt extension. Then 'Get file content' with the Id from Create file. I was able to see the content as intended, no more garbled.

     

    Is there a way to change the extension on the fly without going through Sharepoint or OneDrive?

     

    Thanks

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JLKM ,

     

    Smart solution! I think It uses sharepoint api to convert utf-16 text files to utf-8 encoding format in flow.

    To be honest, I don't have a better idea.

     

    Best Regards,

    Wearsky

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 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard