- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 08:23 AM
Hi All,
I am using onBefore transform script to implement IRE using below code to identify and ignore duplicate CI.
(function runTransformScript(source, map, log, target ) {
log.info("Status Log ImpSet");
var cmdbUtilIRE = new global.CMDBTransformUtil();
cmdbUtilIRE.setDataSource('ImportSet');
cmdbUtilIRE.identifyAndReconcileEnhanced(source, map, log);
ignore = true;
if (cmdbUtilIRE.hasError()) {
var errorMessage = cmdbUtilIRE.getError();
log.info('Error: ' + errorMessage);
log.error(errorMessage);
} else {
log.info('IE Output Payload: ' + cmdbUtilIRE.getOutputPayload());
log.info('Imported CI: ' + cmdbUtilIRE.getOutputRecordSysId());
}
})(source, map, log, target);
When I run the transform I do not see any logs from CMDBTransformUtil , below is the import set logs
What would be the possible cause can someone please put some light into this to resolve it.?
Solved! Go to Solution.
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2022 12:29 AM
Only thing I can think of now is to check that someone hasn't changed the accessible from for the Script include in your instance, it should be 'all application scopes':-
Happy to have helped even a small bit, please mark my post as useful if it has genuinely helped you.
Thanks,
Richard

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 11:51 AM
I am assuming you are in a scoped app?
Any reason why you are using identifyAndReconcileEnhanced instead of identifyAndReconcile?
I don't currently see any issues with how you are instantiating the SI, I am wondering if you put log lines in directly after
var cmdbUtilIRE = new global.CMDBTransformUtil();
log.info("SI instantiated");
cmdbUtilIRE.setDataSource('ImportSet');
log.info("Datasource set");
cmdbUtilIRE.identifyAndReconcileEnhanced(source, map, log);
log.info("identifyAndReconcile complete");
ignore = true;
If that would get you any closer to where the exception is being thrown...
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 01:21 PM
Thanks for your prompt response Richard. It is very helpful, I appreciate it.
I tried placing logs it is throwing exception where I am instantiating the SI. I do not see the log ("SI Instantiated") , I see the log statement I placed before that line.
Where shall I focus to debug this issue to take this ahead , suggestions would be helpful .
You are correct I am in scoped application .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2022 12:29 AM
Only thing I can think of now is to check that someone hasn't changed the accessible from for the Script include in your instance, it should be 'all application scopes':-
Happy to have helped even a small bit, please mark my post as useful if it has genuinely helped you.
Thanks,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2022 04:12 AM
Thanks much Richard !! After allowing to access from all application scope it worked as expected..
Thanks for your suggestion !!