Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firestore Import - Export gCloud NOT_FOUND: Project 'projectID' does not exist

What I want is to clone a project that I have in Firebase and create another project that is the same but with another Google account. I have full access to both accounts. Is this possible?

Then I am following the following documentation to export and then import data into Firestore: https://firebase.google.com/docs/firestore/manage-data/export-import

So -in the gloud console- I tried the following in the original project (Storage):

gcloud beta firestore export gs://punkutravel.appspot.com

and I get:

outputUriPrefix: gs://punkutravel.appspot.com/2019-10-27T17:09:39_35393

All good.

So then I want to import that data into another project (with another account)

and I execute the following:

gcloud beta firestore import gs://punkutravel.appspot.com/2019-10-27T17:09:39_35393

and I get the following error:

ERROR: (gcloud.beta.firestore.import) NOT_FOUND: Project 'anqasky-5861e' does not exist.

I have even assigned the permission to the source account and vice versa, but it still hasn't worked out.

like image 404
Paco Zevallos Avatar asked Sep 13 '25 17:09

Paco Zevallos


1 Answers

I had the same problem and finally I've figured out the solution.

SOLUTION: You need to go to your Firebase console console.firebase.google.com

And you have to pick Datastore type before you can import something.

like image 55
alarmatwork Avatar answered Sep 16 '25 09:09

alarmatwork