+ Reply to Thread
Results 1 to 5 of 5

Google Sheet: Rows are randomly being deleted (disappearing)

  1. #1
    Registered User
    Join Date
    11-24-2021
    Location
    Manawatu, NZ
    MS-Off Ver
    I dont - I use google sheets
    Posts
    2

    Google Sheet: Rows are randomly being deleted (disappearing)

    Hi there! I am using google sheets to track my stocklists for my gallery. We use google sheets because it means I can work remotely and my manager and my business partner can also access the data as needed. We also use google sheets for tracking bookings in our jewellery classes. These sheets are stored on different Google drives.

    We're all very careful and have been using Google Sheets for YEARS. Recently we're experiencing issues where data is randomly disappearing. When you go into the version history, you can eventually find a version where the data exists. In the stocklist, I have found multiple issues where different days have had data disappear, and in different areas of the workbook.

    How can I rule out user error? We all know how to use the filter option, and how to hide and unhide rows and columns. It's not that. The numbering of the rows is still in sequence, so you can see it's not a hidden row. And the filter is off, so it's not hidden that way.

    I have searched for errors like this and there's a few mentions of this happening to others but no answers as to why this is happening. Has anyone heard of this before ?

    We do have all the sheets saving automatically - and we try to close the sheets down at the end of each day.

    Any ideas?
    I am grateful for any help you can offer.
    Cheers
    Vaune

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheet: Rows are randomly being deleted (disappearing)

    First things to check:
    Are the permissions set to specific users?
    Do those users allow anyone else access to their computers?

    You might be able to implement an Apps Script that timestamps and logs the email address of the user who performed the edit, and possibly also sends an email notification (with the timestamp and user email).

  3. #3
    Registered User
    Join Date
    11-24-2021
    Location
    Manawatu, NZ
    MS-Off Ver
    I dont - I use google sheets
    Posts
    2

    Re: Google Sheet: Rows are randomly being deleted (disappearing)

    Hi there, thanks for looking into this.
    No permissions are set at this stage - we all need to have the same level of access. It is possible others are able to access the computers - but it should
    all be staff / co workers (not total randoms or kids)

    This App script you speak of... I am not overly computer tech savvy - can you recommend one?
    Cheers
    Vaune

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheet: Rows are randomly being deleted (disappearing)

    Since anyone can access the files, this is the first place to make enquiries, and consider restricting who has access.

    Using an apps script to send email when file edits are done will mean getting emails for EVERY EDIT, so if there are many edits every day then your email will be flooded. This solution should only be used when there are minimal edits expected and you simply want to catch when the file is edited. So if this is the case then you should also consider setting up a device (tablet, smartphone etc) to give banner/sound notifications whenever email is received.

    Heres a basic procedure.....

    Open the G-Sheets file

    Go to `Extensions > Apps Script`

    Paste the following code before or after other existing code

    Please Login or Register  to view this content.
    Change the email address to oyur own email address

    Click the `Save Project` icon (it's to the left of the Run icon)

    Click on the clock icon on the left hand side to open the Trigger settings.

    Click the blue `+ Add Trigger` button in the lower right corner of your screen.

    Choose the following settings to configure your trigger correctly:

    * Function to run: processEdit
    * Deployment: Head
    * Event source: From spreadsheet
    * Event type: On edit

    Then click `Save` to create the trigger.

    When you click `Save`, you might be asked to authorise your script again and grant it additional permissions. In particular, you need to "Allow this application to run when you are not present". Once you click `Allow`, the trigger will be created.

    Close the Apps Script editor and return to your file.

    Edit the file to ensure the trigger is working and sending email.
    Last edited by janmorris; 11-25-2021 at 07:08 AM.

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheet: Rows are randomly being deleted (disappearing)

    Here is a more complete script that will notify you WHO and WHEN the file was edited, but it will require you to enable Google Drive API in the Google Developers API Console before it will work.

    After you have enabled the Google Drive API in the console, then go into Apps Scripts, and enable Drive API in the Apps Script "Services"

    Then go back to the editor window and put this script in place, and edit to your needs:

    Please Login or Register  to view this content.
    After the script has been saved, go to Triggers (on the left, and setup a trigger to run "On Edit", and save it.

    Now try running the script and authorise it when prompted to do so.

    Go back to your file, and edit it, then check your email.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Google sheet: Help to attachment file from Google Drive and send email fill in Google Form
    By sbv1986 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-01-2021, 10:47 PM
  2. [SOLVED] Rows are being deleted, but not pasting to appropriate sheet
    By sniper1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2020, 07:05 PM
  3. How to randomly delete X amount of rows from a sheet in a single command?
    By orange109 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2018, 04:33 AM
  4. Treeview control randomly deleted itself
    By Jerbinator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2016, 02:18 PM
  5. Button on Sheet Disapears when columns or Rows are deleted
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2015, 04:20 PM
  6. update target sheet with rows as they are added or deleted to master sheet
    By RLR31064 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2014, 05:41 PM
  7. How to randomly distribute rows from sheet 1 to sheet 2 & 3 with V
    By luk_sr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1