Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2167

Change in Error message for "Ambiguous field name" in query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: mongodb-2.6
    • Fix Version/s: 01112017-cleanup
    • Component/s: manual
    • Labels:
    • # Replies:
      0
    • Last comment by Customer:
      true

      Description

      Problem:
      Change in the error code for the following query

      db.s9.find( { "a" : "" } ).sort( { "d.1.a" : true } ).skip( 100 ).skip( 1 )

      2.4.5

      error: {
      "$err" : "Ambiguous field name found in array (do not use numeric field names in embedded elements in an array), field: '1' for array: { 0: 1.0, 1: { 1: 0.0, d:

      Unknown macro: { c}

      }, 2: \"Do not seek to follow in the footsteps of the men of old; seek what they sought.\" }",
      "code" : 15855
      }

      2.5.4-Pre

      error: {
      "$err" : "Ambiguous field name found in array (do not use numeric field names in embedded elements in an array), field: '1' for array: { 0: 1.0, 1: { 1: 0.0, d:

      Unknown macro: { c}

      }, 2: \"Do not seek to follow in the footsteps of the men of old; seek what they sought.\" }",
      "code" : 16746
      }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 7 weeks, 4 days ago