Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:44:43+00:00 2026-06-08T19:44:43+00:00

I have an odd issue querying mongo.. I insert a bunch of records like

  • 0

I have an odd issue querying mongo.. I insert a bunch of records like this;

{
  "_id" : "1f0aad54-85ef-446c-a02b-76bb0235e49c",
  "internalId" : new BinData(3, "VP0LH++FbESgK3a7AjXknA=="),
  "Data" : [
        ["otherId", "5e3b3293-ec93-469a-ba46-101a1feb1155"], 
        ["test", "test"], 
        ["test2", "test2"]
  ]
}

Then I do a simple query;

db.testCollection.find("Data.otherId" : "5e3b3293-ec93-469a-ba46-101a1feb1155")

The otherId is a .net guid.ToString() — several random ones obviously.. Sometimes these return. Sometimes they do not. db.find() shows them, but querying for it explicitly seems to return 0 rows at random.

I can’t explain why these will intermittently fail to be found by the query.. I’ve tested this in my sharded cluster and on my local instance that’s just vanilla out of the box.

Has anyone encountered this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:44:45+00:00Added an answer on June 8, 2026 at 7:44 pm

    You’re using the wrong selector. If your data would be:

    {
      "_id" : "1f0aad54-85ef-446c-a02b-76bb0235e49c",
      "internalId" : new BinData(3, "VP0LH++FbESgK3a7AjXknA=="),
      "Data" : {
            "otherId" "5e3b3293-ec93-469a-ba46-101a1feb1155", 
            "test": "test",
            "test2": "test2"
      }
    }
    

    that selector would be correct but you’ve got arrays so you should use this selector:

    db.testCollection.find({"Data.0" : ["otherId","5e3b3293-ec93-469a-ba46-101a1feb1155"]})
    

    (I just tested it)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is very odd. I have never had this issue with ShowDialog in C#.
I have a little bit of an odd issue. When I run this SQL:
I have a very odd issue trying to run this quite simple C program
I have having a very odd issue when utilizing this UIAlertView. When viewing a
Let give you the details of this rather odd issue. We have a very
I have an odd issue while using FlashCS4. I have a textfield that, when
I have a very odd issue. When I execute a specific database stored procedure
I have an odd linq subquery issue. Given the following data structure: Parents Children
I am learning JQuery, and I have ran into an odd issue. I made
I have odd problem: After starting server I got this error: undefined local variable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.