Asset Boolean attribute is not imported if not a true or false value

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      When importing asset objects, a boolean attribute only accepts the values true or false. If a different value is provided (ex., Yes or No), the attribute is always set to False.

      Steps to Reproduce

      1. Create an object type with a boolean attribute
      2. Create a CSV with the following data:
      3. Name,Boolean
        TestA,0
        TestB,1
        TestC,Yes
        TestD,No
        TestE,True
        TestF,False
      1. Create an import using the CSV file, mapping the attributes accordingly.
      2. Execute the import.
      3. Observe that only the object TestE has the Boolean attribute set to True.

      Expected Results

      The attribute is set as True or False based on a Boolean value (yes, no, 0, 1, true, false).

      Actual Results

      The attribute is set as True only if the value provided is True. Otherwise, it will be set to False. 

      Workaround

      Replace the boolean values with True or False.

              Assignee:
              Gaurav Ajmera
              Reporter:
              Diego Borba (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: