Google Sheets URL is invalid or not syncing
What this article helps you do
Fix “invalid URL” or sync failures when connecting a Google Sheet to Mapstore. Mapstore requires a published CSV export URL, not an edit link. This guide walks you through the correct format and common mistakes.
Before you start
- You have a Google Sheet with store data (name, address, and any optional columns)
- You can access File -> Share -> Publish to web in Google Sheets
- You’re in Mapstore Stores -> Bulk where the Google Sheets sync URL is entered
Step-by-step instructions
1. Use the published CSV export, not the edit link
Mapstore rejects edit links. A valid URL must:
- Be from
docs.google.com - Include
/pubin the path (published format) - Have
output=csvas a query parameter
Correct format:
https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/pub?output=csv
Incorrect:
https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit - Edit link; will not work.
2. Publish the sheet correctly
- In Google Sheets, go to File -> Share -> Publish to web
- Choose the sheet or range (usually the first sheet)
- Set format to Comma-separated values (.csv)
- Click Publish
- Copy the generated URL - it should contain
/pubandoutput=csv
3. Check for the edit-link error
If Mapstore says “This looks like a Google Sheets edit link,” you pasted the URL from the browser address bar while editing. Use the URL from Publish to web instead.
4. Verify the URL structure
- Host:
docs.google.com - Path:
/spreadsheets/d/{sheet-id}/pub - Query:
output=csv(required)
If any of these are missing or different, sync will fail. Re-publish and copy the URL again.
5. Ensure the sheet has data
- Header row with at least
nameandaddress - At least one data row with values in both columns
- Empty sheets or missing required columns cause “no stores” or validation errors
6. Sharing and permissions
The published URL is publicly readable. If you’ve restricted sharing, ensure “Anyone with the link” can view (or the URL is publicly accessible). Private sheets can cause fetch failures or timeouts.
How to verify it worked
- Mapstore accepts the URL without an error message
- First sync completes and stores appear under Stores
- Editing a value in the sheet and re-syncing shows the update in Mapstore
Common issues and fixes
| Issue | Fix |
|---|---|
| ”This looks like a Google Sheets edit link” | Use the URL from File -> Share -> Publish to web, not the browser edit URL. |
| ”Please enter a valid Google Sheets CSV export URL” | Add output=csv and use the /pub path. Re-publish from Publish to web. |
| URL accepted but no stores appear | Check that the sheet has name and address columns and data rows. |
| Sync runs but fails or times out | Verify the sheet is shared (or public). Check for very large sheets or network issues. |
| Wrong sheet or range | In Publish to web, select the correct sheet and range before publishing. |