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 / Convert CSV files to E...
Power Automate
Unanswered

Convert CSV files to Excel workbooks

(0) ShareShare
ReportReport
Posted on by 14
Issue with Tutorial: Convert CSV files to Excel workbooks
‎08-02-2022 09:46 AM

I followed this official tutorial for converting a .csv file to an .xlsx file [Convert CSV files to Excel workbooks - Office Scripts | Microsoft Docs].  but when I try to 

 // Remove any Windows \r characters.
    csv = csv.replace(/\r/g, "");

got below error , also before do not use script , only use power automate JSON, same problem, could not remove hte carrige return

Could someone help?

Thanks 

Line 5: Cannot read properties of undefined (reading 'replace')
Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Your expression should use single quotes

     

  • Lis2 Profile Picture
    14 on at

    no still the same error

  • Lis2 Profile Picture
    14 on at

     It seems I have the problem to remove the carrige return in power automate, I have tried manyways showed in youtube, no way is working in my laptop, that is the reason I would like to try to use script , but seems still not working, could anyone help?Thanks so much

  • Lis2 Profile Picture
    14 on at

    Thanks Alex, I checked Encodian, 50 conversion per month is not sure enough for us. We could not build a flow with the such a small limit. ☹

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
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard