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

[Business Metadata Bulk Import] Incorrect Error "invalid business attribute name" thrown while trying to assign BM attribute to non-applicable type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • atlas-core
    • None

    Description

      While trying to Bulk Import Business Metadata, a row in the file where we try to assign Business Metadata attribute to a non-applicable entity type, BM import throws "invalid business attribute name" 

      This Error message is misleading since the BM attribute name is correct, but it is just that it is not applicable to the type which the user has specified.

      On similar lines, we have handled this case in 2 ways in the Entity > Business Metadata attribute association

      1. We only show the applicable Business Metadata attributes types in the drop-down
      2. And via the API, if the user tries to assign a Business Metadata attribute to a non-applicable type, the API throws the ERROR 
        1. Invalid instance creation/updation parameters passed : Test BM 2: invalid business-metadata for entity type hive_table 

      We need to throw a similar error in the Business Metadata Bulk Import too, else the error message for sure leads to confusion 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: