updateDocument() method give error "lacks a collection id at index 55"
See original GitHub issueMinimal Code to Reproduce the Problem
const firestore = FirestoreApp.getFirestore(email, key, projectId);
Logger.log(productsCollPath+'/'+dataToExport['product_id'])
firestore.updateDocument(
productsCollPath+'/'+dataToExport['product_id'], dataToExport);
Explain the Problem in Detail
Here’s the log for document path I want to update

And this path exists

Other Comments
Library Version: 33
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Document parent name lacks a collection id at index 53 in ...
I am trying to query a subcollection in Google Firestore. My goal is to get all records with a startDate (stored in Google...
Read more >SharePoint Online: Enable Document ID Service using ...
Go to site settings >> Document ID settings >> Choose “Reset all Document IDs in this Site Collection to begin with these characters”...
Read more >REST API Developer Guide
REST API is based on the usage of resources—pieces of data in Salesforce, such as records, collections of records, query results, metadata,.
Read more >Spring Data MongoDB - Reference Documentation
Indicates whether an entity with the given ID exists. ListCrudRepository offers equivalent methods, but they return List where the CrudRepository methods return ...
Read more >Lenovo XClarity Essentials OneCLI User Guide
Strategic problem determination tool for data collection, fault detection, and remediation. ... fod.lenovo.com/lkms/angular/app/pages/index.htm#/welcome.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Now I got it fixed. You are right. Actually I added ‘/’ before “FreshFastStoresMain”. Removing it fixed the issue. Thank you so much.
I don’t see the value of
productsCollPathin your question, it’s cut off.Make sure that
productsCollPathstarts with "FreshFastStoresMain/”.