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

Issue with creating an online archive rule for collection archiving

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Atlas
    • Labels:
      None
    • Environment:
      Atlas Online Archive Rule creation

      Issue:

      When creating an online archive rule for collection archiving the following error is shown:

      Invalid criteria field type field name: date, detected field type: string

      Date format example: YYYY-MM-DDThh:mm:ss.ms

      RCA:

      This error gets thrown when the archive field that is supposed to be an ISODate field returns a String field instead.

      Solution:

      Check if the date field is polymorphic and potentially includes String values alongside Date values. The remediation here would be to convert those String values to Date.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anastasia.kravtsov@mongodb.com Anastasia Kravtsov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              44 weeks, 5 days ago