Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ws): improve gsheet error message (#60028)

estefaniac2afe1af0061
diff --git a/posthog/temporal/data_imports/sources/google_sheets/source.py b/posthog/temporal/data_imports/sources/google_sheets/source.py
index 1d2209d638d7..3771607adfbe 100644
--- a/posthog/temporal/data_imports/sources/google_sheets/source.py
+++ b/posthog/temporal/data_imports/sources/google_sheets/source.py
@@ -37,7 +37,7 @@ class GoogleSheetsSource(SimpleSource[GoogleSheetsSourceConfig]):
"the header row in the worksheet contains duplicates": "Import failed: There exists duplicate column headers. Please make sure all column headers have values and aren't duplicated.",
"can't be found": None,
"SpreadsheetNotFound": None,
- "must be real number, not str": "Import failed: all cells in a numerical column must have a value and not be blank",
+ "must be real number, not str": "Import failed: a numeric column contains a non-numeric value. Ensure every cell in numeric columns is stored as a plain number.",
"Spreadsheet access denied": "Import failed: PostHog does not have access to this spreadsheet. Please share it with our service account as described at https://posthog.com/docs/cdp/sources/google-sheets",
}