CMDBTransformUtil Usage in Transform Maps when new CI created but no records insert in Object Source
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 02:01 AM
Hi Expert:
I was implementing IRE using Transform Maps,in the onBefore and scripts:
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
var cmdbUtil = new global.CMDBTransformUtil();
cmdbUtil.setDataSource('UCMDB'); //This is the name you added in the step above.
cmdbUtil.identifyAndReconcileEnhanced(source, map, log);
ignore = true;
if (cmdbUtil.hasError()) {
var errorMessage = cmdbUtil.getError();
log.error(errorMessage);
error = true; // Update the import row to show the error
error_message = errorMessage;
} else {
log.info('IE Output Payload UCMDB: ' + cmdbUtil.getOutputPayload());
log.info('Imported CI UCMDB: ' + cmdbUtil.getOutputRecordSysId());
target.get(cmdbUtil.getOutputRecordSysId());
}
})(source, map, log, target);
I excuted TM with all new records created in the destination: cmdb_ci_esx_server table , but IRE doesn't create records into the Object Source [sys_object_source].
can someone help?
0 REPLIES 0