Skip to content
SheetForge

Import and Google Sheets

Fixes for import and validation errors, and for problems with a Google Sheets source or a Push.

Import and validation

Import finds errors and produces nothing

Symptom. Import ran, found errors, and produced nothing at all.

Cause. The import found at least one error, and one error means no output. SheetForge never assembles part of your data. You never lose work to this, because the sheet is untouched. The sheet still opens in the Data Studio with a quarantine mark, so you can fix the errors there.

Fix.

  1. Read the report. It lists every problem, with coordinates and suggested fixes.
  2. Fix the problems in one pass.
  3. Re-import.

Jump from an error to its cell

Each error in the human-readable Console report has a clickable Open in Data Studio link. Clicking it opens the Data Studio, switches to that tab and highlights that cell. For a file-level or tab-level error, the link goes to the tab only.

The machine-readable coordinate line is unchanged, so CI and log scraping are unaffected.

Import recompiles before it finishes

Symptom. An import wrote code and recompiled, and you are not sure that it finished.

Cause. When a schema is new or changed, import is internally two-stage: code generation first, then the bake. The bake resumes automatically after the compile and reload, so the import does finish. The automatic import chain describes the stages and their safeguards.

Fix. Watch the Console for the final report.

If your game code no longer compiles, for example after a column rename, the chain stops at once. It leaves a sentence in the Console that says what to do. Fix your code and import again.

An empty cell is an error

Symptom. Import reports an empty cell, but you wanted the cell to be optional.

Cause. A column with an unmarked type is required, so an empty cell cannot silently become a value.

Fix. To make the cell optional, declare the column in one of these ways.

DeclarationAn empty cell becomes
float?The type default
int=1The explicit default
List<T>An empty list

Required, optional and default lists every notation.

A comma decimal is an error

1.5 imports fine, but 1,5 is an error. Numbers are locale-independent, and the decimal separator is always ..

Comma decimals, NaN and Infinity are blocked at the entrance.

An error suggests a nearest match

An unknown marker or unknown type error comes with a "did you mean" hint. A typo in a @marker name, a type name or an enum member is an error with nearest-match suggestions. Apply the suggestion.

An unknown @ on an unregistered type name is also an error, which catches typos in RecordId@Tab style references.

Google Sheets

Google import fails with a permission error

Symptom. A Google import fails with PERMISSION_DENIED (403).

Cause. The spreadsheet is not shared with the service account's client_email address. The key alone grants nothing.

Fix.

  1. Open the JSON key and copy client_email.
  2. Share the sheet with that address. Use Viewer for import and Editor for Push.

The full walkthrough is in Google Sheets setup.

Push requires SheetsApi

Symptom. Push says that it requires SheetsApi.

Cause. You are in ExportUrl mode, which is read-only and uses no authentication.

Fix. Use SheetsApi mode with a service-account key. Any write to the sheet needs it.

Google Sheets through an export URL describes what the read-only mode disables. Google Sheets setup covers how to create the service account and the key.

ExportUrl import asks for a gid map

Symptom. An ExportUrl import fails and asks for a gid map.

Cause. The map is required. A gid-less export URL silently returns only the first tab, so the map from tab name to #gid= is enforced.

Fix. Do one of these:

  • Provide the gid map. The gid map describes the field.
  • Switch to SheetsApi mode, which needs no map.

Push reports skipped cells

Symptom. After a Push, the report shows skipped cells.

Cause. The pre-send live re-fetch found conflicts:

  • A teammate edited a cell.
  • A row moved or disappeared.
  • A key is duplicated.

Skipped cells are protection, not failure. The report shows the applied and skipped counts.

Fix.

  1. Re-import to reconcile.
  2. Push again.

Deleted rows remain in the Google sheet

Symptom. You deleted rows locally, but they are still in the Google sheet after Push.

Cause. Push deletes a row only when the pre-send fetch finds the row's key on the exact row your import saw. If the sheet drifted and the key now sits on a different row, Push skips that deletion with a notice, because it never deletes by position. Row deletions describes the check.

Fix.

  1. Delete the rows in the sheet.
  2. Re-import.

Next steps