Getting error "The action you're trying to perform is causing a fatal error and cannot be performed" on this line-
sheet.getRange(m, k, enD, 1).setValues(sheet.getRange(m, k, enD, 1).getValues());
My code has been running without errors for a week but since yesterday I am getting this error randomly. Sometime it works sometime it doesn't. I don't wish to disclose the calculations and that's why I am using this.
Any idea why this is happening? I tried reducing 'enD' values from 40s to 10s or 20s. Doesn't help. Tried splitting the code - read values using getValues() first and then write using setValues but again getting error on getValues() part.