Can't get Auto-ID Document in Firestore











up vote
0
down vote

favorite












Excuse me,
I'm working on my code about making a Document Firestore that could be delete, this is how my Firestore Database looks like :
Firestore Data Structure



I'd like to delete the Auto-ID Document after the Collection "X-MIPA.6". So, I followed the previous solution about "Firebase Cloud Firestore get auto-id of newly created document", so here is my code looks like :
My Code



But, when I tested, my app force closed and show me this Error :
The Error



How is it possible? How can I fix it?
I want to delete the Document based on the Auto-ID Document on my Firestore Database.
Thanks!










share|improve this question


















  • 2




    Please replace the link to a pictures of code and error, with the actual code as text. Textual content should be included as text, to allow people to immediately see what you're doing, to make it accessible through search engines, and to make it easier to use the text to reproduce the problem or answer your question.
    – Frank van Puffelen
    Nov 18 at 16:07










  • pastebin.com/EbZFT1PH This is my code
    – Reihan Alavi
    Nov 18 at 22:18












  • At which line of code are you getting that error?
    – Alex Mamo
    Nov 19 at 9:20















up vote
0
down vote

favorite












Excuse me,
I'm working on my code about making a Document Firestore that could be delete, this is how my Firestore Database looks like :
Firestore Data Structure



I'd like to delete the Auto-ID Document after the Collection "X-MIPA.6". So, I followed the previous solution about "Firebase Cloud Firestore get auto-id of newly created document", so here is my code looks like :
My Code



But, when I tested, my app force closed and show me this Error :
The Error



How is it possible? How can I fix it?
I want to delete the Document based on the Auto-ID Document on my Firestore Database.
Thanks!










share|improve this question


















  • 2




    Please replace the link to a pictures of code and error, with the actual code as text. Textual content should be included as text, to allow people to immediately see what you're doing, to make it accessible through search engines, and to make it easier to use the text to reproduce the problem or answer your question.
    – Frank van Puffelen
    Nov 18 at 16:07










  • pastebin.com/EbZFT1PH This is my code
    – Reihan Alavi
    Nov 18 at 22:18












  • At which line of code are you getting that error?
    – Alex Mamo
    Nov 19 at 9:20













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Excuse me,
I'm working on my code about making a Document Firestore that could be delete, this is how my Firestore Database looks like :
Firestore Data Structure



I'd like to delete the Auto-ID Document after the Collection "X-MIPA.6". So, I followed the previous solution about "Firebase Cloud Firestore get auto-id of newly created document", so here is my code looks like :
My Code



But, when I tested, my app force closed and show me this Error :
The Error



How is it possible? How can I fix it?
I want to delete the Document based on the Auto-ID Document on my Firestore Database.
Thanks!










share|improve this question













Excuse me,
I'm working on my code about making a Document Firestore that could be delete, this is how my Firestore Database looks like :
Firestore Data Structure



I'd like to delete the Auto-ID Document after the Collection "X-MIPA.6". So, I followed the previous solution about "Firebase Cloud Firestore get auto-id of newly created document", so here is my code looks like :
My Code



But, when I tested, my app force closed and show me this Error :
The Error



How is it possible? How can I fix it?
I want to delete the Document based on the Auto-ID Document on my Firestore Database.
Thanks!







firebase google-cloud-firestore






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 18 at 14:03









Reihan Alavi

12




12








  • 2




    Please replace the link to a pictures of code and error, with the actual code as text. Textual content should be included as text, to allow people to immediately see what you're doing, to make it accessible through search engines, and to make it easier to use the text to reproduce the problem or answer your question.
    – Frank van Puffelen
    Nov 18 at 16:07










  • pastebin.com/EbZFT1PH This is my code
    – Reihan Alavi
    Nov 18 at 22:18












  • At which line of code are you getting that error?
    – Alex Mamo
    Nov 19 at 9:20














  • 2




    Please replace the link to a pictures of code and error, with the actual code as text. Textual content should be included as text, to allow people to immediately see what you're doing, to make it accessible through search engines, and to make it easier to use the text to reproduce the problem or answer your question.
    – Frank van Puffelen
    Nov 18 at 16:07










  • pastebin.com/EbZFT1PH This is my code
    – Reihan Alavi
    Nov 18 at 22:18












  • At which line of code are you getting that error?
    – Alex Mamo
    Nov 19 at 9:20








2




2




Please replace the link to a pictures of code and error, with the actual code as text. Textual content should be included as text, to allow people to immediately see what you're doing, to make it accessible through search engines, and to make it easier to use the text to reproduce the problem or answer your question.
– Frank van Puffelen
Nov 18 at 16:07




Please replace the link to a pictures of code and error, with the actual code as text. Textual content should be included as text, to allow people to immediately see what you're doing, to make it accessible through search engines, and to make it easier to use the text to reproduce the problem or answer your question.
– Frank van Puffelen
Nov 18 at 16:07












pastebin.com/EbZFT1PH This is my code
– Reihan Alavi
Nov 18 at 22:18






pastebin.com/EbZFT1PH This is my code
– Reihan Alavi
Nov 18 at 22:18














At which line of code are you getting that error?
– Alex Mamo
Nov 19 at 9:20




At which line of code are you getting that error?
– Alex Mamo
Nov 19 at 9:20

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53361738%2fcant-get-auto-id-document-in-firestore%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53361738%2fcant-get-auto-id-document-in-firestore%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Create new schema in PostgreSQL using DBeaver

Deepest pit of an array with Javascript: test on Codility

Costa Masnaga