The CreatorCon Call for Content is officially open! Get started here.

Problem with asset tag search

Akshay Jadhav1
Tera Contributor

When we search for this asset tag directly, no results are returned(There is no any space issue); however, when we search for the same asset with contains (*), the record is displayed. If we look at the discovery source of this record in the cmdb_ci table, we can see that it has a endpoint central , and this problem is not limited to this endpoint centeral discovery source but also others. Does anyone have an idea about this?

 

 

AkshayJadhav1_1-1713854214428.png

 

AkshayJadhav1_0-1713853678209.png

 

3 REPLIES 3

SteveMacWWT
Kilo Sage

The first thing I would do is look at the XML for the Asset and then check the 'asset_tag' field. Is there anything but the exact Asset tag between <asset_tag> & </asset_tag>?

<alm_hardware>
     <acquisition_method>1</acquisition_method>
     <asset_function/>
     <asset_tag>MYASSET01483</asset_tag>
     <assigned/>
     <assigned_to/>
     ....

 

Hello Steve,

 

I have the same issue it contains space, the records are creating from the integrations. So could you please suggest what steps I need to take to solve this issue.

My first step would be to go to the provider of the integration and ask them to sanitize the data before sending it over. 

If that can't be done, I'd suggest a couple of ideas depending on how it is integrated:

  • Clean the data in the transform map before it gets processed. 
  • A before insert / update BR that cleans the data.