Sometimes this works and sometimes it doesn't. I have a Google Sheet with formulas containing ARRAYFORMULA and IMPORTRANGE formulas. The values are correctly displayed on the sheet. However, when I use a script to getValues or getDisplayValues, the script returns #N/A. This doesn't happen every time, either. Sometimes, if I refresh the sheet a few times, it works.
Here is an example formula that returns data in the sheet, but returns #N/A in the script:
=ARRAYFORMULA(if(A2:A="","",VLOOKUP(A2:A,{{arrayformula(left(Planner!D5:D13,find(" ",Planner!D5:D13)-1))},{Planner!W5:W13}},2,0)))
flush()
method before get data from the cell: stackoverflow.com/questions/41175326/… – Yuri KhristichUtilities.sleep(1000)
. How many such formulas you have on your sheet? Is it possible you made too many requests (per second) and hit the quota? – Yuri Khristich