Fix a Google Sheets URL
What this article helps you do
Fix an invalid URL or a sync failure for Google Sheets. Mapstore accepts only a published CSV export URL, not an edit link.
Before you start
- You have a Google Sheet with a name, address, and optional store data.
- You can access File -> Share -> Publish to web in Google Sheets.
- Stores -> Bulk is open in Mapstore.
Step-by-step instructions
1. Use the published CSV export, not the edit link
Mapstore rejects edit links. A correct 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 - This edit link does not work.
2. Publish the sheet
- In Google Sheets, go to File -> Share -> Publish to web.
- Select the sheet or range. Usually, select the first sheet.
- Set the format to Comma-separated values (.csv).
- Click Publish.
- Copy the URL that Google generates.
- Make sure that the URL contains
/pubandoutput=csv.
3. Check for the edit-link error
If Mapstore shows “This looks like a Google Sheets edit link,” do not use the browser URL. Use the Publish to web URL.
4. Verify the URL structure
- Host:
docs.google.com - Path:
/spreadsheets/d/{sheet-id}/pub - Query:
output=csv(required)
If one of these parts is missing or different, the sync fails. Publish the sheet again. Then copy the new URL.
5. Make sure that the sheet has data
- The header row has
nameandaddress. - One or more data rows have values in the two columns.
- Empty sheets or missing required columns cause “no stores” or validation errors.
6. Test access to the published URL
Open the published CSV URL in a private browser window. It must return the CSV without asking for a Google login. A normal sharing or edit link is not a substitute for Publish to web.
How to verify it worked
- Add the URL in Mapstore.
- Make sure that you do not see an error message.
- Start the first sync.
- Make sure that you can see the stores in Stores.
- Change a value in the sheet.
- Start the sync again.
- Make sure that you can see the new value in Mapstore.
Troubleshooting
| 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. Publish the sheet again with Publish to web. |
| URL is accepted but sync shows no stores | Check that the sheet has name and address columns and data rows. |
| Sync fails or times out | Open the published CSV URL in a private window. Make sure that it returns CSV without a login. |
| Incorrect sheet or range | In Publish to web, select the correct sheet and range before you publish it. |