> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/extending-drivetrain/google-sheets-add-on/google-sheets-add-on-troubleshooting.md).

# Troubleshooting the Google Sheets add-on

Error messages and fixes for the Drivetrain add-on for Google Sheets

Errors appear as a message at the top of the add-on sidebar for five seconds. A failed resync shows `Failed to sync "<import name>": <reason>`. Errors from Drivetrain include the HTTP code, for example `... returned code 404`. Find the reason below.

## Signing in

| What you see                                                                                                          | Cause                                                      | Fix                                                                                                            |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| Dialog: `Popup blocked! Please allow popups for this website.`                                                        | Your browser blocked the sign-in pop-up.                   | Allow pop-ups for Google Sheets, then click **Login** again.                                                   |
| Reason contains `returned code 401`, or the sidebar shows **Login to sync data between Drivetrain and Google Sheets** | Your Drivetrain session expired or you signed out.         | Close and reopen the sidebar, enter **Your subdomain** and click **Login**. Imports and the schedule are kept. |
| "Service unavailable" when authorizing                                                                                | Several Google accounts are signed in in the same browser. | See the [FAQ](https://integrations.drivetrain.ai/extending-drivetrain/google-sheets-add-on.md#faq).            |

## Importing and syncing

| What you see                                                                                                            | Cause                                                                                                                                                    | Fix                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Reason contains `returned code 404` and `Chart not found`                                                               | The chart id is wrong or the widget was deleted.                                                                                                         | Copy the id again with **Copy chart id**, then **Edit** the import.                                                                  |
| Reason contains `returned code 403` and `This board is not yet shared with you. Please ask the owner to share with you` | You don't have access to the board.                                                                                                                      | Ask the board owner to share it with you.                                                                                            |
| Reason contains `returned code 400` and `Invalid value for parameter 'chartId'`                                         | The chart id isn't a number (for example, a board link was pasted).                                                                                      | Paste only the number copied with **Copy chart id**.                                                                                 |
| Reason contains `returned code 400` and `The board does not exist or may be deleted`                                    | The widget's board was deleted.                                                                                                                          | Remove the import, or point it to a widget on another board with **Edit**.                                                           |
| Reason contains `returned code 500`                                                                                     | Drivetrain couldn't produce the export: the chart id belongs to a widget that can't be imported (a chart, KPI or text box), or the board failed to load. | Check the widget is a Table, Plan Table, List or Canvas table and that **Download as Excel** works on it in Drivetrain, then resync. |
| All imports disappeared, or the sidebar shows the **Import** start screen                                               | Your session expired or the connection dropped while the sidebar was reading imports. Imports aren't deleted.                                            | Close and reopen the sidebar and **Login** if asked.                                                                                 |
| `Tab not found for id <number>`                                                                                         | The tab the import writes to was deleted.                                                                                                                | **Edit** the import and choose another tab in **Import in sheet**.                                                                   |
| `Chart export is not a readable XLSX file ...`                                                                          | Drivetrain returned something other than the file.                                                                                                       | Resync. If it keeps happening, contact Drivetrain support with the chart id.                                                         |
| A deleted import reappears within a minute                                                                              | The delete failed in Drivetrain.                                                                                                                         | Delete it again.                                                                                                                     |
| `Failed to load sync schedule: <reason>`                                                                                | The sidebar couldn't read the schedule.                                                                                                                  | Close and reopen the sidebar.                                                                                                        |
| Import named `Untitled chart`                                                                                           | The add-on couldn't read the widget's name when the import was added.                                                                                    | Data still syncs. To refresh the name (also after renaming a widget), delete the import and add it again.                            |
| **Copy chart id** is missing from the widget menu                                                                       | The board is in edit mode, or the widget isn't a Table, Plan Table, List or Canvas table.                                                                | Leave edit mode. Charts can't be imported.                                                                                           |

## Data looks wrong

| What you see                                               | Cause                                                                              | Fix                                                                                                                                                                             |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Rows or columns are missing                                | Collapsed groups import only their summary row.                                    | Turn on **Expand rows by default** / **Expand columns by default** for the table, save the board and resync.                                                                    |
| Data differs from what you see on the board                | The import uses the widget's saved settings and the access of whoever synced last. | Save the board's changes, then resync yourself. See [Permissions](https://integrations.drivetrain.ai/extending-drivetrain/google-sheets-add-on.md#permissions-and-data-access). |
| Values or formulas you typed in the import tab disappeared | Each sync clears the tab's used range.                                             | Keep your own work on another tab that references the import tab.                                                                                                               |
| Number formats changed after a sync                        | Each sync applies Drivetrain's number formats.                                     | Format the cells on a separate tab that references the import tab.                                                                                                              |
| Old values remain in a tab                                 | The import now points to another tab (after **Edit**), or it was deleted.          | Clear the old tab yourself.                                                                                                                                                     |

## Scheduled syncs

| What you see                                                       | Cause                                                                                                    | Fix                                                                                                                                                                                                 |
| ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Schedule sync** is greyed out while **Sync all** works           | Scheduled syncs aren't available for your Drivetrain workspace.                                          | Contact Drivetrain support.                                                                                                                                                                         |
| An import's **Synced** time didn't change after the scheduled time | That import failed during the scheduled run; scheduled syncs don't show errors.                          | Click its refresh icon to see the error, then fix it using the tables above.                                                                                                                        |
| Nothing synced at the scheduled time                               | Google can run the schedule a few minutes late, or the schedule's Google trigger is missing.             | Wait a few minutes. Then ask the schedule owner (who last saved it) to open the sidebar, which restores a missing trigger, or open **Schedule sync** and click **Done** to make yourself the owner. |
| Syncs run an hour earlier or later than set                        | Your location changed to or from daylight saving time; the schedule time is stored in a fixed time zone. | Open **Schedule sync**, set the time again and click **Done**.                                                                                                                                      |
| Data reflects someone else's access                                | Scheduled syncs use the Drivetrain access of the person who last saved the schedule.                     | Save the schedule yourself, or ask someone with the right access to.                                                                                                                                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/extending-drivetrain/google-sheets-add-on/google-sheets-add-on-troubleshooting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
