Skip to main content

Notifications

Community site session details

Community site session details

Session Id : uf0pvBHgCoBKSnWcbG2kw+
Copilot Studio - Topic Creation & Management
Unanswered

Unable to read undefined properties (reading 'getRangeByIndexes')

Like (0) ShareShare
ReportReport
Posted on 12 Sep 2024 06:11:39 by

Hello
My flow consists of converting a .csv file to an excel file .xlsx,
I use the script found at: https://learn.microsoft.com/en-us/office/dev/scripts/resources/samples/convert-csv
But when you try to convert the file, it doesn't work. It throws me the following error:
We couldn't run the script. Try again.
Runtime error: Line 40: Unable to read undefined properties (reading 'getRangeByIndexes')
clientRequestId: fbae89f9-4d72-422c-8871-d5cc00be533e
Do you know how I could solve it?
Thank you
Do you know how I could solve it?
Thank you 
Categories:
  • Suggested answer
    DL-18101455-0 Profile Picture
    2 on 18 Oct 2024 at 15:10:22
    Unable to read undefined properties (reading 'getRangeByIndexes')
    Hello,
     
    I got the same issue and I found out that the script applies on the sheet "Sheet1" (first line of the function : let sheet = workbook.getWorksheet("Sheet1");)
     
    Check if your template file has one sheet with this name. As I use a French version of Excel, the default sheet is called "Feuil1". So I changed the value in the script to match and it worked.
     
    Hope this will helps you.
     
    Regards

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Loading started
Loading complete