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 / Office 365 replace all...
Power Automate
Unanswered

Office 365 replace all issue

(0) ShareShare
ReportReport
Posted on by 4

Good Morning, 

Yesterday the code below was working. Today i receive the message that replaceAll: You cannot perform the requested operation. Was there an update that modified how replaceAll works?  i'm looking to see if there is a work around for this at this time. 

 

Thank you,

Ray

excel script issue.PNG
Categories:
  • RRV1 Profile Picture
    4 on at
    i'm noticing lots of views, maybe if i put the code directly in? ^_^  basically i have a table where there is a formula. in that formula, there is a date section. the code below used to work very well, but not it won't run.  the main issue is that the script will no longer run because of replaceAll(). 
     
    Please let me know if there may be something else you need more information, or if anyone else has run into this issue. Thank you in advance. 
    function main(workbook: ExcelScript.Workbook) {
        // Your code here
        
      let range = workbook.getTable("Table1").getColumn(1).getRangeBetweenHeaderAndTotal()
      range.replaceAll("2.08", "2.09", { completeMatch: false, matchCase: false });
      
    }
  • RRV1 Profile Picture
    4 on at

    Update: So the script works when i use it through the web office, but it will not if i use the desktop version of excel.  Sadly i need it to work with the desktop version as the data comes from files on a network drive. any tips or suggestions?

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard