Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3452

java.lang.IllegalArgumentException: Invalid BSON field name

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • BSON
    • None

    Description

      I am facing issue as "java.lang.IllegalArgumentException: Invalid BSON field name center.alignment.threshold". center.alignment.threshold is my key which contains "dot" in it. I have gone through few of the internet sites and got to know that the "dot" and "doller" sign is not supported in mongodb. I have not got any resolution for this problem.

      Can you please just suggest the alternative here...

      Update

      in scope of JAVA-3996, the restriction on dots and dollars in field names has been removed from the driver. This was included in the 4.3.0 release of the driver (and all subsequent releases).

      Attachments

        Activity

          People

            Unassigned Unassigned
            potbhare.amol@gmail.com Amol Potbhare
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: