Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
abcf Honored Contributor.
Honored Contributor.
457 views

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.

 

 

 

 

thanks
0 Likes
3 Replies
Respected Contributor.. chethan7845 Respected Contributor..
Respected Contributor..

Re: duplicate of Assets when AM and Ud is integrated

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

0 Likes
abcf Honored Contributor.
Honored Contributor.

Re: duplicate of Assets when AM and Ud is integrated

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.

 

 

 

 

thanks
0 Likes
Highlighted
StuffedBuffalo Frequent Contributor.
Frequent Contributor.

Re: duplicate of Assets when AM and Ud is integrated

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.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.