Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4313

[Business Metadata Bulk Import] Importing multi values for Business Metadata Attribute of date type fails with Error "Provided value is not of Date type at line #"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Content in the template file

      EntityType,EntityUniqueAttributeValue,BusinessAttributeName,BusinessAttributeValue,EntityUniqueAttributeName[optional]
      hive_table,hive_table_kcsup@cm,BM3.BM3A17,1621932602000
      hive_table,hive_table_kcsup@cm,BM3.BM3A18,1621932602000 

      Here, BM3.BM3A17 is multi value disabled and BM3.BM3A18 is multi value enabled

      BM3A17 definition

      BM3A18

      Imported Data

      Atlas api/atlas/v2/entity/businessmetadata/import returns

      {    "failedImportInfoList": [        {            "parentObjectName": "",            "childObjectName": "",            "importStatus": "FAILED",            "remarks": "Provided value 1621932602000 is not of Date type at line #2"        }    ],    "successImportInfoList": [        {            "parentObjectName": "b91f9726-4020-4005-9ee4-f79215f85c38",            "childObjectName": "{BM4={BM4A1=stringy}, BM3={BM3A20=[PURGE, EXPORT], BM3A9=1234, BM3A15=123456, BM3A14=[12345.67, 23456.7], BM3A17=1621932602000, BM3A16=[123456, 234567], BM3A11=123.45, BM3A10=[1234, 2345], BM3A13=12345.67, BM3A12=[123.45, 234.56], BM3A19=RAM_DISK, BM3A18=[], BM3A6=[1, 2], BM3A5=1, BM3A8=[12, 23], BM3A7=12, BM3A2=[stringval1, stringval2], BM3A1=stringval, BM3A4=[true, false], BM3A3=true}}",            "importStatus": "SUCCESS",            "remarks": ""        }    ]} 

      It is important to note that, Importing single value for single valued Business Metadata Attribute of date type works fine

        Attachments

        1. Screenshot 2021-05-26 at 11.32.19 PM.png
          100 kB
          Umesh Padashetty
        2. Screenshot 2021-05-26 at 11.30.49 PM.png
          29 kB
          Umesh Padashetty
        3. Screenshot 2021-05-26 at 11.30.40 PM.png
          31 kB
          Umesh Padashetty

          Issue Links

            Activity

              People

              • Assignee:
                radhikak Radhika Kundam
                Reporter:
                umesh.padashetty Umesh Padashetty
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: