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

java.lang.IllegalArgumentException: Invalid BSON field name

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      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).

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

              Created:
              Updated:
              Resolved: