Highlighted
Established Member..
Established Member..
456 views

UD to AM Scan Date Issue

Hi ,

I am trying to Push CIs from UCMDB to Asset Manager. Few CIs got failed after running the Integration Job with the below error message:

 

'computer failed to push to Asset Manager due to older scan date that one already exist in Asset Manager'

The computer in UCMDB has property dtLastScan with value: java.util.GregorianCalendar[time=1420708269678,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2015,MONTH=0,WEEK_OF_YEAR=2,WEEK_OF_MONTH=2,DAY_OF_MONTH=8,DAY_OF_YEAR=8,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=0,HOUR=4,HOUR_OF_DAY=4,MINUTE=11,SECOND=9,MILLISECOND=678,ZONE_OFFSET=-18000000,DST_OFFSET=0]
While the reconciled computer in Asset Manager property dtLastScan value is: java.util.GregorianCalendar[time=1420709203000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2015,MONTH=0,WEEK_OF_YEAR=2,WEEK_OF_MONTH=2,DAY_OF_MONTH=8,DAY_OF_YEAR=8,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=0,HOUR=4,HOUR_OF_DAY=4,MINUTE=26,SECOND=43,MILLISECOND=0,ZONE_OFFSET=-18000000,DST_OFFSET=0]
The validation script is mappings.scripts.AMReconciliationAdvanced.isDateAfter(vNewVal, vOldVal)"


Do anybody know the fix for this issue?

 

Regards
Ashok

0 Likes
2 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: UD to AM Scan Date Issue

i've had this issue too.

funny thing is that the ci that was being pushed was not in AM database. I am guessing that the issue is due to the fact that for new items dtlastscan is basically now()

 

if anyone knows better...?

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: UD to AM Scan Date Issue

I solved the issue by commenting out the validation in am-push-mapping.xml file.

 

<!--<target-ci-validation attribute-name="dtLastScan" validation-script="mappings.scripts.AMReconciliationAdvanced.isDateAfter(vNewVal, vOldVal)" failed-validation-error-code="45404"/>-->

 

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.