duplicate of Assets when AM and Ud is integrated

First Case:

Suppose we have an Asset with below details already present in HPAM. WE followed Procurement Cycle and created this asset.

serialnumber

model

Assettag

Type

Abcdefgh

HP Elite

LT001

Laptop

 

 

Now when UD discovers the same asset and has different model from the above one, it creates duplicate assets.

 

serial number

model

Assettag

Type

Abcdefgh

HP Elite Book

 

Laptop

 

 

Requirement is that there should not be any duplicate assets created. I tried below methods

 

  1. I deleted the record from HPAM and created it with different model and then pushed it, Job failed or sometimes it creates duplicate assets. Logged case with HP but there is no proper respnse. Did some changes in xml file but it didn’t work out.

 

 

 

 

  • Comment below lines

    Portfolio.Model.Name = '${mappings.scripts.AMReconciliationAdvanced.trimRight(vModelName)}' AND Portfolio.Model.Nature.Code = '${vNatureCode}' AND Portfolio.Asset.SerialNo = '${if(vSerialNo==null) { throw new com.hp.ucmdb.adapters.ampush.exception.AMPushAdvancesReconciliationException('Not enough reconciliation data') }else{ return mappings.scripts.AMReconciliationAdvanced.trimRight(vSerialNo)}}' AND 1=${if(iIsComputerAVM==true){return 0} else{return 1}}

    in am-push-mapping.xml

  • thanks for your reply. I did the same but duplicate records are being created. can we reconcile only using serial numbers, if serial number is not present then asset should be created and if present UD should update that asset.

     

     

     

     

  • This would allow you to match on serial number.

    <reconciliation-advanced>Portfolio.Asset.SerialNo = '${vSerialNo}</reconciliation-advanced>

     

    If you want serial number to be your only reconcilation then comment out the rest of the reconcialtion-advanced options.