I found a problem using appendRow method of google scripts when the entire sheet has filters enabled, as described in https://stackoverflow.com/questions/78420326/google-script-appendrow-not-working-when-entire-sheet-is-filtered.
The steps to replicate the problem are:
Enable a sheet with the filter enabled in all columns, not only where there's data, like this image.
Filter the column code only with "DSPACE". Note that with all columns filtered, appeared a "Blank spaces" option in the filter; The data vanishes only when trying to insert a row with the filtered value applied.
Now, run the code below:
If the range is not filtered, filtered with "Blank spaces" or the filter is available only to the correct columns, the rows are appended correctly.
Otherwise, the data simply vanish, with no errors, and no row is appended.
Am I missing something?
In your situation, is this thread usful? https://stackoverflow.com/a/65366101
--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/ct6EoAwvelU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/6076b9ba-14e3-4600-90e7-4ac374cea76bn%40googlegroups.com.